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.5 by williamc, Thu Mar 25 13:06:29 1999 UTC vs.
Revision 1.15 by williamc, Thu Apr 1 12:38:49 1999 UTC

# Line 7 | Line 7 | bin : dependencies.mk
7   #------------------------------------------------
8   # Default Behaviours - interpreted from makefile
9   #------------------------------------------------
10 + # -- storage of binaries
11 + binarystore:=$(LOCALTOP)/$(INTbin)
12 + VPATH+=:$(LOCALTOP)/$(INTbin):$(RELEASETOP)/$(INTbin)
13  
14   # -- storage of libraries
15   librarystore:=$(LOCALTOP)/$(INTlib)
# Line 34 | 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 42 | 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 56 | 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 + SsharedlibInsureobjs:=$(addsuffix _picInsure.o,$(sharedfiles))
71 + SarchivelibInsureobjs:=$(addsuffix _Insure.o,$(archivefiles))
72  
73   #------------------------------------------------
74   # Rules Start Here
# Line 89 | Line 102 | Ssharedlibdebugobjs:=$(addsuffix _picd.o
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 108 | Line 130 | Ssharedlibdebugobjs:=$(addsuffix _picd.o
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 + # -------------------------------------------------------------------------
164 +
165 + # -- Debug Executables
166 +
167 + lib_d=$(shell $(TOOL_HOME)/LibTypeExpand "_d" $(lib))
168 + LDLIBS_D=$(addprefix -l,$(lib_d))
169 +
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 ::
187 +        @if [ "$(realbins)" != "" ] ; then \
188 +        echo Removing executables : $(realbins); \
189 +        rm $(LOCALTOP)/$(INTbin)/$(realbins); \
190 +        fi;
191 +
192 + # -------------------------------------------------------------------------
193 +
194   # Some nice generic target names for the user
195  
196   shared : $(shlibname).$(SharedSuffix)
# Line 131 | 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)
227 <        @mv $@ $(librarystore)
227 >        @mv $@ $(librarystore)/$@
228  
229   # -- Debug Archive Libs
230   $(arlibname)_d.$(ArchiveSuffix) : $(Sarchivelibdebugobjs)
231          $(ArchiveCCTool)
232 <        @mv $@ $(librarystore)
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