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
 6PROJ_CFLAGS = $(CFLAGS)
 7PROJ_LDFLAGS = $(LDFLAGS)
 8CC=$(SCC)
 9
10all:
11	@CC='$(CC)' \
12	CFLAGS='$(PROJ_CFLAGS)' \
13	LDFLAGS='$(PROJ_CFLAGS)' \
14	./runtests.sh libc-tests.lst
15
16tests:
17	@$(MAKE) |\
18	grep -v TODO |\
19	grep FAIL >/dev/null &&\
20	printf '[FAIL]' || printf '[PASS]'; printf '\tlibc/execute\n'
21
22clean:
23	rm -f *.o *core test.log `awk '{print $$1}' libc-tests.lst`