apple2idiot/examples/defunct-explorations/cc65-Chess/apple2-cc65/Makefile-dsk.mk
2021-12-27 12:41:59 -07:00

23 lines
505 B
Makefile

DSK = cc65-Chess.dsk
# For this one, see https://applecommander.github.io/
#AC ?= ac.jar
AC ?= ~/bin/AppleCommander.jar
# Unix or Windows
ifeq ($(shell echo),)
CP = cp $1
else
CP = copy $(subst /,\,$1)
endif
REMOVES += $(DSK)
.PHONY: dsk
dsk: $(DSK)
$(DSK): cc65-Chess.apple2
$(call CP, apple2/template.dsk $@)
java -jar $(AC) -p $@ chess.system sys < $(shell cl65 --print-target-path)/apple2/util/loader.system
java -jar $(AC) -as $@ chess bin < cc65-Chess.apple2