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.3 by williamc, Mon Mar 22 17:21:20 1999 UTC vs.
Revision 1.11 by williamc, Tue Mar 30 17:43:32 1999 UTC

# Line 1 | Line 1
1   # Some Pre-Defined Rules For Building Stuff
2   #
3 < include compilers.mk
3 > #include compilers.mk
4   lib : dependencies.mk
5   bin : dependencies.mk
6  
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 57 | Line 60 | Sarchivelibdebugobjs:=$(addsuffix _d.o,$
60   Ssharedlibobjs:=$(addsuffix _pic.o,$(sharedfiles))
61   Ssharedlibdebugobjs:=$(addsuffix _picd.o,$(sharedfiles))
62  
63 + # binary target files
64 + Sbinaryobjects:=$(addsuffix .o,$(binfiles))
65 +
66   #------------------------------------------------
67   # Rules Start Here
68   #------------------------------------------------
# Line 108 | Line 114 | Ssharedlibdebugobjs:=$(addsuffix _picd.o
114   %_d.o : %.f
115          $(FC) -c $(CPPFLAGS) $(FFLAGS) $(FCDebugFlag) $< -o $@
116  
117 + # -------------------------------------------------------------------------
118 +
119 + # -- Debug Exexcutables
120 +
121 + lib_d:=$(shell $(TOOL_HOME)/LibTypeExpand "_d" $(lib))
122 + LDLIBS_D=$(addprefix -l,$(lib_d))
123 +
124 + %_d.exe :
125 +        $(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
126 +
127 + # -- Executables
128 + %.exe : %.o
129 +        $(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
130 +
131 + realbins:=$(filter $(bintargets),$(notdir $(wildcard $(LOCALTOP)/$(INTbin)/*)))
132 + clean ::
133 +        @if [ "$(realbins)" != "" ] ; then \
134 +        echo Removing executables : $(realbins); \
135 +        rm $(LOCALTOP)/$(INTbin)/$(realbins); \
136 +        fi;
137 +
138 + # -------------------------------------------------------------------------
139 +
140   # Some nice generic target names for the user
141  
142   shared : $(shlibname).$(SharedSuffix)
# Line 128 | Line 157 | $(shlibname).$(SharedSuffix) : $(shlibna
157   $(shlibname)_picd.$(SharedSuffix) : $(Ssharedlibdebugobjs)
158          $(SharedCCTool)
159  
160 < $(shlibname)_picd.$(SharedSuffix) : $(Ssharedlibdebugobjs)
160 > $(shlibname)_d.$(SharedSuffix) : $(Ssharedlibdebugobjs)
161          @mv $< $(librarystore)/$@
162  
163   # -- Standard Archive Libs
164   $(arlibname).$(ArchiveSuffix) : $(Sarchivelibobjs)
165          $(ArchiveCCTool)
166 <        @mv $@ $(librarystore)
166 >        @mv $@ $(librarystore)/$@
167  
168   # -- Debug Archive Libs
169   $(arlibname)_d.$(ArchiveSuffix) : $(Sarchivelibdebugobjs)
170          $(ArchiveCCTool)
171 <        @mv $@ $(librarystore)
171 >        @mv $@ $(librarystore)/$@
172  
173   # -- Dependencies
174   dependencies.mk: $(files)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines