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.4 by williamc, Wed Mar 24 10:18:07 1999 UTC vs.
Revision 1.14.2.12 by williamc, Tue Sep 14 11:51:09 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 + DependencyCCTool = $(CXX) -M $(CPPFLAGS) $^ > $@
40 + PreProcessorCCTool = $(CXX) -P $(CPPFLAGS) $^
41  
42   #----------------------------------------------
43   # Sun 4.2 CC
44   #----------------------------------------------
45   ifeq ($(CCcompiler),Sun-CC-4.2)
46 < CXXFLAGS+=-ptr$(template_dir)
47 < #template_dir=$(shell echo $@ )
48 < template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' )
49 < ArchiveCCTool = CC -xar -o $@ $^ -ptr$(template_dir)
50 < SharedCCTool = CC -G -o $@ $^ -ptr$(template_dir)
51 < DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@
46 > CXX=CC
47 > templatedblib=-ptr$(template_dir) -ptr$(RELEASETOP)/$(workdir)/$(template_dir)
48 > templatedshlib=-ptr$(templatesh_dir) -ptr$(RELEASETOP)/$(workdir)/$(templatesh_dir)
49 > templatedbin=-ptr$(RELEASETOP)/$(workdir)/$(template_dir)
50 > templatedbo=-ptr$(template_dir)
51 > SCClinkCmd+=$(templatedbin)
52 > SCClinkCmd_d+=$(templatedbin)
53 > CXXFLAGS+=$(templatedbo)
54 > template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
55 > templatesh_dir=tmpl_pic
56 > ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib)
57 > SharedCCTool = $(CXX) -G -o $@ $^ $(templatedshlib)
58 > DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@
59   ifdef f77
60   extralib+=M77 F77 sunmath m
61   endif
62 + ifdef MultiThreaded
63 + CXXFLAGS+=-mt
64 + endif
65   endif
66  
67   #----------------------------------------------
# Line 79 | Line 101 | ifdef f77
101   extralib+=g2c m
102   endif
103   endif
104 +
105 + #----------------------------------------------
106 + # GNU g77 Fortran compiler
107 + #----------------------------------------------
108 + ifeq ($(F77compiler),g77)
109 + FC:=g77
110 + endif
111 +
112 + #----------------------------------------------
113 + # HP-UX Fortran compiler fort77
114 + #----------------------------------------------
115 + ifeq ($(F77compiler),fort77)
116 + FC:=fort77
117 + SharedFCObjectFlags = +Z
118 + endif
119 +
120 + #-----------------------------------------------
121 + # Insure++
122 + #-----------------------------------------------
123 + Insure:=insure
124 + .psrc :
125 +        -@rm .psrc
126 +        echo insure++.compiler_cpp $(CXX) >> .psrc
127 +        echo insure++.temp_directory /tmp >> .psrc
128 +        echo insure++.compiler_default cpp >> .psrc
129 +        echo insure++.summarize leaks >> .psrc
130 +
131 + #-----------------------------------------------
132 + # Macabe
133 + #-----------------------------------------------
134 + ifdef MCCABE_EXTENSIONS
135 + include mccabe.mk
136 + endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines