scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

Makefile (433B)


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