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.18 by williamc, Fri Sep 24 16:34:27 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 + DebugArchiveCCTool = $(ArchiveTool)
30 + SCClinkCmd=$(CXX) $(CXXFLAGS) $(CXXOptimised) $(LDFLAGS) $< -o $@
31 + SCClinkCmd_d=$(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@
32 + CClinkCmd=$(SCClinkCmd) $(LDLIBS)
33 + CClinkCmdDebug=$(SCClinkCmd_d) $(LDLIBS_D)
34 + CClinkCmdDebugLocal=$(SCClinkCmd_d) $(LDLIBS_D_L)
35 + CClinkCmdInsure=$(Insure) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_Insure)
36  
37   SharedCCObjectFlags = -PIC
38   SharedFCObjectFlags = -PIC
39   SharedSuffix =so
40   SharedCCTool = @echo No Shared Library support
41 + DebugSharedCCTool = $(SharedCCTool)
42 + InsureSharedCCTool = $(DebugSharedCCTool)
43 + DependencyCCTool = $(CXX) -M $(CPPFLAGS) $^ > $@
44 + PreProcessorCCTool = $(CXX) -P $(CPPFLAGS) $^
45  
46   #----------------------------------------------
47   # Sun 4.2 CC
48   #----------------------------------------------
49   ifeq ($(CCcompiler),Sun-CC-4.2)
50 < CXXFLAGS+=-ptr$(template_dir) -features=rtti
51 < #template_dir=$(shell echo $@ )
52 < template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
53 < ArchiveCCTool = CC -xar -o $@ $^ -ptr$(template_dir)
54 < SharedCCTool = CC -G -o $@ $^ -ptr$(template_dir)
55 < DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@
50 > CXX=CC
51 > templatedblib=-ptr$(template_dir) -ptr$(RELEASETOP)/$(workdir)/$(template_dir)
52 > templatedoblib=-ptrtmpl_o -ptrtmpl_o
53 > templatedshlib=-ptr$(templatesh_dir) -ptr$(RELEASETOP)/$(workdir)/$(templatesh_dir)
54 > templateddshlib=-ptr$(templateshd_dir) -ptr$(RELEASETOP)/$(workdir)/$(templateshd_dir)
55 > templatedinsureshlib=-ptr$(templateshi_dir) -ptr$(RELEASETOP)/$(workdir)/$(templateshi_dir)
56 > templatedbin=-ptr$(RELEASETOP)/$(workdir)/$(template_dir)
57 > templatedbo=-ptr$(template_dir)
58 > SCClinkCmd+=$(templatedbin)
59 > SCClinkCmd_d+=$(templatedbin)
60 > CXXFLAGS+=$(templatedbo)
61 > template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*\.o/tmpl/' -e 's/.*\.a/tmpl/' -e 's/.*\.exe/tmpl/')
62 > templatesh_dir=tmpl_pic
63 > templateshd_dir=tmpl_picd
64 > templateshi_dir=tmpl_picInsure
65 > ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedoblib)
66 > DebugArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib)
67 > SharedCCTool = $(CXX) -G -o $@ $^ $(templatedshlib)
68 > DebugSharedCCTool = $(CXX) -G $(CXXDebugFlag) -o $@ $^ $(templateddshlib)
69 > InsureSharedCCTool = $(CXX) -G $(CXXDebugFlag) -o $@ $^ $(templatedinsureshlib)
70 > DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@
71   ifdef f77
72   extralib+=M77 F77 sunmath m
73   endif
74 + ifdef MultiThreaded
75 + CXXFLAGS+=-mt
76 + endif
77   endif
78  
79   #----------------------------------------------
# Line 51 | Line 84 | CXX=aCC
84   SharedCCObjectFlags = +Z
85   SharedSuffix=sl
86   SharedCCTool=aCC -b $^ -o $@
87 + DebugSharedCCTool=aCC $(CXXDebugFlag) -b $^ -o $@
88   ifdef f77
89   LIBDIR+=/opt/fortran/lib
90   extralib+=cl isamstub U77 /usr/lib/libdld.sl
# Line 64 | Line 98 | ifeq ($(CCcompiler),gcc)
98   CXX=c++
99   SharedCCObjectFlags = -fPIC
100   SharedCCTool = gcc $^ -o $@ -shared -Wl,-soname,$@
101 + DebugSharedCCTool = gcc $(CXXDebugFlag) $^ -o $@ -shared -Wl,-soname,$@
102   ifdef f77
103   extralib+=f2c m
104   endif
# Line 76 | Line 111 | ifeq ($(CCcompiler),egcs)
111   CXX=c++
112   SharedCCObjectFlags = -fPIC
113   SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
114 + DebugSharedCCTool = $(CXX) $(CXXDebugFlag) $^ -o $@ -shared -Wl,-soname,$@
115   ifdef f77
116   extralib+=g2c m
117   endif
# Line 87 | Line 123 | endif
123   ifeq ($(F77compiler),g77)
124   FC:=g77
125   endif
126 +
127 + #----------------------------------------------
128 + # HP-UX Fortran compiler fort77
129 + #----------------------------------------------
130 + ifeq ($(F77compiler),fort77)
131 + FC:=fort77
132 + SharedFCObjectFlags = +Z
133 + endif
134 +
135 + #-----------------------------------------------
136 + # Insure++
137 + #-----------------------------------------------
138 + Insure:=insure
139 + .psrc :
140 +        @if [ -f .psrc ]; then \
141 +        rm .psrc \
142 +        fi
143 +        echo insure++.compiler_cpp $(CXX) >> .psrc
144 +        echo insure++.temp_directory /tmp >> .psrc
145 +        echo insure++.compiler_default cpp >> .psrc
146 +        echo insure++.summarize leaks >> .psrc
147 +
148 + #-----------------------------------------------
149 + # Macabe
150 + #-----------------------------------------------
151 + ifdef MCCABE_EXTENSIONS
152 + include mccabe.mk
153 + endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines