shithub: scc

ref: 9b355acf495a70ce2767ffae671fe2ae22521a2e
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) /dev/null 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