X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=Makefile;h=8836d1ac0874891555bae267907dfa6b418cc1fa;hp=b0b06b95c7f24896df0d99cafd81848fcbc9c88b;hb=5cdaa301dcf6ececc1d2a9e340d8da698a9f55d8;hpb=a3485d2a41ae0360177c8b475972610025aec8f3;ds=sidebyside diff --git a/Makefile b/Makefile index b0b06b9..8836d1a 100644 --- a/Makefile +++ b/Makefile @@ -1,88 +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 -CCFLAGS+=-Wstrict-prototypes -CCFLAGS+=-Wmissing-prototypes -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