shithub: scc

ref: d68e26e79e47319e2066434c8d4e18c7a653159a
dir: /as/target/z80/target.mk/

View raw version

Z80_LST = target/z80/instbl.o target/z80/ins.o target/z80/proc.o target/x80/ins.o

$(Z80_LST): target/x80/proc.h

target/z80/instbl.c: target/gen.awk target/x80/x80.dat target/x80/rules.dat
	set -e ;\
	rm -f $@;\
	trap "rm -f $$$$.c" 0 2 3; \
	awk '!/^$$/ {print $$1,NR,$$2,$$3,$$4,$$5,$$6}' target/x80/x80.dat | \
	sort -k1 -k2n | \
	awk -v cpu=Z80 -v family=x80 \
		-f target/gen.awk  > $$$$.c && mv $$$$.c $@
 
OBJ-z80 = $(OBJ) $(Z80_LST)