From 1965c122639d751be81882b3793e3e48da3d2a32 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 4 Oct 2000 21:51:42 +0000 Subject: Sanity fix. --- libc/stdlib/malloc/Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/malloc/Makefile b/libc/stdlib/malloc/Makefile index b3aca377b..34c1b0538 100644 --- a/libc/stdlib/malloc/Makefile +++ b/libc/stdlib/malloc/Makefile @@ -5,20 +5,18 @@ TOPDIR=../ include $(TOPDIR)Rules.make -LIBC=../libc.a +LIBC=$(TOPDIR)libc.a MSRC=alloc.c MOBJ=malloc.o realloc.o free.o calloc.o malloc_dbg.o free_dbg.o calloc_dbg.o -CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS) +all: $(LIBC)($(MOBJ)) -all: $(LIBC) +$(LIBC): $(MOBJ) -$(LIBC): $(LIBC)($(MOBJ)) - -$(LIBC)($(MOBJ)): $(MSRC) +$(MOBJ): $(MSRC) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - $(AR) $(ARFLAGS) $@ $*.o + $(AR) $(ARFLAGS) $(LIBC) $*.o clean: rm -f *.o libc.a -- cgit v1.2.3