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.7 by williamc, Tue Mar 30 13:44:00 1999 UTC vs.
Revision 1.14.2.13 by williamc, Tue Sep 14 14:37:46 1999 UTC

# Line 16 | Line 16
16   #----------------------------------------------
17   CXX=CC
18   CXXDebugFlag=-g
19 + CXXO2Flag=-O2
20 + CXXOptimised=$(CXXO2Flag)
21 + FCO2Flag=-O2
22 + FCOptimised=$(FCO2Flag)
23   FCDebugFlag=-g
24   FC:=f77
25  
26   ArchiveSuffix = a
27   ArchiveTool = ar -rc $@ $^
28   ArchiveCCTool = $(ArchiveTool)
29 + SCClinkCmd=$(CXX) $(CXXFLAGS) $(CXXOptimised) $(LDFLAGS) $< -o $@
30 + SCClinkCmd_d=$(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@
31 + CClinkCmd=$(SCClinkCmd) $(LDLIBS)
32 + CClinkCmdDebug=$(SCClinkCmd_d) $(LDLIBS_D)
33 + CClinkCmdInsure=$(SCClinkCmd_d) $(LDLIBS_Insure)
34  
35   SharedCCObjectFlags = -PIC
36   SharedFCObjectFlags = -PIC
37   SharedSuffix =so
38   SharedCCTool = @echo No Shared Library support
39 + DebugSharedCCTool = $(SharedCCTool)
40 + InsureSharedCCTool = $(DebugSharedCCTool)
41 + DependencyCCTool = $(CXX) -M $(CPPFLAGS) $^ > $@
42 + PreProcessorCCTool = $(CXX) -P $(CPPFLAGS) $^
43  
44   #----------------------------------------------
45   # Sun 4.2 CC
46   #----------------------------------------------
47   ifeq ($(CCcompiler),Sun-CC-4.2)
48 < CXXFLAGS+=-ptr$(template_dir) -features=rtti
49 < #template_dir=$(shell echo $@ )
48 > CXX=CC
49 > templatedblib=-ptr$(template_dir) -ptr$(RELEASETOP)/$(workdir)/$(template_dir)
50 > templatedshlib=-ptr$(templatesh_dir) -ptr$(RELEASETOP)/$(workdir)/$(templatesh_dir)
51 > templateddshlib=-ptr$(templateshd_dir) -ptr$(RELEASETOP)/$(workdir)/$(templateshd_dir)
52 > templatedinsureshlib=-ptr$(templateshi_dir) -ptr$(RELEASETOP)/$(workdir)/$(templateshi_dir)
53 > templatedbin=-ptr$(RELEASETOP)/$(workdir)/$(template_dir)
54 > templatedbo=-ptr$(template_dir)
55 > SCClinkCmd+=$(templatedbin)
56 > SCClinkCmd_d+=$(templatedbin)
57 > CXXFLAGS+=$(templatedbo)
58   template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
59 < ArchiveCCTool = CC -xar -o $@ $^ -ptr$(template_dir)
60 < SharedCCTool = CC -G -o $@ $^ -ptr$(template_dir)
61 < DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@
59 > templatesh_dir=tmpl_pic
60 > templateshd_dir=tmpl_picd
61 > templateshi_dir=tmpl_picinsure
62 > ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib)
63 > SharedCCTool = $(CXX) -G -o $@ $^ $(templatedshlib)
64 > DebugSharedCCTool = $(CXX) -G $(CXXDebugFlag) -o $@ $^ $(templateddshlib)
65 > InsureSharedCCTool = $(CXX) -G $(CXXDebugFlag) -o $@ $^ $(templatedinsureshlib)
66 > DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@
67   ifdef f77
68   extralib+=M77 F77 sunmath m
69   endif
70 + ifdef MultiThreaded
71 + CXXFLAGS+=-mt
72 + endif
73   endif
74  
75   #----------------------------------------------
# Line 51 | Line 80 | CXX=aCC
80   SharedCCObjectFlags = +Z
81   SharedSuffix=sl
82   SharedCCTool=aCC -b $^ -o $@
83 + DebugSharedCCTool=aCC $(CXXDebugFlag) -b $^ -o $@
84   ifdef f77
85   LIBDIR+=/opt/fortran/lib
86   extralib+=cl isamstub U77 /usr/lib/libdld.sl
# Line 64 | Line 94 | ifeq ($(CCcompiler),gcc)
94   CXX=c++
95   SharedCCObjectFlags = -fPIC
96   SharedCCTool = gcc $^ -o $@ -shared -Wl,-soname,$@
97 + DebugSharedCCTool = gcc $(CXXDebugFlag) $^ -o $@ -shared -Wl,-soname,$@
98   ifdef f77
99   extralib+=f2c m
100   endif
# Line 76 | Line 107 | ifeq ($(CCcompiler),egcs)
107   CXX=c++
108   SharedCCObjectFlags = -fPIC
109   SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
110 + DebugSharedCCTool = $(CXX) $(CXXDebugFlag) $^ -o $@ -shared -Wl,-soname,$@
111   ifdef f77
112   extralib+=g2c m
113   endif
# Line 87 | Line 119 | endif
119   ifeq ($(F77compiler),g77)
120   FC:=g77
121   endif
122 +
123 + #----------------------------------------------
124 + # HP-UX Fortran compiler fort77
125 + #----------------------------------------------
126 + ifeq ($(F77compiler),fort77)
127 + FC:=fort77
128 + SharedFCObjectFlags = +Z
129 + endif
130 +
131 + #-----------------------------------------------
132 + # Insure++
133 + #-----------------------------------------------
134 + Insure:=insure
135 + .psrc :
136 +        -@rm .psrc
137 +        echo insure++.compiler_cpp $(CXX) >> .psrc
138 +        echo insure++.temp_directory /tmp >> .psrc
139 +        echo insure++.compiler_default cpp >> .psrc
140 +        echo insure++.summarize leaks >> .psrc
141 +
142 + #-----------------------------------------------
143 + # Macabe
144 + #-----------------------------------------------
145 + ifdef MCCABE_EXTENSIONS
146 + include mccabe.mk
147 + endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines