diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-10-04 04:37:58 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-10-04 04:37:58 +0000 |
commit | c8f3e6db60f54ef53c5b68fcc4cbe060fff41741 (patch) | |
tree | 946a6cea3e52c9f2d8a5a788cb7633cb9ccccc43 /malloc/Makefile | |
parent | fcb594165e6433e6533dc4bda5eb319bcb59d465 (diff) | |
download | glibc-c8f3e6db60f54ef53c5b68fcc4cbe060fff41741.tar.gz glibc-c8f3e6db60f54ef53c5b68fcc4cbe060fff41741.tar.xz glibc-c8f3e6db60f54ef53c5b68fcc4cbe060fff41741.zip |
Update.
1999-10-03 Ulrich Drepper <drepper@cygnus.com> * configure.in: Accept --with-gd option and set all libgd-LDFLAGS, CFLAGS-memprofstat.c, and LIBGD variables. * config.make.in: Add LIBGD. * malloc/Makefile: Add rules to generate libmemprof.so and memprofstat. * malloc/memprof.c: New file. * malloc/memprofstat.c: New file.
Diffstat (limited to 'malloc/Makefile')
-rw-r--r-- | malloc/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/malloc/Makefile b/malloc/Makefile index 4cd76cf680..68f5d10aeb 100644 --- a/malloc/Makefile +++ b/malloc/Makefile @@ -38,6 +38,13 @@ routines = $(dist-routines) obstack install-lib := libmcheck.a non-lib.a := libmcheck.a +# Additional library. +extra-libs = libmemprof +extra-libs-others = $(extra-libs) + +libmemprof-routines = memprof +libmemprof-inhibit-o = $(filter-out .os,$(object-suffixes)) + # These should be removed by `make clean'. extra-objs = mcheck-init.o libmcheck.a @@ -60,6 +67,19 @@ address-width=18 endif endif +# If the gd library is available we build the `memprofstat' program. +ifneq ($(LIBGD),no) +install-bin += memprofstat +endif + +# Another goal which can be used to override the configure decision. +.PHONY: do-memprofstat +do-memprofstat: $(objpfx)memprofstat + +memprofstat-modules = memprofstat +$(objpfx)memprofstat: $(memprofstat-modules:%=$(objpfx)%.o) + $(LINK.o) -o $@ $^ $(libgd-LDFLAGS) -lgd -lpng -lz + include ../Rules $(objpfx)libmcheck.a: $(objpfx)mcheck-init.o |