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.13 by williamc, Tue Sep 14 14:37:46 1999 UTC vs.
Revision 1.14.2.29 by williamc, Mon Mar 27 17:57:43 2000 UTC

# Line 23 | Line 23 | FCOptimised=$(FCO2Flag)
23   FCDebugFlag=-g
24   FC:=f77
25  
26 + # java
27 + JAVAC:=javac
28 + JAVACG:=javac_g
29 + JAVAC_=$(JAVAC)
30 + JAVAC_o=$(JAVAC) -O
31 + JAVAC_d=$(JAVAC) -g
32 + JAVAC_g=$(JAVACG) -O
33 + JAVAC_gd=$(JAVACG) -g
34 +
35   ArchiveSuffix = a
36   ArchiveTool = ar -rc $@ $^
37   ArchiveCCTool = $(ArchiveTool)
38 + DebugArchiveCCTool = $(ArchiveTool)
39   SCClinkCmd=$(CXX) $(CXXFLAGS) $(CXXOptimised) $(LDFLAGS) $< -o $@
40   SCClinkCmd_d=$(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@
41   CClinkCmd=$(SCClinkCmd) $(LDLIBS)
42   CClinkCmdDebug=$(SCClinkCmd_d) $(LDLIBS_D)
43 < CClinkCmdInsure=$(SCClinkCmd_d) $(LDLIBS_Insure)
43 > CClinkCmdDebugLocal=$(SCClinkCmd_d) $(LDLIBS_D_L)
44 > CClinkCmdInsure=$(Insure) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_Insure)
45  
46   SharedCCObjectFlags = -PIC
47   SharedFCObjectFlags = -PIC
# Line 38 | Line 49 | SharedSuffix =so
49   SharedCCTool = @echo No Shared Library support
50   DebugSharedCCTool = $(SharedCCTool)
51   InsureSharedCCTool = $(DebugSharedCCTool)
52 < DependencyCCTool = $(CXX) -M $(CPPFLAGS) $^ > $@
52 > DependencyCCTool = $(CXX) -M $(CPPFLAGS) $(DependIncludes) $^ > $@
53   PreProcessorCCTool = $(CXX) -P $(CPPFLAGS) $^
54  
55   #----------------------------------------------
56   # Sun 4.2 CC
57   #----------------------------------------------
58   ifeq ($(CCcompiler),Sun-CC-4.2)
59 < CXX=CC
59 > CXX=eval `scram runtime -sh`; CC
60   templatedblib=-ptr$(template_dir) -ptr$(RELEASETOP)/$(workdir)/$(template_dir)
61 + templatedoblib=-ptrtmpl_o -ptr$(RELEASETOP)/$(workdir)/tmpl_o
62   templatedshlib=-ptr$(templatesh_dir) -ptr$(RELEASETOP)/$(workdir)/$(templatesh_dir)
63   templateddshlib=-ptr$(templateshd_dir) -ptr$(RELEASETOP)/$(workdir)/$(templateshd_dir)
64   templatedinsureshlib=-ptr$(templateshi_dir) -ptr$(RELEASETOP)/$(workdir)/$(templateshi_dir)
# Line 55 | Line 67 | templatedbo=-ptr$(template_dir)
67   SCClinkCmd+=$(templatedbin)
68   SCClinkCmd_d+=$(templatedbin)
69   CXXFLAGS+=$(templatedbo)
70 < template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*.o/tmpl/' -e 's/.*.a/tmpl/' -e 's/.*.exe/tmpl/')
70 > template_dir=$(shell echo $@ | sed -e 's/.*\(_.*\)\..*/tmpl\1/' -e 's/.*\.o/tmpl/' -e 's/.*\.a/tmpl/' -e 's/.*\.exe/tmpl/')
71   templatesh_dir=tmpl_pic
72   templateshd_dir=tmpl_picd
73 < templateshi_dir=tmpl_picinsure
74 < ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib)
73 > templateshi_dir=tmpl_picInsure
74 > ArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedoblib)
75 > DebugArchiveCCTool = $(CXX) -xar -o $@ $^ $(templatedblib)
76   SharedCCTool = $(CXX) -G -o $@ $^ $(templatedshlib)
77   DebugSharedCCTool = $(CXX) -G $(CXXDebugFlag) -o $@ $^ $(templateddshlib)
78   InsureSharedCCTool = $(CXX) -G $(CXXDebugFlag) -o $@ $^ $(templatedinsureshlib)
79 < DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $^ > $@
79 > DependencyCCTool = $(CXX) -xM1 $(CPPFLAGS) $(DependIncludes) $^ > $@
80 > ifdef defaultcompilerlib$(DependIncludes)
81 > PRIORITY_LIBDIR s+=/opt/SUNWspro/SC4.2/lib
82 > endif
83   ifdef f77
84   extralib+=M77 F77 sunmath m
85   endif
# Line 104 | Line 120 | endif
120   # egcs Linux
121   #----------------------------------------------
122   ifeq ($(CCcompiler),egcs)
123 + CXX=eval `scram runtime -sh`; c++
124 + SharedCCObjectFlags = -fPIC
125 + SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
126 + DebugSharedCCTool = $(CXX) $(CXXDebugFlag) $^ -o $@ -shared -Wl,-soname,$@
127 + PreProcessorCCTool = $(CXX) -E $(CPPFLAGS) $^ -o $@
128 + ifdef f77
129 + extralib+=g2c m
130 + endif
131 + endif
132 +
133 + #----------------------------------------------
134 + # gcc2.95 Linux
135 + #----------------------------------------------
136 + ifeq ($(CCcompiler),gcc2.95)
137   CXX=c++
138   SharedCCObjectFlags = -fPIC
139   SharedCCTool = $(CXX) $^ -o $@ -shared -Wl,-soname,$@
140   DebugSharedCCTool = $(CXX) $(CXXDebugFlag) $^ -o $@ -shared -Wl,-soname,$@
141 + PreProcessorCCTool = $(CXX) -E $(CPPFLAGS) $^ -o $@
142   ifdef f77
143   extralib+=g2c m
144   endif
# Line 117 | Line 148 | endif
148   # GNU g77 Fortran compiler
149   #----------------------------------------------
150   ifeq ($(F77compiler),g77)
151 + SharedFCObjectFlags = -fPIC
152   FC:=g77
153   endif
154  
# Line 133 | Line 165 | endif
165   #-----------------------------------------------
166   Insure:=insure
167   .psrc :
168 <        -@rm .psrc
168 >        if [ -f .psrc ]; then \
169 >        rm .psrc; \
170 >        fi;
171          echo insure++.compiler_cpp $(CXX) >> .psrc
172          echo insure++.temp_directory /tmp >> .psrc
173          echo insure++.compiler_default cpp >> .psrc

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines