X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=ee8c567ccf1f17c18e04d75e277fb4d9783c5393;hb=68ab090f175669e5bd6dace9ab6905e493114779;hp=c9169d9b3961019eb6cc62b01f9c928b12bb17c7;hpb=d657db5f4be146eebbda98b92a8a65fd4d84973e;p=open-adventure.git diff --git a/Makefile b/Makefile index c9169d9..ee8c567 100644 --- a/Makefile +++ b/Makefile @@ -3,14 +3,14 @@ VERS=1.0 CC?=gcc -CCFLAGS+=-std=c99 +CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE LIBS= UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Linux) LIBS=-lrt endif -OBJS=main.o init.o actions1.o actions2.o score.o misc.o +OBJS=main.o init.o actions1.o actions2.o score.o misc.o linenoise.o SOURCES=$(OBJS:.o=.c) dungeon.c advent.h funcs.h sizes.h adventure.text Makefile control .c.o: @@ -37,6 +37,9 @@ database.o: database.c database.h sizes.h database.c database.h: dungeon ./dungeon +linenoise.o: linenoise/linenoise.h + $(CC) $(CCFLAGS) $(DBX) -c linenoise/linenoise.c + dungeon: dungeon.c $(CC) $(CCFLAGS) -o $@ $<