X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=8819291dc203913d57b96b0dad892ba4e7bedceb;hb=007db7a7294cc3cd97575a3b77038218fa997a21;hp=6724a3b657bdf8deeffd6d887c63498b03d3acf6;hpb=d23111dabab46a8bcdf7e453ec099e4521d1cad6;p=open-adventure.git diff --git a/Makefile b/Makefile index 6724a3b..8819291 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ dungeon.o: dungeon.c dungeon.h $(CC) $(CCFLAGS) $(DBX) -c dungeon.c dungeon.c dungeon.h: make_dungeon.py adventure.yaml - python3 make_dungeon.py + ./make_dungeon.py clean: rm -f *.o advent cheat *.html *.gcno *.gcda @@ -115,9 +115,11 @@ linty: CCFLAGS += -Wwrite-strings linty: CCFLAGS += -Wunreachable-code linty: CCFLAGS += -Winit-self linty: CCFLAGS += -Wpointer-arith -linty: advent +linty: advent cheat debug: CCFLAGS += -O0 --coverage -ggdb debug: linty -debug: cheat +CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf +cppcheck: + cppcheck -I. --template gcc --enable=all $(CSUPPRESSIONS) *.[ch]