shithub: scc

ref: d47a56d8314f1c3d7e98c26fb6d132038faeb0b2
dir: /as/target/amd64/target.mk/

View raw version
AMD64_TBL = common.dat \
            target/x86/i386.dat \
            target/x86/amd64.dat

target/amd64/instbl.o: target/amd64/ins.h

target/amd64/instbl.c: target/x86/gen.awk $(AMD64_TBL)
	set -e ;\
	rm -f $@;\
	trap "rm -f $$$$.c" 0 2 3; \
	cat $(AMD64_TBL) |\
	awk -f target/x86/gen.awk > $$$$.c && mv $$$$.c $@

OBJ-amd64 = $(OBJ) \
	target/amd64/instbl.o \
	target/i386/ins.o