scc

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

Makefile (261B)


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