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.2 by williamc, Fri Mar 19 16:55:39 1999 UTC vs.
Revision 1.6 by williamc, Fri Mar 26 15:14:37 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 108 | Line 111 | Ssharedlibdebugobjs:=$(addsuffix _picd.o
111   %_d.o : %.f
112          $(FC) -c $(CPPFLAGS) $(FFLAGS) $(FCDebugFlag) $< -o $@
113  
114 + # -- Executables
115 + %.exe : %.cpp
116 +        $(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)
129 +
130 + # -- 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)
137 +
138 + %_d.exe : %.C
139 +        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
140 +
141 + %_d.exe : %.F
142 +        $(FC) $(CPPFLAGS) $(FFLAGS_D) $(FCDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
143 +
144 + %_d.exe : %.f
145 +        $(FC) $(CPPFLAGS) $(FFLAGS_D) $(FCDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D)
146 +
147 +
148   # Some nice generic target names for the user
149  
150   shared : $(shlibname).$(SharedSuffix)
# Line 118 | Line 155 | archive_debug : $(arlibname)_d.$(Archive
155   # Now more specific rules
156  
157   # -- Standard Shared Objects Libs
158 < $(shlibname).$(SharedSuffix) : $(Ssharedlibobjs)
158 > $(shlibname)_pic.$(SharedSuffix) : $(Ssharedlibobjs)
159          $(SharedCCTool)
160 <        @mv $@ $(librarystore)
160 >
161 > $(shlibname).$(SharedSuffix) : $(shlibname)_pic.$(SharedSuffix)
162 >        @mv $< $(librarystore)/$@
163  
164   # -- Debug Shared Objects Libs
165 < $(shlibname)_d.$(SharedSuffix) : $(Ssharedlibdebugobjs)
165 > $(shlibname)_picd.$(SharedSuffix) : $(Ssharedlibdebugobjs)
166          $(SharedCCTool)
167 <        @mv $@ $(librarystore)
167 >
168 > $(shlibname)_d.$(SharedSuffix) : $(Ssharedlibdebugobjs)
169 >        @mv $< $(librarystore)/$@
170  
171   # -- Standard Archive Libs
172   $(arlibname).$(ArchiveSuffix) : $(Sarchivelibobjs)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines