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.9 by williamc, Tue Mar 30 15:07:35 1999 UTC

# Line 60 | 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 111 | Line 114 | Ssharedlibdebugobjs:=$(addsuffix _picd.o
114   %_d.o : %.f
115          $(FC) -c $(CPPFLAGS) $(FFLAGS) $(FCDebugFlag) $< -o $@
116  
117 + # -------------------------------------------------------------------------
118   # -- Executables
119 < %.exe : %.cpp
120 <        $(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)
123 <
124 < %.exe : %.F
125 <        $(FC) $(CPPFLAGS) $(FFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
126 <
127 < %.exe : %.f
128 <        $(FC) $(CPPFLAGS) $(FFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
119 > %.exe : %.o
120 >        $(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
121  
122   # -- Debug Exexcutables
131 #LDLIBS_D:=$(shell $(TOOL_HOME)/LibTypeExpand $(LDLIBS) "_d")
132 %_d.exe : %.cpp
133        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ \                    $(LDLIBS_D)
134
135 %_d.exe : %.cc
136        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
123  
124 < %_d.exe : %.C
125 <        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
126 <
141 < %_d.exe : %.F
142 <        $(FC) $(CPPFLAGS) $(FFLAGS_D) $(FCDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
124 > #LDLIBS_D:=$(shell $(TOOL_HOME)/LibTypeExpand $(LDLIBS) "_d")
125 > %_d.exe :
126 >        $(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ \                        $(LDLIBS_D)
127  
128 < %_d.exe : %.f
129 <        $(FC) $(CPPFLAGS) $(FFLAGS_D) $(FCDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
128 > realbins:=$(filter $(bintargets),$(notdir $(wildcard $(LOCALTOP)/$(INTbin)/*)))
129 > clean ::
130 >        @if [ "$(realbins)" != "" ] ; then \
131 >        echo Removing executables : $(realbins); \
132 >        rm $(LOCALTOP)/$(INTbin)/$(realbins); \
133 >        fi;
134  
135 + # -------------------------------------------------------------------------
136  
137   # Some nice generic target names for the user
138  
# Line 171 | Line 160 | $(shlibname)_d.$(SharedSuffix) : $(Sshar
160   # -- Standard Archive Libs
161   $(arlibname).$(ArchiveSuffix) : $(Sarchivelibobjs)
162          $(ArchiveCCTool)
163 <        @mv $@ $(librarystore)
163 >        @mv $@ $(librarystore)/$@
164  
165   # -- Debug Archive Libs
166   $(arlibname)_d.$(ArchiveSuffix) : $(Sarchivelibdebugobjs)
167          $(ArchiveCCTool)
168 <        @mv $@ $(librarystore)
168 >        @mv $@ $(librarystore)/$@
169  
170   # -- Dependencies
171   dependencies.mk: $(files)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines