summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-04 21:51:42 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-04 21:51:42 +0000
commit1965c122639d751be81882b3793e3e48da3d2a32 (patch)
tree6b4e76af214713e3cf5e0a936fc225796af8909e
parentdf1d8b1a4074579139786d2838ae7072587bbee7 (diff)
Sanity fix.
-rw-r--r--libc/stdlib/malloc/Makefile12
1 files changed, 5 insertions, 7 deletions
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