summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-12 09:51:06 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-12 09:51:06 +0000
commit57a66bf9e50deeab6f61be75e9311f8d2eb596b7 (patch)
treed8e2f1afe92c3c3423c8a6afdc4875b3f6b85e19 /libc/stdlib/malloc/Makefile
parent7415018e055da96e94fa61c43a5227555e8e6ba5 (diff)
Update makefile to match the new malloc code
Diffstat (limited to 'libc/stdlib/malloc/Makefile')
-rw-r--r--libc/stdlib/malloc/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/libc/stdlib/malloc/Makefile b/libc/stdlib/malloc/Makefile
index 0128bc545..d4d278949 100644
--- a/libc/stdlib/malloc/Makefile
+++ b/libc/stdlib/malloc/Makefile
@@ -24,12 +24,14 @@ TOPDIR=../../
include $(TOPDIR)Rules.mak
LIBC=$(TOPDIR)libc.a
-CSRC=malloc.c
-COBJS=$(patsubst %.c,%.o, $(CSRC))
-
MSRC=alloc.c
MOBJ=malloc_dbg.o free_dbg.o calloc_dbg.o
-OBJS=$(COBJS) $(MOBJ)
+
+MSRC1=malloc.c
+MOBJ1=_avl_support.o _free_support.o _malloc_init.o _realloc_no_move.o calloc.o \
+ free.o malloc.o realloc.o
+
+OBJS=$(MOBJ) $(MOBJ1)
all: $(OBJS) $(LIBC)
@@ -42,8 +44,8 @@ $(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
-$(COBJS): %.o : %.c
- $(CC) $(CFLAGS) -c $< -o $@
+$(MOBJ1): $(MSRC1)
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
clean: