summaryrefslogtreecommitdiff
path: root/libc/misc/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/gnu')
-rw-r--r--libc/misc/gnu/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/misc/gnu/Makefile b/libc/misc/gnu/Makefile
index 6e3fd8463..a338b8131 100644
--- a/libc/misc/gnu/Makefile
+++ b/libc/misc/gnu/Makefile
@@ -28,12 +28,12 @@ CSRC=obstack.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(LIBC)
+OBJ_LIST=../../obj.misc.gnu
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/gnu/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@