Makefile (306B)
1 .POSIX: 2 3 ROOT=../../.. 4 CC=$(SHELL) $(ROOT)/bin/scc cc 5 6 all: 7 @CC='$(CC)' ./chktest.sh scc-tests.lst 8 9 tests: 10 @$(MAKE) |\ 11 grep -v TODO |\ 12 grep FAIL >/dev/null &&\ 13 printf '[FAIL]' || printf '[PASS]'; printf '\tcc/execute\n' 14 15 clean: 16 rm -f a.out *.s *.s *.as *.o *.ir *.qbe *core* test.log tests.h tmp_*.c