Makefile (405B)
1 .POSIX: 2 3 BINDIR = ../../../bin/ 4 5 OUT = z80.out 6 AS = z80-unknown-coff-as 7 8 all: $(OUT) 9 @PATH=$(BINDIR):$$PATH ./chktest.sh 10 11 tests: 12 @if command -v $(AS) >/dev/null;\ 13 then\ 14 $(MAKE) |\ 15 grep -v TODO |\ 16 grep FAIL >/dev/null &&\ 17 printf '[FAIL]' || printf '[PASS]';\ 18 else\ 19 printf '[SKIP]';\ 20 fi;\ 21 printf '\tstrip/execute\n' 22 23 z80.out: master.s 24 $(AS) -o $@ master.s 25 26 clean: 27 rm -f *.a *.out test.log