diff options
author | Thomas Bushnell <thomas@gnu.org> | 1997-07-23 18:21:03 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1997-07-23 18:21:03 +0000 |
commit | 44027db7255f5711818bce4fa26bde068dc69d7c (patch) | |
tree | f733f8dd9bd5b51030956f0acfca61518aa7f98b /Makeconf | |
parent | 11edd0c0a5bee6c9069ee44860eec07d2771108e (diff) |
Mon Jul 21 16:18:50 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* 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.
Diffstat (limited to 'Makeconf')
-rw-r--r-- | Makeconf | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |