Home
       Makefile - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       Makefile (395B)
       ---
            1 .POSIX:
            2 
            3 ROOT=../../..
            4 
            5 OUT = z80.out
            6 AS = z80-unknown-coff-as
            7 
            8 all: $(OUT)
            9         @PATH=$(ROOT)/bin:$$PATH:. chktest.sh
           10 
           11 tests:
           12         @if command -v $(AS) >/dev/null;\
           13         then\
           14                 $(MAKE) |\
           15                 grep -v TODO |\
           16                 grep FAIL >/dev/null &&\
           17                 printf '[FAIL]' || printf '[PASS]';\
           18         else\
           19                 printf '[SKIP]';\
           20         fi;\
           21         printf '\tnm/execute\n'
           22 
           23 z80.out: master.s
           24         $(AS) -o $@ master.s
           25 
           26 clean:
           27         rm -f *.a *.out test.log