X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=Makefile;h=afd81a099480bd0da6d103abb8e44fe8e6d45f66;hp=08a0fbbd2b4ad3d6f7bc533f913f4aff9cb548de;hb=refs%2Fheads%2Fmaster;hpb=60126c3dac4788cd5c01f5da6bb50986aeaac0d3 diff --git a/Makefile b/Makefile index 08a0fbb..0da7fb8 100644 --- a/Makefile +++ b/Makefile @@ -1,91 +1,107 @@ # 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: (C) 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 newdb.o -SOURCES=$(OBJS:.o=.c) dungeon.c advent.h common.h adventure.text Makefile control linenoise/linenoise.[ch] newdungeon.py +VERS=$(shell sed -n