shithub: scc

Download patch

ref: 3fdd8924237466b84005f844aaec040a6f5edc90
parent: ac87e5669ad21698f1564d8dd58a95fc0b731528
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Apr 15 04:06:00 EDT 2014

Simplify Makefile

Since we have only a header, it is not needed a dependencies
rule, so we can remove the makefile generation to.

--- a/Makefile
+++ b/Makefile
@@ -4,18 +4,13 @@
 
 all: kcc
 
+$(OBJS) : cc.h
+
 kcc: $(OBJS)
 	$(CC) $(LDFLAGS) $(CFLAGS) $(LIBS) $(OBJS) -o $@
 
-.PHONY: clean distclean dep
+.PHONY: clean distclean
 
-dep:
-	(cat Makefile; \
-	for i in $(OBJS:.o=.c); \
-	do \
-		$(CC) -MM $(CPPFLAGS) $$i; \
-	done) > makefile
-
 clean:
 	rm -f $(OBJS)
 	rm -f kcc
@@ -25,5 +20,3 @@
 	rm -f tags
 	rm -f cscope.*
 	rm -f makefile
-
-###Dependencies