Mercurial > hg > batmud > maputils
view config.mak @ 2658:c4fafcc43d83
Move some dependency checks from Makefile to config.mak for consistency.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 02 Mar 2024 16:14:37 +0200 |
parents | 73f3062d717c |
children | 02c26bfd0ac0 |
line wrap: on
line source
### ### Global settings ### WORLDMAP_FONT_FILE=MonospaceBold.ttf WORLDMAP_FONT_SCALE=8.0 WORLDMAP_UNIT_SIZE=6.0 WORLDMAP_SCALE=6 MKLOC_OPTS= MAP2PPM_OPTS= #COLORMAP_OPTS=-u "www/urchin.inc.php" -a -C COLORMAP_OPTS=-a -C COLORMAP_HTML=-f html5 # Unfortunately we require Bash for now due to {} brace expansion SHELL = /bin/bash THLIBS = th-libs/ CFLAGS += -I$(THLIBS) -I. CFLAGS += -O2 CFLAGS += -g -W -Wall -Wextra -DNDEBUG -D_XOPEN_SOURCE=500 -std=c11 #CFLAGS += -pedantic #CFLAGS += -fsanitize=address #LDFLAGS += -lasan ### ### Detect things ### HAVE_CURL ?= $(shell curl --version > /dev/null 2>&1 && echo "yes") HAVE_WGET ?= $(shell wget --version > /dev/null 2>&1 && echo "yes") HAVE_PHP ?= $(shell php --version > /dev/null 2>&1 && echo "yes") HAVE_GIMP_CONSOLE ?= $(shell gimp-console --version > /dev/null 2>&1 && echo "yes") # Wget or curl are autodetected but you can force them here #HTTPGET ?= curl -o #HTTPGET ?= wget -O HAVE_LIBPNG ?= $(shell pkg-config --atleast-version=1.2 libpng && echo "yes") LIBPNG_CFLAGS ?= $(shell pkg-config --cflags libpng) LIBPNG_LDFLAGS ?= $(shell pkg-config --libs libpng) HAVE_LIBWEBSOCKETS ?= $(shell pkg-config --atleast-version=2 libwebsockets && echo "yes") LIBWEBSOCKETS_CFLAGS ?= $(shell pkg-config --cflags libwebsockets) LIBWEBSOCKETS_LDFLAGS ?= $(shell pkg-config --libs libwebsockets) CFLAGS += $(shell pkg-config --atleast-version=2.2 libwebsockets && echo "-DHAVE_LIBWEBSOCKETS22=1") CFLAGS += $(shell pkg-config --atleast-version=3.2 libwebsockets && echo "-DHAVE_LIBWEBSOCKETS32=1") ### ### Misc stuff ### # rsync command for uploading files RSCP_COMMAND = rsync -vptogzL -e ssh RSCP_UPLOAD_URL = ccr@tnsp.org:/var/www/tnsp.org/maps/ # Download URL for raw ASCII world maps BATMAP_URL = https://www.bat.org/maps/raw/ # List of miscellaneous maps to build MISC_MAPS_PATH=misc/ MISC_MAPS=votk faerieforest lanzia rilynttar lorenchia \ esiris esiris2 arelium calythien tyr_farwyn \ dortlewall vendace_shore # Continent maps etc CONT_MAPS=laenor rothikgen lucentium furnachia desolathya renardy WORLD_MAPS=$(CONT_MAPS) tormentas EXTRA_WORLD_MAPS=lost_vale