scc

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

Makefile (427B)


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