scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1.POSIX:
 2
 3BINDIR = ../../../bin/
 4
 5OUT = z80.out
 6AS = z80-unknown-coff-as
 7
 8all: $(OUT)
 9	@PATH=$(BINDIR):$$PATH ./runtests.sh
10
11tests:
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 '\tstrip/execute\n'
22
23z80.out: master.s
24	$(AS) -o $@ master.s
25
26clean:
27	rm -f *.a *.out test.log