ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/compilers.mk
Revision: 1.13
Committed: Thu Apr 8 11:45:00 1999 UTC (26 years, 1 month ago) by williamc
Branch: MAIN
Changes since 1.12: +1 -2 lines
Log Message:
Remove project specific compiler switches from SunOS4.2

File Contents

# Content
1 # Compiler Specific Details
2 #
3 #----------------------------------------------
4 # Some standard variables
5 #----------------------------------------------
6 # arlibname : name of library archive etc
7 # shlibname : name of shared object
8 # arlibobjs : name of objects destined for a library archive
9 # sharedlibobjs : name of objects detined for a shared object file
10 #
11 #
12 #
13 #----------------------------------------------
14 # Standard Defaults
15 # Override as necessary for specific compilers
16 #----------------------------------------------
17 CXX=CC
18 CXXDebugFlag=-g
19 FCDebugFlag=-g
20 FC:=f77
21
22 ArchiveSuffix = a
23 ArchiveTool = ar -rc $@ $^
24 ArchiveCCTool = $(ArchiveTool)
25 SCClinkCmd=$(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@
26 CClinkCmd=$(SCClinkCmd) $(LDLIBS)
27 CClinkCmdDebug=$(SCClinkCmd) $(LDLIBS_D)
28 CClinkCmdInsure=$(SCClinkCmd) $(LDLIBS_Insure)
29
30 SharedCCObjectFlags = -PIC
31 SharedFCObjectFlags = -PIC
32 SharedSuffix =so
33 SharedCCTool = @echo No Shared Library support
34
35 #----------------------------------------------
36 # Sun 4.2 CC
37 #----------------------------------------------
38 ifeq ($(CCcompiler),Sun-CC-4.2)
39 CXX=CC
40 CXXFLAGS+=-ptr$(template_dir)
41 template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
42 ArchiveCCTool = $(CXX) -xar -o $@ $^ -ptr$(template_dir)
43 SharedCCTool = $(CXX) -G -o $@ $^ -ptr$(template_dir)
44 DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@
45 ifdef f77
46 extralib+=M77 F77 sunmath m
47 endif
48 endif
49
50 #----------------------------------------------
51 # aCC HP-UX
52 #----------------------------------------------
53 ifeq ($(CCcompiler),aCC)
54 CXX=aCC
55 SharedCCObjectFlags = +Z
56 SharedSuffix=sl
57 SharedCCTool=aCC -b $^ -o $@
58 ifdef f77
59 LIBDIR+=/opt/fortran/lib
60 extralib+=cl isamstub U77 /usr/lib/libdld.sl
61 endif
62 endif
63
64 #----------------------------------------------
65 # gcc Linux
66 #----------------------------------------------
67 ifeq ($(CCcompiler),gcc)
68 CXX=c++
69 SharedCCObjectFlags = -fPIC
70 SharedCCTool = gcc $^ -o $@ -shared -Wl,-soname,$@
71 ifdef f77
72 extralib+=f2c m
73 endif
74 endif
75
76 #----------------------------------------------
77 # egcs Linux
78 #----------------------------------------------
79 ifeq ($(CCcompiler),egcs)
80 CXX=c++
81 SharedCCObjectFlags = -fPIC
82 SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
83 ifdef f77
84 extralib+=g2c m
85 endif
86 endif
87
88 #----------------------------------------------
89 # GNU g77 Fortran compiler
90 #----------------------------------------------
91 ifeq ($(F77compiler),g77)
92 FC:=g77
93 endif
94
95
96 #-----------------------------------------------
97 # Insure++
98 #-----------------------------------------------
99 Insure:=insure
100 .psrc :
101 -@rm .psrc
102 echo insure++.compiler_cpp $(CXX) >> .psrc
103 echo insure++.temp_directory /tmp >> .psrc
104 echo insure++.compiler_default cpp >> .psrc
105 echo insure++.summarize leaks >> .psrc