scc

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

target.mk (357B)


      1 
      2 AMD64_LST = target/amd64/instbl.o target/amd64/ins.o target/amd64/proc.o
      3 
      4 $(AMD64_LST): target/x86/proc.h
      5 
      6 target/amd64/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=BITS64 -v family=x86 \
     11 		-f target/gen.awk  \
     12 		< target/x86/x86.dat > $$$$.c && mv $$$$.c $@
     13 
     14 OBJ-amd64 = $(OBJ) $(AMD64_LST)