X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=Makefile;h=ed13d890f47ef9d5251dc1c8448c9e0b918dbf42;hp=f9cbb85413a548dc98e23192611e10123af7d19b;hb=f34df0b8a224d371420da98a55c47e33acec0288;hpb=1b167e5e72e0b4ea4b991293abaf9b8ff1eac599 diff --git a/Makefile b/Makefile index f9cbb85..ed13d89 100644 --- a/Makefile +++ b/Makefile @@ -1,72 +1,66 @@ # Makefile for the open-source release of adventure 2.5 -# Note: If you're building from the repository rather than the source tarball, -# do this to get the linenoise library where you can use it: -# -# git submodule update --recursive --remote --init -# -# Therafter, you can update it like this: -# -# git submodule update --recursive --remote -# -# but this should seldom be necessary as that library is pretty stable. - -VERS=1.0 +# To build with save/resume disabled, pass CCFLAGS="-D ADVENT_NOSAVE" -CC?=gcc -CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -g -LIBS= -UNAME_S := $(shell uname -s) -ifeq ($(UNAME_S),Linux) - LIBS=-lrt -endif - -OBJS=main.o init.o actions.o score.o misc.o saveresume.o common.o newdb.o -SOURCES=$(OBJS:.o=.c) dungeon.c advent.h common.h adventure.text Makefile control linenoise/linenoise.[ch] +VERS=$(shell sed -n