X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=Makefile;h=6651a111d3c827b1594eb1783b16b33b05fad3f0;hp=31f35a96f24a14e57466e4307503a503c71538a0;hb=b27f767cc6658a4f7500054c75887d69c340c0f8;hpb=34621b054adb37028a18411db7df5dee0e9c9f00 diff --git a/Makefile b/Makefile index 31f35a9..6651a11 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 -Wall -Wpedantic -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