4 INCLUDES:=$(wildcard include/*.h) include/version.h
5 GV:=$(shell git describe --tags --always)
6 CFLAGS= -I include -t c128
8 .PHONY: include/version.h clean dist-clean
14 ${AS} ${CFLAGS} $(addsuffix .s,$(basename $< ))
17 echo "#define GV \"${GV}\"" > $@
19 kasse: src/config.o src/kasse.o src/general.o src/credit_manager.o src/c128time.o src/print.o
20 ${LD} -t c128 $^ -o $@
22 itemz: src/config.o src/itemz.o src/general.o src/credit_manager.o src/c128time.o src/print.o
23 ${LD} -t c128 $^ -o $@
25 cat: src/general.o src/cat.o
26 ${LD} -t c128 $^ -o $@
29 c1541 -format "${GV}",KA d64 kasse.d64
30 c1541 -attach kasse.d64 -write kasse
31 c1541 -attach kasse.d64 -write itemz
32 [ -e state ] && c1541 -attach kasse.d64 -write state || exit 0
33 [ -e items ] && c1541 -attach kasse.d64 -write items || exit 0
35 test: src/config.o test/test.o src/general.o
36 cl65 -t c128 src/config.o test/test.o src/general.o -o test
39 c1541 -format "test",TE d64 test.d64
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 -f kasse itemz kasse.d64