X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=2e81dfc3bb862e6c959869a6667cb58a87d7dae5;hb=1ef39055f3e4fb7c1bd84804a994c20b87301521;hp=1c18a866e810a7ecaa79cedee038d942131c395c;hpb=f38f286f39fe03bf72656685c1d7315570919baf;p=open-adventure.git diff --git a/Makefile b/Makefile index 1c18a86..2e81dfc 100644 --- a/Makefile +++ b/Makefile @@ -1,85 +1,85 @@ # 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. -# -# You will also need Python 3 YAML. Under Debian or ubuntu: -# -# apt-get install python3-yaml -# -# If you have pip installed, -# -# pip3 install PyYAML - -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 -SOURCES=$(OBJS:.o=.c) dungeon.c advent.h common.h adventure.text Makefile control linenoise/linenoise.[ch] newdungeon.py +VERS=$(shell sed -n