ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/compilers.mk
(Generate patch)

Comparing COMP/SCRAM/src/compilers.mk (file contents):
Revision 1.2 by williamc, Fri Mar 19 16:55:39 1999 UTC vs.
Revision 1.10 by williamc, Thu Apr 1 09:55:00 1999 UTC

# Line 17 | Line 17
17   CXX=CC
18   CXXDebugFlag=-g
19   FCDebugFlag=-g
20 + FC:=f77
21  
22   ArchiveSuffix = a
23   ArchiveTool = ar -rc $@ $^
# Line 31 | Line 32 | SharedCCTool = @echo No Shared Library s
32   # Sun 4.2 CC
33   #----------------------------------------------
34   ifeq ($(CCcompiler),Sun-CC-4.2)
35 < ArchiveCCTool = CC -xar -o $@ $^
36 < SharedCCTool = CC -G -o $@ $^
37 < DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@
35 > CXX=CC
36 > CXXFLAGS+=-ptr$(template_dir) -features=rtti
37 > #template_dir=$(shell echo $@ )
38 > template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
39 > ArchiveCCTool = $(CXX) -xar -o $@ $^ -ptr$(template_dir)
40 > SharedCCTool = $(CXX) -G -o $@ $^ -ptr$(template_dir)
41 > DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@
42 > ifdef f77
43 > extralib+=M77 F77 sunmath m
44 > endif
45   endif
46  
47   #----------------------------------------------
# Line 44 | Line 52 | CXX=aCC
52   SharedCCObjectFlags = +Z
53   SharedSuffix=sl
54   SharedCCTool=aCC -b $^ -o $@
55 + ifdef f77
56 + LIBDIR+=/opt/fortran/lib
57 + extralib+=cl isamstub U77 /usr/lib/libdld.sl
58 + endif
59   endif
60  
61   #----------------------------------------------
# Line 53 | Line 65 | ifeq ($(CCcompiler),gcc)
65   CXX=c++
66   SharedCCObjectFlags = -fPIC
67   SharedCCTool = gcc $^ -o $@ -shared -Wl,-soname,$@
68 + ifdef f77
69 + extralib+=f2c m
70 + endif
71   endif
72  
73   #----------------------------------------------
# Line 62 | Line 77 | ifeq ($(CCcompiler),egcs)
77   CXX=c++
78   SharedCCObjectFlags = -fPIC
79   SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
80 + ifdef f77
81 + extralib+=g2c m
82 + endif
83   endif
84 +
85 + #----------------------------------------------
86 + # GNU g77 Fortran compiler
87 + #----------------------------------------------
88 + ifeq ($(F77compiler),g77)
89 + FC:=g77
90 + endif
91 +
92 +
93 + #-----------------------------------------------
94 + # Insure++
95 + #-----------------------------------------------
96 + Insure:=insure
97 + .psrc :
98 +        -@rm .psrc
99 +        echo insure++.compiler_cpp $(CXX) >> .psrc
100 +        echo insure++.temp_directory /tmp >> .psrc
101 +        echo insure++.compiler_default cpp >> .psrc
102 +        echo insure++.summarize leaks >> .psrc

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines