scc

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

Makefile (282B)


      1 .POSIX:
      2 
      3 PROJECTDIR = ../../../..
      4 include $(PROJECTDIR)/scripts/rules.mk
      5 
      6 OBJS_Z80 =\
      7 	z80tbl.o\
      8 	arch_z80.o\
      9 	ins.o\
     10 
     11 all: z80.o
     12 
     13 z80.o: $(OBJS_Z80)
     14 	$(LD) -r -o $@ $(OBJS_Z80)
     15 
     16 z80tbl.o: ops.dat opers.dat
     17 	../mktbl -c z80
     18 	$(CC) $(PROJ_CFLAGS) -c z80tbl.c
     19 
     20 clean:
     21 	rm -f z80tbl.c