Makefile - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
Makefile (425B)
---
1 .POSIX:
2
3 PROJECTDIR = ../../..
4 include $(PROJECTDIR)/scripts/rules.mk
5
6 CC=$(SCC)
7
8 all:
9 @CC='$(CC)' ./runtests.sh scc-tests.lst
10
11 .c:
12 $(CC) -Isysinclude $(CFLAGS) $(LDFLAGS) -o $@ $< test.c
13
14 tests:
15 @$(MAKE) |\
16 grep -v TODO |\
17 grep FAIL >/dev/null &&\
18 printf '[FAIL]' || printf '[PASS]'; printf '\tcc/execute\n'
19
20 clean:
21 rm -f a.out *.s *.s *.as *.o *.ir *.qbe *core* test.log tests.h tmp_*.c
22 xargs rm -f < scc-tests.lst