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.1 by williamc, Mon Mar 1 10:37:54 1999 UTC vs.
Revision 1.11 by williamc, Thu Apr 1 12:38:49 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 $@ $^
24   ArchiveCCTool = $(ArchiveTool)
25 + SCClinkCmd=$(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@
26 + CClinkCmd=$(SCClinkCmd) $(LDLIBS)
27 + CClinkCmdDebug=$(LDLIBS_D)
28 + CClinkCmdInsure=$(LDLIBS_Insure)
29  
30   SharedCCObjectFlags = -PIC
31   SharedFCObjectFlags = -PIC
# Line 31 | Line 36 | SharedCCTool = @echo No Shared Library s
36   # Sun 4.2 CC
37   #----------------------------------------------
38   ifeq ($(CCcompiler),Sun-CC-4.2)
39 < ArchiveCCTool = CC -xar -o $@ $^
40 < SharedCCTool = CC -G -o $@ $^
39 > CXX=CC
40 > CXXFLAGS+=-ptr$(template_dir) -features=rtti
41 > #template_dir=$(shell echo $@ )
42 > template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
43 > ArchiveCCTool = $(CXX) -xar -o $@ $^ -ptr$(template_dir)
44 > SharedCCTool = $(CXX) -G -o $@ $^ -ptr$(template_dir)
45 > DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@
46 > ifdef f77
47 > extralib+=M77 F77 sunmath m
48 > endif
49   endif
50  
51   #----------------------------------------------
# Line 43 | Line 56 | CXX=aCC
56   SharedCCObjectFlags = +Z
57   SharedSuffix=sl
58   SharedCCTool=aCC -b $^ -o $@
59 + ifdef f77
60 + LIBDIR+=/opt/fortran/lib
61 + extralib+=cl isamstub U77 /usr/lib/libdld.sl
62 + endif
63   endif
64  
65   #----------------------------------------------
# Line 52 | Line 69 | ifeq ($(CCcompiler),gcc)
69   CXX=c++
70   SharedCCObjectFlags = -fPIC
71   SharedCCTool = gcc $^ -o $@ -shared -Wl,-soname,$@
72 + ifdef f77
73 + extralib+=f2c m
74 + endif
75   endif
76  
77   #----------------------------------------------
# Line 61 | Line 81 | ifeq ($(CCcompiler),egcs)
81   CXX=c++
82   SharedCCObjectFlags = -fPIC
83   SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
84 + ifdef f77
85 + extralib+=g2c m
86 + endif
87   endif
88 +
89 + #----------------------------------------------
90 + # GNU g77 Fortran compiler
91 + #----------------------------------------------
92 + ifeq ($(F77compiler),g77)
93 + FC:=g77
94 + endif
95 +
96 +
97 + #-----------------------------------------------
98 + # Insure++
99 + #-----------------------------------------------
100 + Insure:=insure
101 + .psrc :
102 +        -@rm .psrc
103 +        echo insure++.compiler_cpp $(CXX) >> .psrc
104 +        echo insure++.temp_directory /tmp >> .psrc
105 +        echo insure++.compiler_default cpp >> .psrc
106 +        echo insure++.summarize leaks >> .psrc

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines