]> git.sur5r.net Git - c128-kasse/blobdiff - Makefile
Fix compilation warnings with cc65 v2.13.0
[c128-kasse] / Makefile
index c957d26ce7fd51b0236c9342a23f0d54b38640dd..e9d2d8a2b0891e47caa7f23a66145aafd2faf246 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,21 @@
-CC=cc65
-CA=ca65
-CL=cl65
+INCLUDES:=$(wildcard include/*.h)
 
-src/%.o: src/%.c include/%.h
-       ${CC} -O -I include -t c128 $<
-       ${CA} -I include -t c128 src/$$(basename $< .c).s
+src/%.o: src/%.c ${INCLUDES}
+       cc65 -O -I include -t c128 $<
+       ca65 -I include -t c128 src/$$(basename $< .c).s
 
 test/%.o: test/%.c
-       ${CC} -O -I include -t c128 $<
-       ${CA} -I include -t c128 test/$$(basename $< .c).s
+       cc65 -O -I include -t c128 $<
+       ca65 -I include -t c128 test/$$(basename $< .c).s
 
 kasse: src/config.o src/kasse.o src/general.o src/credit_manager.o src/c128time.o
-       ${CL} -t c128 src/c128time.o src/config.o src/kasse.o src/general.o src/credit_manager.o -o kasse
+       cl65 -t c128 src/c128time.o src/config.o src/kasse.o src/general.o src/credit_manager.o -o kasse
 
 itemz: src/config.o src/itemz.o src/general.o src/credit_manager.o
-       ${CL} -t c128 src/config.o src/itemz.o src/general.o src/credit_manager.o -o itemz
+       cl65 -t c128 src/config.o src/itemz.o src/general.o src/credit_manager.o -o itemz
 
 cat: src/general.o src/cat.o
-       ${CL} -t c128 src/general.o src/cat.o -o cat
+       cl65 -t c128 src/general.o src/cat.o -o cat
 
 all: kasse itemz
 
@@ -33,7 +31,7 @@ package: all
 #      c1541 -attach kasse.d64 -write items || exit 0
 
 test: src/config.o test/test.o src/general.o
-       ${CL} -t c128 src/config.o test/test.o src/general.o -o test
+       cl65 -t c128 src/config.o test/test.o src/general.o -o test
 
 test-package: test
        c1541 -attach test.d64 -delete state || exit 0