shithub: scc

Download patch

ref: 5800a17b4c0575160843305eb85a9a53aa4386b1
parent: f9f461db2531e5034f729c784bf7ad9dd0cdeaa3
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Feb 14 03:42:40 EST 2015

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.

--- 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