about summary refs log tree commit diff
path: root/malloc/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-05 01:55:45 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-05 01:55:45 +0000
commit43fc8f18c7898966fce3cc4a19908a61a8186f07 (patch)
tree5201ce4931d0813e81ac2a22d08f14822475df58 /malloc/Makefile
parentc159de629ee1c310dba739a7efe86cd8369db2c0 (diff)
downloadglibc-43fc8f18c7898966fce3cc4a19908a61a8186f07.tar.gz
glibc-43fc8f18c7898966fce3cc4a19908a61a8186f07.tar.xz
glibc-43fc8f18c7898966fce3cc4a19908a61a8186f07.zip
Update.
1999-10-04  Ulrich Drepper  <drepper@cygnus.com>

	* 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.
Diffstat (limited to 'malloc/Makefile')
-rw-r--r--malloc/Makefile11
1 files changed, 9 insertions, 2 deletions
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