shithub: scc

ref: 7d06d1d348ce9fb9dc585d81f146e12193be85e4
dir: /tests/nm/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 '\tnm/execute\n'

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

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