1 1.1 tsutsui 2 1.1 tsutsui #### xplx 3 1.1 tsutsui 4 1.1 tsutsui TOOL_AWK?= awk 5 1.1 tsutsui TOOL_HEXDUMP?= hexdump 6 1.1 tsutsui 7 1.1 tsutsui ZASM?= zasm # see "used language" comments in xplx.asm 8 1.1 tsutsui 9 1.1 tsutsui .PHONY: all 10 1.1 tsutsui all: xplx.inc xplxdefs.h # xplxfirm.o 11 1.1 tsutsui 12 1.1 tsutsui xplx.rom xplx.lst: xplx.asm 13 1.1 tsutsui ${ZASM} -uwy xplx.asm || (rm -f xplx.rom xplx.lst ; exit 1) 14 1.1 tsutsui 15 1.1 tsutsui xplx.inc: xplx.rom 16 1.1 tsutsui ${TOOL_HEXDUMP} -Cv xplx.rom | ${TOOL_AWK} -f cdump.awk > ${.TARGET}.tmp 17 1.1 tsutsui mv ${.TARGET}.tmp ${.TARGET} 18 1.1 tsutsui 19 1.1 tsutsui xplxfirm.o: ../xplxfirm.c xplx.inc 20 1.1 tsutsui ${CC} ${CFLAGS} -c ../xplxfirm.c -o ${.TARGET} 21 1.1 tsutsui 22 1.1 tsutsui xplxdefs.h: mkdefs.awk xplx.lst 23 1.1 tsutsui ${TOOL_AWK} -f mkdefs.awk < xplx.lst > ${.TARGET}.tmp 24 1.1 tsutsui mv ${.TARGET}.tmp ${.TARGET} 25 1.1 tsutsui 26 1.1 tsutsui .PHONY: clean 27 1.1 tsutsui clean: 28 1.1 tsutsui rm -f xplxfirm.o xplx.rom xplx.lst xplx.inc 29 1.1 tsutsui rm -f *.tmp 30