summaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-07-23 18:21:03 +0000
committerThomas Bushnell <thomas@gnu.org>1997-07-23 18:21:03 +0000
commit44027db7255f5711818bce4fa26bde068dc69d7c (patch)
treef733f8dd9bd5b51030956f0acfca61518aa7f98b /Makeconf
parent11edd0c0a5bee6c9069ee44860eec07d2771108e (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--Makeconf8
1 files changed, 3 insertions, 5 deletions
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