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.3 by williamc, Mon Mar 22 16:57:48 1999 UTC vs.
Revision 1.14.2.9 by williamc, Tue Jul 13 15:51:27 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 + PreProcessorCCTool = $(CXX) -P $(CPPFLAGS) $^
37  
38   #----------------------------------------------
39   # Sun 4.2 CC
40   #----------------------------------------------
41   ifeq ($(CCcompiler),Sun-CC-4.2)
42 < CXXFLAGS+=-ptr$(template_dir)
43 < #template_dir=$(shell echo $@ )
44 < template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' )
45 < ArchiveCCTool = CC -xar -o $@ $^ -ptr$(template_dir)
46 < SharedCCTool = CC -G -o $@ $^ -ptr$(template_dir)
47 < DependencyCCTool = CC -xM1 $(CPPFLAGS) $^ > $@
42 > CXX=CC
43 > templatedblib=-ptr$(template_dir) -ptr$(RELEASETOP)/$(workdir)/$(template_dir)
44 > templatedbin=-ptr$(RELEASETOP)/$(workdir)/$(template_dir)
45 > templatedbo=-ptr$(template_dir)
46 > SCClinkCmd+=$(templatedbin)
47 > SCClinkCmd_d+=$(templatedbin)
48 > CXXFLAGS+=$(templatedbo)
49 > template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
50 > ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib)
51 > SharedCCTool = $(CXX) -G -o $@ $^ $(templatedblib)
52 > DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@
53 > ifdef f77
54 > extralib+=M77 F77 sunmath m
55 > endif
56 > ifdef MultiThreaded
57 > CXXFLAGS+=-mt
58 > endif
59   endif
60  
61   #----------------------------------------------
# Line 47 | Line 66 | CXX=aCC
66   SharedCCObjectFlags = +Z
67   SharedSuffix=sl
68   SharedCCTool=aCC -b $^ -o $@
69 + ifdef f77
70 + LIBDIR+=/opt/fortran/lib
71 + extralib+=cl isamstub U77 /usr/lib/libdld.sl
72 + endif
73   endif
74  
75   #----------------------------------------------
# Line 56 | Line 79 | ifeq ($(CCcompiler),gcc)
79   CXX=c++
80   SharedCCObjectFlags = -fPIC
81   SharedCCTool = gcc $^ -o $@ -shared -Wl,-soname,$@
82 + ifdef f77
83 + extralib+=f2c m
84 + endif
85   endif
86  
87   #----------------------------------------------
# Line 65 | Line 91 | ifeq ($(CCcompiler),egcs)
91   CXX=c++
92   SharedCCObjectFlags = -fPIC
93   SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
94 + ifdef f77
95 + extralib+=g2c m
96 + endif
97 + endif
98 +
99 + #----------------------------------------------
100 + # GNU g77 Fortran compiler
101 + #----------------------------------------------
102 + ifeq ($(F77compiler),g77)
103 + FC:=g77
104 + endif
105 +
106 +
107 + #-----------------------------------------------
108 + # Insure++
109 + #-----------------------------------------------
110 + Insure:=insure
111 + .psrc :
112 +        -@rm .psrc
113 +        echo insure++.compiler_cpp $(CXX) >> .psrc
114 +        echo insure++.temp_directory /tmp >> .psrc
115 +        echo insure++.compiler_default cpp >> .psrc
116 +        echo insure++.summarize leaks >> .psrc
117 +
118 + #-----------------------------------------------
119 + # Macabe
120 + #-----------------------------------------------
121 + ifdef MCCABE_EXTENSIONS
122 + include mccabe.mk
123   endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines