scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 3fdd8924237466b84005f844aaec040a6f5edc90
parent ac87e5669ad21698f1564d8dd58a95fc0b731528
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 15 Apr 2014 08:06:00 +0200

Simplify Makefile

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

Diffstat:
MMakefile | 13+++----------
1 file changed, 3 insertions(+), 10 deletions(-)

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