scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

target.mk (349B)


      1 
      2 I386_LST = target/i386/instbl.o target/i386/ins.o target/i386/proc.o
      3 
      4 $(I386_LST): target/x86/proc.h
      5 
      6 target/i386/instbl.c: target/gen.awk target/x86/x86.dat
      7 	set -e ;\
      8 	rm -f $@;\
      9 	trap "rm -f $$$$.c" 0 2 3; \
     10 	awk -v cpu=BITS32 -v family=x86 \
     11 		-f target/gen.awk  \
     12 		< target/x86/x86.dat > $$$$.c && mv $$$$.c $@
     13 
     14 OBJ-i386 = $(OBJ) $(I386_LST)