ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/toolrules.mk
(Generate patch)

Comparing COMP/SCRAM/src/toolrules.mk (file contents):
Revision 1.9 by williamc, Tue Mar 30 15:07:35 1999 UTC vs.
Revision 1.15 by williamc, Thu Apr 1 12:38:49 1999 UTC

# Line 37 | Line 37 | ifdef DefaultDebugShared
37   lib : $(shlibname)_d.$(SharedSuffix)
38   MakeLib=yes
39   endif
40 + ifdef DefaultInsureShared
41 + lib : $(shlibname)_Insure.$(SharedSuffix)
42 + MakeLib=yes
43 + endif
44   ifdef DefaultArchive
45   lib : $(arlibname).$(ArchiveSuffix)
46   MakeLib=yes
# Line 45 | Line 49 | ifdef DefaultDebugArchive
49   lib : $(arlibname)_d.$(ArchiveSuffix)
50   MakeLib=yes
51   endif
52 + ifdef DefaultInsureArchive
53 + lib : $(arlibname)_Insure.$(ArchiveSuffix)
54 + MakeLib=yes
55 + endif
56  
57   ifdef MakeLib
58   all: lib
# Line 59 | Line 67 | Sarchivelibobjs:=$(addsuffix .o,$(archiv
67   Sarchivelibdebugobjs:=$(addsuffix _d.o,$(archivefiles))
68   Ssharedlibobjs:=$(addsuffix _pic.o,$(sharedfiles))
69   Ssharedlibdebugobjs:=$(addsuffix _picd.o,$(sharedfiles))
70 <
71 < # binary target files
64 < Sbinaryobjects:=$(addsuffix .o,$(binfiles))
70 > SsharedlibInsureobjs:=$(addsuffix _picInsure.o,$(sharedfiles))
71 > SarchivelibInsureobjs:=$(addsuffix _Insure.o,$(archivefiles))
72  
73   #------------------------------------------------
74   # Rules Start Here
# Line 95 | Line 102 | Sbinaryobjects:=$(addsuffix .o,$(binfile
102  
103   %_picd.o : %.f
104          $(FC) -c $(CPPFLAGS) $(FFLAGS) $(FCDebugFlag) $(SharedFCObjectFlags) $< -o $@
105 < # -- Standard Archive Libs
106 < # Already built in
105 >
106 > # -- Debug Shared Objects with Insure
107 > %_picInsure.o : %.cc
108 >        $(Insure) -c $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(SharedCCObjectFlags) $< -o $@
109 >
110 > %_picInsure.o : %.C
111 >        $(Insure) -c $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(SharedCCObjectFlags) $< -o $@
112 >
113 > %_picInsure.o : %.cpp
114 >        $(Insure) -c $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(SharedCCObjectFlags) $< -o $@
115 >
116  
117   # -- Debug Archive Libs
118   %_d.o : %.cpp
# Line 114 | Line 130 | Sbinaryobjects:=$(addsuffix .o,$(binfile
130   %_d.o : %.f
131          $(FC) -c $(CPPFLAGS) $(FFLAGS) $(FCDebugFlag) $< -o $@
132  
133 + # -- Debug Archive Libs with Insure
134 + %_Insure.o : %.cpp
135 +        $(Insure) -c $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $< -o $@
136 +
137 + %_Insure.o : %.cc
138 +        $(Insure) -c $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $< -o $@
139 +
140 + %_Insure.o : %.C
141 +        $(Insure) -c $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $< -o $@
142 +
143 + # -- Standard Archive Libs
144 + %.o : %.cpp
145 +        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
146 +
147 + %.o : %.cc
148 +        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
149 +
150 + %.o : %.C
151 +        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
152 +
153 + %.o : %.F
154 +        $(FC) -c $(CPPFLAGS) $(FFLAGS) $< -o $@
155 +
156 + %.o : %.f
157 +        $(FC) -c $(CPPFLAGS) $(FFLAGS) $< -o $@
158 +
159 + # Already built in
160 +
161   # -------------------------------------------------------------------------
162 < # -- Executables
163 < %.exe : %.o
164 <        $(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
162 > # Executables
163 > # -------------------------------------------------------------------------
164 >
165 > # -- Debug Executables
166  
167 < # -- Debug Exexcutables
167 > lib_d=$(shell $(TOOL_HOME)/LibTypeExpand "_d" $(lib))
168 > LDLIBS_D=$(addprefix -l,$(lib_d))
169  
170 < #LDLIBS_D:=$(shell $(TOOL_HOME)/LibTypeExpand $(LDLIBS) "_d")
171 < %_d.exe :
172 <        $(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ \                        $(LDLIBS_D)
170 > #%_d.exe :
171 > #       $(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
172 >
173 > # -- Insure Executables
174 > lib_Insure=$(shell $(TOOL_HOME)/LibTypeExpand "_Insure" $(lib))
175 > LDLIBS_I=$(addprefix -l,$(lib_Insure))
176 > #%_Insure.exe :
177 > #       $(Insure) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
178 >
179 > # -- Executables
180 > #%.exe :
181 > #       $(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
182 >
183 > # -------------------------------------------------------------------------
184  
185   realbins:=$(filter $(bintargets),$(notdir $(wildcard $(LOCALTOP)/$(INTbin)/*)))
186   clean ::
# Line 157 | Line 214 | $(shlibname)_picd.$(SharedSuffix) : $(Ss
214   $(shlibname)_d.$(SharedSuffix) : $(Ssharedlibdebugobjs)
215          @mv $< $(librarystore)/$@
216  
217 + # -- Insure Shared Objects Libs
218 + $(shlibname)_picInsure.$(SharedSuffix) : $(SsharedlibInsureobjs)
219 +        $(SharedCCTool)
220 +
221 + $(shlibname)_Insure.$(SharedSuffix) : $(SsharedlibInsureobjs)
222 +        @mv $< $(librarystore)/$@
223 +
224   # -- Standard Archive Libs
225   $(arlibname).$(ArchiveSuffix) : $(Sarchivelibobjs)
226          $(ArchiveCCTool)
# Line 167 | Line 231 | $(arlibname)_d.$(ArchiveSuffix) : $(Sarc
231          $(ArchiveCCTool)
232          @mv $@ $(librarystore)/$@
233  
234 + # -- Insure Archive libs
235 + $(arlibname)_Insure.$(ArchiveSuffix) : $(SarchivelibInsureobjs)
236 +        $(ArchiveCCTool)
237 +        @mv $@ $(librarystore)/$@
238 +
239   # -- Dependencies
240   dependencies.mk: $(files)
241          @$(DependencyCCTool)
242          @$(TOOL_HOME)/DependencyMangler $@
243 +
244 + %.dep:
245 +        @$(DependencyCCTool)
246 +        @$(TOOL_HOME)/DependencyMangler $@

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines