shithub: scc

ref: 560a156341e5bb352194a85c3258406a079697b7
dir: /tests/strip/execute/Makefile/

View raw version
.POSIX:

ROOT=../../..

OUT = z80.out
AS = z80-unknown-coff-as

all: $(OUT)
	@PATH=$(ROOT)/bin:$$PATH:. chktest.sh

tests:
	@if $(AS) 2>/dev/null;\
	then\
		$(MAKE);\
		grep -v TODO |\
		grep FAIL >/dev/null &&\
		printf '[FAIL]' || printf '[PASS]';\
	else\
		printf '[SKIP]';\
	fi;\
	printf '\tstrip/execute\n'

z80.out: master.s
	$(AS) -o $@ master.s

clean:
	rm -f *.a *.out test.log