scc

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

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

 1.POSIX:
 2
 3PROJECTDIR = ../../..
 4include $(PROJECTDIR)/scripts/rules.mk
 5
 6CC=$(SCC)
 7
 8all:
 9	@CC='$(CC)' ./runtests.sh scc-tests.lst
10
11.c:
12	$(CC) -Isysinclude $(CFLAGS) $(LDFLAGS) -o $@ $< test.c
13
14tests:
15	@$(MAKE) |\
16	grep -v TODO |\
17	grep FAIL >/dev/null &&\
18	printf '[FAIL]' || printf '[PASS]'; printf '\tcc/execute\n'
19
20clean:
21	rm -f a.out *.s *.s *.as *.o *.ir *.qbe *core* test.log tests.h tmp_*.c
22	xargs rm -f < scc-tests.lst