shithub: scc

ref: 5ac3a0d4c1a9d7e4d3912c4770084b885007aca6
dir: /tests/size/execute/Makefile/

View raw version
.POSIX:

ROOT=../../..

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

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 '\tsize/execute\n'

z80.out: master.s
	z80-unknown-coff-as -o $@ master.s

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