Makefile (343B)
1 .POSIX: 2 3 ROOT=../../.. 4 SCCPREFIX=$(ROOT) 5 CC=$(ROOT)/bin/gcc-scc 6 CFLAGS= 7 8 .c: 9 $(CC) $(CFLAGS) -o $@ $< 10 11 all: 12 CC=$(CC) ./chktest.sh libc-tests.lst 13 14 tests: 15 @$(MAKE) |\ 16 grep -v TODO |\ 17 grep FAIL >/dev/null &&\ 18 printf '[FAIL]' || printf '[PASS]'; printf '\tlibc/execute\n' 19 20 clean: 21 rm -f *.o *core test.log `awk '{print $$1}' libc-tests.lst`