summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/Makefile')
-rw-r--r--libc/sysdeps/linux/common/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile
index b4a922eb5..973531d98 100644
--- a/libc/sysdeps/linux/common/Makefile
+++ b/libc/sysdeps/linux/common/Makefile
@@ -25,13 +25,20 @@ TOPDIR=../../../
include $(TOPDIR)Rules.make
LIBC=$(TOPDIR)libc.a
+#The file makefile.objs defines $(COBJS)
include makefile.objs
+OBJ=$(COBJS)
+
all: $(OBJ) $(LIBC)
-$(LIBC): $(OBJ)
+$(LIBC): ar-target
+
+ar-target: $(OBJ)
$(AR) $(ARFLAGS) $(LIBC) $(OBJ)
+$(OBJ): Makefile
+
clean:
rm -f *.[oa] *~ core