commit 5800a17b4c0575160843305eb85a9a53aa4386b1
parent f9f461db2531e5034f729c784bf7ad9dd0cdeaa3
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 14 Feb 2015 08:42:40 +0100
Remove archive members from makefile
This syntax is supported by posix, but there are a lot of systems
(for example plan9 ape) that don't support it, and this other
version is also very simple.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/Makefile b/lib/Makefile
@@ -1,7 +1,10 @@
OBJS = die.o xcalloc.o xmalloc.o xrealloc.o xstrdup.o
-all: libcc.a($(OBJS))
+all: libcc.a
+
+libcc.a: $(OBJS)
+ ar r $@ $?
clean:
rm -f *.o *.a