comparison Makeconf.in @ 1984:1c121da7b952

[project @ 1996-02-29 14:57:47 by jwe]
author jwe
date Thu, 29 Feb 1996 14:59:38 +0000
parents 7dfb1c9d7684
children 86d6c42c192a
comparison
equal deleted inserted replaced
1983:aaf4ad3da905 1984:1c121da7b952
229 229
230 @f77_rules_frag@ 230 @f77_rules_frag@
231 231
232 # How to make .o files: 232 # How to make .o files:
233 233
234 .c.o: 234 %.o : %.c
235 [ -z "$(CPICFLAG)" ] ||\
236 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o pic/$@
237 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< 235 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
238 236
239 .cc.o: 237 %.o : %.cc
240 [ -z "$(CXXPICFLAG)" ] ||\
241 $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o pic/$@
242 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< 238 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $<
243 239
240 pic/%.o : %.c
241 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@
242
243 pic/%.o : %.cc
244 $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@
245
244 # Here is a rule for generating dependencies for .cc files: 246 # Here is a rule for generating dependencies for .cc files:
245 247
246 %.d: %.cc 248 %.d : %.cc
247 @echo making $@ from $< 249 @echo making $@ from $<
248 @rm -f $@ 250 @rm -f $@
249 @-if test "$(srcdir)" = "." ; then \ 251 @-if test "$(srcdir)" = "." ; then \
250 $(CXX) -MM $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \ 252 $(CXX) -MM $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \
251 sed -e 's/$*\.o/& $@/g' > $@.tmp ; \ 253 sed -e 's/$*\.o/& $@/g' > $@.tmp ; \
255 fi 257 fi
256 @mv $@.tmp $@ 258 @mv $@.tmp $@
257 259
258 # And one for .c files.too: 260 # And one for .c files.too:
259 261
260 %.d: %.c 262 %.d : %.c
261 @echo making $@ from $< 263 @echo making $@ from $<
262 @rm -f $@ 264 @rm -f $@
263 @-if test "$(srcdir)" = "." ; then \ 265 @-if test "$(srcdir)" = "." ; then \
264 $(CC) -MM $(CPPFLAGS) $(ALL_CFLAGS) $< | \ 266 $(CC) -MM $(CPPFLAGS) $(ALL_CFLAGS) $< | \
265 sed -e 's/$*\.o/& $@/g' > $@.tmp ; \ 267 sed -e 's/$*\.o/& $@/g' > $@.tmp ; \