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.6 by williamc, Fri Mar 26 15:14:37 1999 UTC vs.
Revision 1.13 by williamc, Thu Apr 1 08:27:33 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 + SsharedlibInsureobjs:=$(addsuffix _picInsure.o,$(sharedfiles))
71 + SarchivelibInsureobjs:=$(addsuffix _Insure.o,$(archivefiles))
72  
73   #------------------------------------------------
74   # Rules Start Here
# Line 92 | 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 111 | Line 130 | Ssharedlibdebugobjs:=$(addsuffix _picd.o
130   %_d.o : %.f
131          $(FC) -c $(CPPFLAGS) $(FFLAGS) $(FCDebugFlag) $< -o $@
132  
133 < # -- Executables
134 < %.exe : %.cpp
135 <        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
117 <
118 < %.exe : %.cc
119 <        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
120 <
121 < %.exe : %.C
122 <        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
133 > # -- Debug Archive Libs with Insure
134 > %_Insure.o : %.cpp
135 >        $(Insure) -c $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $< -o $@
136  
137 < %.exe : %.F
138 <        $(FC) $(CPPFLAGS) $(FFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
137 > %_Insure.o : %.cc
138 >        $(Insure) -c $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $< -o $@
139  
140 < %.exe : %.f
141 <        $(FC) $(CPPFLAGS) $(FFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
140 > %_Insure.o : %.C
141 >        $(Insure) -c $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $< -o $@
142  
143 < # -- Debug Exexcutables
144 < #LDLIBS_D:=$(shell $(TOOL_HOME)/LibTypeExpand $(LDLIBS) "_d")
132 < %_d.exe : %.cpp
133 <        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ \                    $(LDLIBS_D)
143 > # -- Standard Archive Libs
144 > # Already built in
145  
146 < %_d.exe : %.cc
147 <        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
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 < %_d.exe : %.C
165 <        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
164 > # -- Executables
165 > %.exe : %.o
166 >        $(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
167  
168 < %_d.exe : %.F
142 <        $(FC) $(CPPFLAGS) $(FFLAGS_D) $(FCDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
168 > # -------------------------------------------------------------------------
169  
170 < %_d.exe : %.f
171 <        $(FC) $(CPPFLAGS) $(FFLAGS_D) $(FCDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
170 > realbins:=$(filter $(bintargets),$(notdir $(wildcard $(LOCALTOP)/$(INTbin)/*)))
171 > clean ::
172 >        @if [ "$(realbins)" != "" ] ; then \
173 >        echo Removing executables : $(realbins); \
174 >        rm $(LOCALTOP)/$(INTbin)/$(realbins); \
175 >        fi;
176  
177 + # -------------------------------------------------------------------------
178  
179   # Some nice generic target names for the user
180  
# Line 168 | 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)
212 <        @mv $@ $(librarystore)
212 >        @mv $@ $(librarystore)/$@
213  
214   # -- Debug Archive Libs
215   $(arlibname)_d.$(ArchiveSuffix) : $(Sarchivelibdebugobjs)
216          $(ArchiveCCTool)
217 <        @mv $@ $(librarystore)
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines