X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=dfd3ff29878d73bc43445d104f8ae0e04e0d9a80;hb=2582e240bd504307b206a384008adb4dd545eb19;hp=d1d3fd453e946e0fae68fc4e9f73dbcb3929e676;hpb=be2ada4d9387e389bf7ef115b298226370b5752a;p=open-adventure.git diff --git a/Makefile b/Makefile index d1d3fd4..dfd3ff2 100644 --- a/Makefile +++ b/Makefile @@ -1,77 +1,81 @@ # 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 +# SPDX-FileCopyrightText: Copyright Eric S. Raymond +# SPDX-License-Identifier: BSD-2-Clause -CC?=gcc -CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wall -Wpedantic -g -LIBS= -UNAME_S := $(shell uname -s) -ifeq ($(UNAME_S),Linux) - LIBS=-lrt -endif +# To build with save/resume disabled, pass CFLAGS="-DADVENT_NOSAVE" +# To build with auto-save/resume enabled, pass CFLAGS="-DADVENT_AUTOSAVE" -OBJS=main.o init.o actions.o score.o misc.o saveresume.o common.o -SOURCES=$(OBJS:.o=.c) dungeon.c advent.h common.h adventure.text Makefile control linenoise/linenoise.[ch] newdungeon.py +VERS=$(shell sed -n