]> git.sur5r.net Git - c128-kasse/blobdiff - Makefile
- put executable as first file on disk because it's possible to do DLOAD"* or RUN...
[c128-kasse] / Makefile
index f10e636044aca7866eb339ae18299619b1ccd149..56dc731637cadf8a8c2d1cc273226b92e5511ba2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,32 @@
-.c.s: cc65 -t c128 $<
+%.o: %.c
+       cc65 -t c128 $<
+       ca65 -t c128 $$(basename $< .c).s
 
-.s.o: cc65 -t c128 $<
+all: config.o kasse.o general.o credit_manager.o time.o
+       cl65 -t c128 *.o -o kasse
 
-all: config.o kasse.o 
-       cl65 -t c128 kasse.o config.o -o kasse
+package: all
+       c1541 -attach kasse.d64 -delete state || exit 0 
+       c1541 -attach kasse.d64 -delete items  || exit 0
+       c1541 -attach kasse.d64 -delete kasse  || exit 0
+       c1541 -attach kasse.d64 -write kasse  || exit 0
+       c1541 -attach kasse.d64 -write state || exit 0 
+       c1541 -attach kasse.d64 -write items  || exit 0
+
+test: config.o test.o general.o
+       cl65 -t c128 config.o test.o general.o -o test
+
+test-package: test
+       c1541 -attach test.d64 -delete state || exit 0 
+       c1541 -attach test.d64 -delete items  || exit 0
+       c1541 -attach test.d64 -delete test  || exit 0
+       c1541 -attach test.d64 -write test  || exit 0
+       c1541 -attach test.d64 -write state || exit 0 
+       c1541 -attach test.d64 -write items  || exit 0
 
 clean:
        rm -rf *.o *.s
-       
\ No newline at end of file
+       
+dist-clean: clean
+       rm kasse test 
+