Makefile (511B)
1 AS = z80-unknown-coff-as 2 3 BINDIR = ../../../bin/ 4 5 OBJS = f1.o f2.o 6 OBJLIB = f3.o 7 8 all: 9 PATH=$(BINDIR):$$PATH $(MAKE) a.out 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 '\tld/execute\n' 22 23 a.out: $(OBJS) f.a 24 scc ld $(OBJS) f.a >/dev/null 2>&1 || true 25 26 f.a: $(OBJLIB) 27 scc ar -rv $@ $? >/dev/null 2>&1 28 29 size: 30 scc size *.o *.a 31 32 clean: 33 rm -f *.o *.a a.out core* *.dat