X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=Makefile;h=b8582d5d66c1f34df008d45634ea9ea88897a123;hp=758408ab571a1d0ade40024445de83117d0ea7c5;hb=aa1dd666a9e5a972cb8e29c70cebb9c35a785ddf;hpb=1ee0e5c7b0cc469a2d10a7a83b638409a206dee9 diff --git a/Makefile b/Makefile index 758408a..b8582d5 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ endif OBJS=main.o init.o actions.o score.o misc.o saveresume.o CHEAT_OBJS=cheat.o init.o actions.o score.o misc.o saveresume.o -SOURCES=$(OBJS:.o=.c) advent.h adventure.text adventure.yaml Makefile control linenoise/linenoise.[ch] make_dungeon.py +SOURCES=$(OBJS:.o=.c) advent.h adventure.yaml Makefile control linenoise/linenoise.[ch] make_dungeon.py .c.o: $(CC) $(CCFLAGS) $(DBX) -c $< @@ -67,6 +67,9 @@ dungeon.c dungeon.h: make_dungeon.py adventure.yaml python3 make_dungeon.py linenoise.o: linenoise/linenoise.h + $(CC) -c linenoise/linenoise.c + +linenoise-dbg: linenoise/linenoise.h $(CC) $(CCFLAGS) -c linenoise/linenoise.c clean: @@ -147,4 +150,4 @@ debug: CCFLAGS += -O0 --coverage -ggdb debug: linty debug: cheat - +debug-ln: linenoise-dbg debug