scc

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

Makefile (358B)


      1 .POSIX:
      2 
      3 ROOT   = ../../..
      4 CFLAGS =
      5 CC     = SCCPREFIX=$(ROOT) ./cc.sh
      6 
      7 .c:
      8 	$(CC) $(CFLAGS) -o $@ $<
      9 
     10 all: tests-i386 tests-amd64
     11 
     12 tests-i386:
     13 	@SCCPREFIX=$(ROOT) CFLAGS='-a i386' ./chktest.sh libc-tests.lst
     14 
     15 tests-amd64:
     16 	@SCCPREFIX=$(ROOT) CFLAGS='-a amd64' ./chktest.sh libc-tests.lst
     17 
     18 clean:
     19 	rm -f *.o *core test.log `awk '{print $$1}' libc-tests.lst`