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 (557B)
       ---
            1 AS = z80-unknown-coff-as
            2 AR = ../../../bin/scc-ar
            3 LD = ../../../bin/scc-ld
            4 RL = ../../../bin/scc-ranlib
            5 SZ = ../../../bin/scc-size
            6 
            7 OBJS   = f1.o f2.o
            8 OBJLIB = f3.o
            9 
           10 all: a.out
           11 
           12 tests:
           13         @if command -v $(AS) >/dev/null;\
           14         then\
           15                 $(MAKE) |\
           16                 grep -v TODO |\
           17                 grep FAIL >/dev/null &&\
           18                 printf '[FAIL]' || printf '[PASS]';\
           19         else\
           20                 printf '[SKIP]';\
           21         fi;\
           22         printf '\tld/execute\n'
           23 
           24 a.out: $(OBJS) f.a
           25         $(LD) $(OBJS) f.a >/dev/null 2>&1 || true
           26 
           27 f.a: $(OBJLIB)
           28         $(AR) -rv $@ $? >/dev/null 2>&1
           29 
           30 size:
           31         $(SZ) *.o *.a
           32 
           33 clean:
           34         rm -f *.o *.a a.out core* *.dat