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.8 by williamc, Fri Mar 26 18:17:51 1999 UTC vs.
Revision 1.14 by williamc, Thu Apr 1 09:55:00 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 + # Already built in
145 +
146 + # -------------------------------------------------------------------------
147 + # Executables
148   # -------------------------------------------------------------------------
149 +
150 + # -- Debug Executables
151 +
152 + lib_d=$(shell $(TOOL_HOME)/LibTypeExpand "_d" $(lib))
153 + LDLIBS_D=$(addprefix -l,$(lib_d))
154 +
155 + %_d.exe :
156 +        $(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
157 +
158 + # -- Insure Executables
159 + lib_Insure=$(shell $(TOOL_HOME)/LibTypeExpand "_Insure" $(lib))
160 + LDLIBS_I=$(addprefix -l,$(lib_Insure))
161 + %_Insure.exe :
162 +        $(Insure) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
163 +
164   # -- Executables
165 < %.exe : $(Sbinaryobjects)
165 > %.exe :
166          $(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
167  
168 < # -- Debug Exexcutables
123 <
124 < #LDLIBS_D:=$(shell $(TOOL_HOME)/LibTypeExpand $(LDLIBS) "_d")
125 < %_d.exe : $(Sbinaryobjects)
126 <        $(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ \                        $(LDLIBS_D)
168 > # -------------------------------------------------------------------------
169  
170   realbins:=$(filter $(bintargets),$(notdir $(wildcard $(LOCALTOP)/$(INTbin)/*)))
171   clean ::
# Line 157 | Line 199 | $(shlibname)_picd.$(SharedSuffix) : $(Ss
199   $(shlibname)_d.$(SharedSuffix) : $(Ssharedlibdebugobjs)
200          @mv $< $(librarystore)/$@
201  
202 + # -- Insure Shared Objects Libs
203 + $(shlibname)_picInsure.$(SharedSuffix) : $(SsharedlibInsureobjs)
204 +        $(SharedCCTool)
205 +
206 + $(shlibname)_Insure.$(SharedSuffix) : $(SsharedlibInsureobjs)
207 +        @mv $< $(librarystore)/$@
208 +
209   # -- Standard Archive Libs
210   $(arlibname).$(ArchiveSuffix) : $(Sarchivelibobjs)
211          $(ArchiveCCTool)
# Line 167 | Line 216 | $(arlibname)_d.$(ArchiveSuffix) : $(Sarc
216          $(ArchiveCCTool)
217          @mv $@ $(librarystore)/$@
218  
219 + # -- Insure Archive libs
220 + $(arlibname)_Insure.$(ArchiveSuffix) : $(SarchivelibInsureobjs)
221 +        $(ArchiveCCTool)
222 +        @mv $@ $(librarystore)/$@
223 +
224   # -- Dependencies
225   dependencies.mk: $(files)
226          @$(DependencyCCTool)
227          @$(TOOL_HOME)/DependencyMangler $@
228 +
229 + %.dep:
230 +        @$(DependencyCCTool)
231 +        @$(TOOL_HOME)/DependencyMangler $@

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines