diff options
Diffstat (limited to 'libc/stdlib/malloc-simple')
-rw-r--r-- | libc/stdlib/malloc-simple/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libc/stdlib/malloc-simple/Makefile b/libc/stdlib/malloc-simple/Makefile index 1da7a672c..161aece1a 100644 --- a/libc/stdlib/malloc-simple/Makefile +++ b/libc/stdlib/malloc-simple/Makefile @@ -27,18 +27,16 @@ MSRC=alloc.c MOBJ=malloc.o realloc.o free.o calloc.o memalign.o OBJS=$(MOBJ) +OBJ_LIST=../../obj.stdlib.malloc-simple -all: $(OBJS) $(LIBC) +all: $(OBJ_LIST) -$(LIBC): ar-target - -ar-target: $(OBJS) - $(AR) $(ARFLAGS) $(LIBC) $(OBJS) +$(OBJ_LIST): $(OBJS) + echo $(patsubst %, stdlib/malloc-simple/%, $(OBJS)) > $(OBJ_LIST) $(MOBJ): $(MSRC) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o $(STRIPTOOL) -x -R .note -R .comment $*.o clean: - rm -f *.[oa] *~ core - + $(RM) *.[oa] *~ core |