# ----------------------------
# Program Options
# ----------------------------

NAME         ?= DEMO
ICON         ?= icon.png
DESCRIPTION  ?= "CE C SDK Demo"
COMPRESSED   ?= NO
ARCHIVED     ?= NO

# ----------------------------
# Debug Options
# ----------------------------

OUTPUT_MAP   ?= NO

include $(CEDEV)/include/.makefile

clean_gfx:
	rm src/gfx/*.{c,h}

deploy: bin/${NAME}.8xp
	tilp --cable=usb -n bin/${NAME}.8xp

bin/clibs.8xg:
	wget https://github.com/CE-Programming/libraries/releases/download/v8.8/clibs.8xg \
		-O bin/clibs.8xg

emulator: bin/${NAME}.8xp bin/clibs.8xg
	CEmu -a bin/clibs.8xg -s bin/${NAME}.8xp --launch ${NAME}