1 # Note: this are my paths to cc65 as there is no gentoo ebuild, sorry for that.
2 # Please use the path below if you've installed cc65 system-wide
3 CC=~/customSoftware/cc65-2.11.0/src/cc65/cc65 -I ~/customSoftware/cc65-2.11.0/include
4 CA=~/customSoftware/cc65-2.11.0/src/ca65/ca65
5 CL=~/customSoftware/cc65-2.11.0/src/cl65/cl65
10 src/%.o: src/%.c include/%.h
11 ${CC} -O -I include -t c128 $<
12 ${CA} -I include -t c128 src/$$(basename $< .c).s
15 ${CC} -O -I include -t c128 $<
16 ${CA} -I include -t c128 test/$$(basename $< .c).s
18 all: src/config.o src/kasse.o src/general.o src/credit_manager.o src/c128time.o
19 # See above, please just kill the PATH-definition
20 cp /tmp/cc65/lib/c128* .
21 PATH=${PATH}:~/customSoftware/cc65-2.11.0/src/ld65:/tmp/cc65/lib ${CL} -t c128 src/*.o -o kasse
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 -write kasse || exit 0
28 c1541 -attach kasse.d64 -write state || exit 0
29 c1541 -attach kasse.d64 -write items || exit 0
31 test: src/config.o test/test.o src/general.o
32 ${CL} -t c128 src/config.o test/test.o src/general.o -o test
35 c1541 -attach test.d64 -delete state || exit 0
36 c1541 -attach test.d64 -delete items || exit 0
37 c1541 -attach test.d64 -delete test || exit 0
38 c1541 -attach test.d64 -write test || exit 0
39 c1541 -attach test.d64 -write state || exit 0
40 c1541 -attach test.d64 -write items || exit 0
43 rm -rf src/*.o src/*.s test/*.o test/*.s