summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/libc/stdio/Makefile b/libc/stdio/Makefile
index 59bccc148..a52098c90 100644
--- a/libc/stdio/Makefile
+++ b/libc/stdio/Makefile
@@ -118,13 +118,12 @@ ifeq ($(strip $(UCLIBC_HAS_LFS)),y)
OBJS += $(CLOBJS)
endif
+OBJ_LIST=../obj.stdio
-all: $(OBJS) $(LIBC)
+all: $(OBJ_LIST)
-$(LIBC): ar-target
-
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, stdio/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -153,5 +152,4 @@ $(MWOBJ): $(MWSRC)
$(OBJ): Makefile
clean:
- rm -f *.[oa] *~ core
-
+ $(RM) *.[oa] *~ core