From 44027db7255f5711818bce4fa26bde068dc69d7c Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 23 Jul 1997 18:21:03 +0000 Subject: Mon Jul 21 16:18:50 1997 Thomas Bushnell, n/BSG * Makeconf (linking .prof executable): Don't mutate library names here. (making %.prof_d special target): Mutate library names here. (%.prof_d): Depend on Makefile in srcdir. --- Makeconf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Makeconf') diff --git a/Makeconf b/Makeconf index bc8dfa53..0dfa1618 100644 --- a/Makeconf +++ b/Makeconf @@ -251,9 +251,7 @@ $(addsuffix .prof,$(target)): %$(target-suffix).prof: $(BUGADDR) $(CC) -pg $(CFLAGS) $($*-CFLAGS) $(LDFLAGS) $($*-LDFLAGS) \ $(BUGADDR_REF) -static \ -o $@ \ - '-Wl,-(' $(filter %.o,$^) \ - $(patsubst %.a,%_p.a,$(filter-out %.o,$+)) \ - $($*-LDLIBS) $(LDLIBS) \ + '-Wl,-(' $^ $($*-LDLIBS) $(LDLIBS) \ '-Wl,-)' ifeq ($(makemode),library) @@ -458,13 +456,13 @@ endif %.miguh_d: %.migu_d sed -e 's/User\.c/_U\.h/' -e 's/migu_d/miguh_d/' < $< > $@ -%.prof_d: Makefile +%.prof_d: $(srcdir)/Makefile $(MAKE) $* prof-depend=t ifeq ($(prof-depend),t) $(target): %: FORCE rm -f $@.prof_d - echo $@.prof: $(subst .o,_p.o,$(filter-out FORCE,$+)) > $@.prof_d + echo $@.prof: $(subst .so,_p.a,$(subst .o,_p.o,$(filter-out FORCE,$+))) > $@.prof_d endif define make-deps -- cgit v1.2.3