4 INCLUDES:=$(wildcard include/*.h)
5 GV:=$(shell git describe --tags --always)
7 CFLAGS += -DGV=\"${GV}\"
10 ${CC} ${CFLAGS} -O -I include -t c128 $< -o /dev/stdout | ${AS} -I include -t c128 /dev/stdin -o $@
13 kasse: src/config.o src/kasse.o src/general.o src/credit_manager.o src/c128time.o src/print.o
14 ${LD} -t c128 $^ -o $@
16 itemz: src/config.o src/itemz.o src/general.o src/credit_manager.o src/c128time.o src/print.o
17 ${LD} -t c128 $^ -o $@
19 cat: src/general.o src/cat.o
20 ${LD} -t c128 $^ -o $@
24 c1541 -attach kasse.d64 -delete state || exit 0
25 c1541 -attach kasse.d64 -delete items || exit 0
26 c1541 -attach kasse.d64 -delete kasse || exit 0
27 c1541 -attach kasse.d64 -delete itemz || exit 0
28 c1541 -attach kasse.d64 -write kasse || exit 0
29 c1541 -attach kasse.d64 -write itemz || exit 0
30 # c1541 -attach kasse.d64 -write state || exit 0
31 # c1541 -attach kasse.d64 -write items || exit 0
33 test: src/config.o test/test.o src/general.o
34 cl65 -t c128 src/config.o test/test.o src/general.o -o test
37 c1541 -attach test.d64 -delete state || exit 0
38 c1541 -attach test.d64 -delete items || exit 0
39 c1541 -attach test.d64 -delete test || exit 0
40 c1541 -attach test.d64 -write test || exit 0
41 c1541 -attach test.d64 -write state || exit 0
42 c1541 -attach test.d64 -write items || exit 0
45 rm -rf src/*.o src/*.s test/*.o test/*.s
48 rm kasse itemz kasse.d64