summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/mmalloc/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/mmalloc/Makefile.in')
-rw-r--r--gnu/usr.bin/binutils/mmalloc/Makefile.in14
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/mmalloc/Makefile.in b/gnu/usr.bin/binutils/mmalloc/Makefile.in
index f039277bdbb..f9dd5573da1 100644
--- a/gnu/usr.bin/binutils/mmalloc/Makefile.in
+++ b/gnu/usr.bin/binutils/mmalloc/Makefile.in
@@ -73,7 +73,7 @@ TARGETLIB = libmmalloc.a
CFILES = mcalloc.c mfree.c mmalloc.c mmcheck.c mmemalign.c mmstats.c \
mmtrace.c mrealloc.c mvalloc.c mmap-sup.c attach.c detach.c \
- keys.c sbrk-sup.c
+ keys.c sbrk-sup.c mm.c
HFILES = mmalloc.h
@@ -83,6 +83,11 @@ OFILES = mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o \
DEFS = @DEFS@
+# The current default is to build a single object module with all the mmalloc
+# functions. To build a more traditional library, flip this macro definition.
+#TARGETOBJS = $(OFILES)
+TARGETOBJS = mm.o
+
.c.o:
$(CC) -c $(CFLAGS) $(DEFS) -I. -I$(srcdir)/../include $<
@@ -122,13 +127,16 @@ install: all
$(RANLIB) $(DESTDIR)$(libdir)/$(TARGETLIB).n
mv -f $(DESTDIR)$(libdir)/$(TARGETLIB).n $(DESTDIR)$(libdir)/$(TARGETLIB)
-$(TARGETLIB): $(OFILES)
+$(TARGETLIB): $(TARGETOBJS)
$(RM) -rf $@
- $(AR) $(AR_FLAGS) $@ $(OFILES)
+ $(AR) $(AR_FLAGS) $@ $(TARGETOBJS)
$(RANLIB) $@
$(OFILES) : $(HFILES) Makefile
+mm.o: $(HFILES) $(CFILES)
+ $(CC) -c $(CFLAGS) $(DEFS) -I. -I$(srcdir)/../include $(srcdir)/mm.c
+
.always.:
# Do nothing.