X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=Makefile;h=506a6f6102a9e8a80da8b1edc0d8be53684eae2d;hp=061087a8a40b8ac36c0d2644f1ad8ddcfa1b0c6d;hb=9e2cb3c19196a26af8e20803314f42b69dc0e014;hpb=51a88bec4dd66a95f0c17d1cc8c78bb11fc0c92e diff --git a/Makefile b/Makefile index 061087a..506a6f6 100644 --- a/Makefile +++ b/Makefile @@ -1,85 +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. -# -# You will also need Python 3 YAML. Under Debian or ubuntu: -# -# apt-get install python3-yaml -# -# If you have pip installed, -# -# pip3 install PyYAML -# -# If you are using MacPorts on OS X: -# port install py3{5,6}-yaml as appropriate for your Python 3 version. - -VERS=1.0 +# To build with save/resume disabled, pass CCFLAGS="-D ADVENT_NOSAVE" -CC?=gcc -CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wall -Wpedantic -Wextra -g -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 -SOURCES=$(OBJS:.o=.c) dungeon.c advent.h common.h adventure.text Makefile control linenoise/linenoise.[ch] newdungeon.py +VERS=$(shell sed -n