From 43fc8f18c7898966fce3cc4a19908a61a8186f07 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 5 Oct 1999 01:55:45 +0000 Subject: Update. 1999-10-04 Ulrich Drepper * malloc/Makefile: Add rule to generate memprof script. * malloc/memprof.sh: New file. * elf/ldd.bash.in: Add "Usage: " in help message to comply with GNU standard. --- malloc/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'malloc/Makefile') diff --git a/malloc/Makefile b/malloc/Makefile index eb6563777c..dfbf333c79 100644 --- a/malloc/Makefile +++ b/malloc/Makefile @@ -69,7 +69,7 @@ endif # If the gd library is available we build the `memprofstat' program. ifneq ($(LIBGD),no) -install-bin += memprofstat +install-bin += memprofstat memprof endif # Another goal which can be used to override the configure decision. @@ -97,7 +97,14 @@ $(objpfx)mtrace: mtrace.pl rm -f $@.new sed -e 's|@PERL@|$(PERL)|' -e 's|@XXX@|$(address-width)|' \ -e 's|@VERSION@|$(version)|' $^ > $@.new \ - && rm -fr $@ && mv $@.new $@ && chmod +x $@ + && rm -f $@ && mv $@.new $@ && chmod +x $@ + +$(objpfx)memprof: memprof.sh + rm -f $@.new + sed -e 's|@BASH@|$(BASH)|' -e 's|@VERSION@|$(VERSION)|' \ + -e 's|@LIBDIR@|$(libdir)|' -e 's|@BINDIR@|$(bindir)|' $^ > $@.new \ + && rm -f $@ && mv $@.new $@ && chmod +x $@ + # The implementation uses `dlsym' $(objpfx)libmemprof.so: $(common-objpfx)dlfcn/libdl.so -- cgit 1.4.1