scc

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

Makefile (301B)


      1 AS = z80-unknown-coff-as
      2 AR = ../../../bin/ar
      3 LD = ../../../bin/ld
      4 RL = ../../../bin/ranlib
      5 SZ = ../../../bin/size
      6 
      7 OBJS   = f1.o f2.o
      8 OBJLIB = f3.o
      9 
     10 all test: a.out
     11 
     12 a.out: $(OBJS) f.a
     13 	$(LD) $(OBJS) f.a
     14 
     15 f.a: $(OBJLIB)
     16 	$(AR) -rv $@ $?
     17 
     18 size:
     19 	$(SZ) *.o *.a
     20 
     21 clean:
     22 	rm -f *.o *.a a.out core* *.dat