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.4 by williamc, Mon May 17 12:54:19 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) $(LDFLAGS) $< -o $@
26 + SCClinkCmd_d=$(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@
27 + CClinkCmd=$(SCClinkCmd) $(LDLIBS)
28 + CClinkCmdDebug=$(SCClinkCmd_d) $(LDLIBS_D)
29 + CClinkCmdInsure=$(SCClinkCmd_d) $(LDLIBS_Insure)
30  
31   SharedCCObjectFlags = -PIC
32   SharedFCObjectFlags = -PIC
33   SharedSuffix =so
34   SharedCCTool = @echo No Shared Library support
35 + DependencyCCTool = $(CXX) -M $(CPPFLAGS) $^ > $@
36  
37   #----------------------------------------------
38   # Sun 4.2 CC
39   #----------------------------------------------
40   ifeq ($(CCcompiler),Sun-CC-4.2)
41 < CXXFLAGS+=-ptr$(template_dir)
42 < #template_dir=$(shell echo $@ )
43 < template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' )
44 < ArchiveCCTool = CC -xar -o $@ $^ -ptr$(template_dir)
45 < SharedCCTool = CC -G -o $@ $^ -ptr$(template_dir)
46 < DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@
41 > CXX=CC
42 > templatedblib=-ptr$(template_dir) -ptr$(RELEASETOP)/$(workdir)/$(template_dir)
43 > templatedbin=-ptr$(RELEASETOP)/$(workdir)/$(template_dir)
44 > templatedbo=-ptr$(template_dir)
45 > SCClinkCmd+=$(templatedbin)
46 > SCClinkCmd_d+=$(templatedbin)
47 > CXXFLAGS+=$(templatedbo)
48 > template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
49 > ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib)
50 > SharedCCTool = $(CXX) -G -o $@ $^ $(templatedblib)
51 > DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@
52   ifdef f77
53   extralib+=M77 F77 sunmath m
54   endif
# Line 79 | Line 91 | ifdef f77
91   extralib+=g2c m
92   endif
93   endif
94 +
95 + #----------------------------------------------
96 + # GNU g77 Fortran compiler
97 + #----------------------------------------------
98 + ifeq ($(F77compiler),g77)
99 + FC:=g77
100 + endif
101 +
102 +
103 + #-----------------------------------------------
104 + # Insure++
105 + #-----------------------------------------------
106 + Insure:=insure
107 + .psrc :
108 +        -@rm .psrc
109 +        echo insure++.compiler_cpp $(CXX) >> .psrc
110 +        echo insure++.temp_directory /tmp >> .psrc
111 +        echo insure++.compiler_default cpp >> .psrc
112 +        echo insure++.summarize leaks >> .psrc

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines