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.13 by williamc, Thu Apr 1 08:27:33 1999 UTC vs.
Revision 1.17 by williamc, Thu Apr 1 17:28:46 1999 UTC

# Line 1 | Line 1
1   # Some Pre-Defined Rules For Building Stuff
2   #
3 < #include compilers.mk
3 > .PHONY:bin lib
4   lib : dependencies.mk
5   bin : dependencies.mk
6  
# Line 11 | Line 11 | bin : dependencies.mk
11   binarystore:=$(LOCALTOP)/$(INTbin)
12   VPATH+=:$(LOCALTOP)/$(INTbin):$(RELEASETOP)/$(INTbin)
13  
14 # -- storage of libraries
15 librarystore:=$(LOCALTOP)/$(INTlib)
16 vpath %.$(SharedSuffix) $(librarystore):$(RELEASETOP)/$(INTlib)
17 vpath %.$(ArchiveSuffix) $(librarystore):$(RELEASETOP)/$(INTlib)
18
14   # -- library names
15  
16   ifdef libname
# Line 141 | Line 136 | SarchivelibInsureobjs:=$(addsuffix _Insu
136          $(Insure) -c $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $< -o $@
137  
138   # -- Standard Archive Libs
139 + %.o : %.cpp
140 +        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
141 +
142 + %.o : %.cc
143 +        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
144 +
145 + %.o : %.C
146 +        $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
147 +
148 + %.o : %.F
149 +        $(FC) -c $(CPPFLAGS) $(FFLAGS) $< -o $@
150 +
151 + %.o : %.f
152 +        $(FC) -c $(CPPFLAGS) $(FFLAGS) $< -o $@
153 +
154   # Already built in
155  
156   # -------------------------------------------------------------------------
# Line 152 | Line 162 | SarchivelibInsureobjs:=$(addsuffix _Insu
162   lib_d=$(shell $(TOOL_HOME)/LibTypeExpand "_d" $(lib))
163   LDLIBS_D=$(addprefix -l,$(lib_d))
164  
165 < %_d.exe :
166 <        $(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
165 > #%_d.exe :
166 > #       $(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
167  
168   # -- Insure Executables
169   lib_Insure=$(shell $(TOOL_HOME)/LibTypeExpand "_Insure" $(lib))
170   LDLIBS_I=$(addprefix -l,$(lib_Insure))
171 < %_Insure.exe :
172 <        $(Insure) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
171 > #%_Insure.exe :
172 > #       $(Insure) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
173  
174   # -- Executables
175 < %.exe : %.o
176 <        $(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
175 > #%.exe :
176 > #       $(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
177  
178   # -------------------------------------------------------------------------
179  
# Line 225 | Line 235 | $(arlibname)_Insure.$(ArchiveSuffix) : $
235   dependencies.mk: $(files)
236          @$(DependencyCCTool)
237          @$(TOOL_HOME)/DependencyMangler $@
238 +
239 + %.dep:
240 +        @$(DependencyCCTool)
241 +        @$(TOOL_HOME)/DependencyMangler $@
242 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines