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.14.2.3 by williamc, Mon May 17 09:40:56 1999 UTC vs.
Revision 1.14.2.14 by williamc, Fri Sep 17 13:10:43 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) $(LDFLAGS) $< -o $@
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 + CClinkCmdDebugLocal=$(SCClinkCmd_d) $(LDLIBS_D_L)
34   CClinkCmdInsure=$(SCClinkCmd_d) $(LDLIBS_Insure)
35  
36   SharedCCObjectFlags = -PIC
37   SharedFCObjectFlags = -PIC
38   SharedSuffix =so
39   SharedCCTool = @echo No Shared Library support
40 + DebugSharedCCTool = $(SharedCCTool)
41 + InsureSharedCCTool = $(DebugSharedCCTool)
42   DependencyCCTool = $(CXX) -M $(CPPFLAGS) $^ > $@
43 + PreProcessorCCTool = $(CXX) -P $(CPPFLAGS) $^
44  
45   #----------------------------------------------
46   # Sun 4.2 CC
# Line 40 | Line 48 | DependencyCCTool = $(CXX) -M $(CPPFLAGS)
48   ifeq ($(CCcompiler),Sun-CC-4.2)
49   CXX=CC
50   templatedblib=-ptr$(template_dir) -ptr$(RELEASETOP)/$(workdir)/$(template_dir)
51 + templatedshlib=-ptr$(templatesh_dir) -ptr$(RELEASETOP)/$(workdir)/$(templatesh_dir)
52 + templateddshlib=-ptr$(templateshd_dir) -ptr$(RELEASETOP)/$(workdir)/$(templateshd_dir)
53 + templatedinsureshlib=-ptr$(templateshi_dir) -ptr$(RELEASETOP)/$(workdir)/$(templateshi_dir)
54 + templatedbin=-ptr$(RELEASETOP)/$(workdir)/$(template_dir)
55   templatedbo=-ptr$(template_dir)
56 + SCClinkCmd+=$(templatedbin)
57 + SCClinkCmd_d+=$(templatedbin)
58   CXXFLAGS+=$(templatedbo)
59   template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
60 + templatesh_dir=tmpl_pic
61 + templateshd_dir=tmpl_picd
62 + templateshi_dir=tmpl_picinsure
63   ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib)
64 < SharedCCTool = $(CXX) -G -o $@ $^ $(templatedblib)
64 > SharedCCTool = $(CXX) -G -o $@ $^ $(templatedshlib)
65 > DebugSharedCCTool = $(CXX) -G $(CXXDebugFlag) -o $@ $^ $(templateddshlib)
66 > InsureSharedCCTool = $(CXX) -G $(CXXDebugFlag) -o $@ $^ $(templatedinsureshlib)
67   DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@
68   ifdef f77
69   extralib+=M77 F77 sunmath m
70   endif
71 + ifdef MultiThreaded
72 + CXXFLAGS+=-mt
73 + endif
74   endif
75  
76   #----------------------------------------------
# Line 59 | Line 81 | CXX=aCC
81   SharedCCObjectFlags = +Z
82   SharedSuffix=sl
83   SharedCCTool=aCC -b $^ -o $@
84 + DebugSharedCCTool=aCC $(CXXDebugFlag) -b $^ -o $@
85   ifdef f77
86   LIBDIR+=/opt/fortran/lib
87   extralib+=cl isamstub U77 /usr/lib/libdld.sl
# Line 72 | Line 95 | ifeq ($(CCcompiler),gcc)
95   CXX=c++
96   SharedCCObjectFlags = -fPIC
97   SharedCCTool = gcc $^ -o $@ -shared -Wl,-soname,$@
98 + DebugSharedCCTool = gcc $(CXXDebugFlag) $^ -o $@ -shared -Wl,-soname,$@
99   ifdef f77
100   extralib+=f2c m
101   endif
# Line 84 | Line 108 | ifeq ($(CCcompiler),egcs)
108   CXX=c++
109   SharedCCObjectFlags = -fPIC
110   SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
111 + DebugSharedCCTool = $(CXX) $(CXXDebugFlag) $^ -o $@ -shared -Wl,-soname,$@
112   ifdef f77
113   extralib+=g2c m
114   endif
# Line 96 | Line 121 | ifeq ($(F77compiler),g77)
121   FC:=g77
122   endif
123  
124 + #----------------------------------------------
125 + # HP-UX Fortran compiler fort77
126 + #----------------------------------------------
127 + ifeq ($(F77compiler),fort77)
128 + FC:=fort77
129 + SharedFCObjectFlags = +Z
130 + endif
131  
132   #-----------------------------------------------
133   # Insure++
# Line 107 | Line 139 | Insure:=insure
139          echo insure++.temp_directory /tmp >> .psrc
140          echo insure++.compiler_default cpp >> .psrc
141          echo insure++.summarize leaks >> .psrc
142 +
143 + #-----------------------------------------------
144 + # Macabe
145 + #-----------------------------------------------
146 + ifdef MCCABE_EXTENSIONS
147 + include mccabe.mk
148 + endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines