X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=Makefile;h=91ec3b672c9530ebd37f6d9acaf4003bcffd6df2;hp=0b3e9a75e964fe6abe9715efebe4b2368fc77b20;hb=6a90dcd0172c1a4c56d64a2dab9ebf892bc45afc;hpb=1173a9a265a3132688830c26077129e3c624cd13 diff --git a/Makefile b/Makefile index 0b3e9a7..91ec3b6 100644 --- a/Makefile +++ b/Makefile @@ -1,70 +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 +VERS=$(shell sed -n