Mercurial > hg > batmud > maputils
annotate config.mak @ 2799:c66a1b7ffaf7
Update my own entry a bit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 28 Mar 2024 17:53:57 +0200 |
parents | 822588370149 |
children |
rev | line source |
---|---|
2352 | 1 ### |
2 ### Global settings | |
3 ### | |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
4 WORLDMAP_FONT_FILE=MonospaceBold.ttf |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
5 WORLDMAP_FONT_SCALE=8.0 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
6 WORLDMAP_UNIT_SIZE=6.0 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
7 WORLDMAP_SCALE=6 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
8 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
9 MKLOC_OPTS= |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
10 MAP2PPM_OPTS= |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
11 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
12 #COLORMAP_OPTS=-u "www/urchin.inc.php" -a -C |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
13 COLORMAP_OPTS=-a -C |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
14 COLORMAP_HTML=-f html5 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
15 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
16 |
2443
fc2f36b74dd7
Require GNU bash for now due to laziness and we want to use {} brace
Matti Hamalainen <ccr@tnsp.org>
parents:
2442
diff
changeset
|
17 # Unfortunately we require Bash for now due to {} brace expansion |
fc2f36b74dd7
Require GNU bash for now due to laziness and we want to use {} brace
Matti Hamalainen <ccr@tnsp.org>
parents:
2442
diff
changeset
|
18 SHELL = /bin/bash |
fc2f36b74dd7
Require GNU bash for now due to laziness and we want to use {} brace
Matti Hamalainen <ccr@tnsp.org>
parents:
2442
diff
changeset
|
19 |
2316
2a920c6b58c8
Move few definitions and settings from Makefile.gen to config.mak
Matti Hamalainen <ccr@tnsp.org>
parents:
2290
diff
changeset
|
20 THLIBS = th-libs/ |
2a920c6b58c8
Move few definitions and settings from Makefile.gen to config.mak
Matti Hamalainen <ccr@tnsp.org>
parents:
2290
diff
changeset
|
21 CFLAGS += -I$(THLIBS) -I. |
2a920c6b58c8
Move few definitions and settings from Makefile.gen to config.mak
Matti Hamalainen <ccr@tnsp.org>
parents:
2290
diff
changeset
|
22 |
2290 | 23 CFLAGS += -O2 |
2504
0b909a95d689
Bump C standard from C99 to C11.
Matti Hamalainen <ccr@tnsp.org>
parents:
2476
diff
changeset
|
24 CFLAGS += -g -W -Wall -Wextra -DNDEBUG -D_XOPEN_SOURCE=500 -std=c11 |
1662 | 25 #CFLAGS += -pedantic |
2290 | 26 #CFLAGS += -fsanitize=address |
27 #LDFLAGS += -lasan | |
1549
b2920faf3096
Rename UPURL setting to UPLOAD_URL.
Matti Hamalainen <ccr@tnsp.org>
parents:
1548
diff
changeset
|
28 |
1550
952acce5230c
Rename some build system settings.
Matti Hamalainen <ccr@tnsp.org>
parents:
1549
diff
changeset
|
29 |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
30 ### |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
31 ### Detect things |
2742
822588370149
Add a note about things being set elsewhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
2697
diff
changeset
|
32 ### Note - some things are detected in "Makefile" for *NIX builds, |
822588370149
Add a note about things being set elsewhere.
Matti Hamalainen <ccr@tnsp.org>
parents:
2697
diff
changeset
|
33 ### and set in Makefile.cross-mingw |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
34 ### |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
35 HAVE_CURL ?= $(shell curl --version > /dev/null 2>&1 && echo "yes") |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
36 HAVE_WGET ?= $(shell wget --version > /dev/null 2>&1 && echo "yes") |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
37 HAVE_PHP ?= $(shell php --version > /dev/null 2>&1 && echo "yes") |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
38 HAVE_GIMP_CONSOLE ?= $(shell gimp-console --version > /dev/null 2>&1 && echo "yes") |
2352 | 39 |
2388 | 40 # Wget or curl are autodetected but you can force them here |
41 #HTTPGET ?= curl -o | |
42 #HTTPGET ?= wget -O | |
2367
89c2a0358300
Make it configurable in config.mak whether to use wget or curl.
Matti Hamalainen <ccr@tnsp.org>
parents:
2352
diff
changeset
|
43 |
89c2a0358300
Make it configurable in config.mak whether to use wget or curl.
Matti Hamalainen <ccr@tnsp.org>
parents:
2352
diff
changeset
|
44 |
2352 | 45 ### |
46 ### Misc stuff | |
47 ### | |
2523
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2522
diff
changeset
|
48 # rsync command for uploading files |
2524
73f3062d717c
Rename two Makefile variables.
Matti Hamalainen <ccr@tnsp.org>
parents:
2523
diff
changeset
|
49 RSCP_COMMAND = rsync -vptogzL -e ssh |
73f3062d717c
Rename two Makefile variables.
Matti Hamalainen <ccr@tnsp.org>
parents:
2523
diff
changeset
|
50 RSCP_UPLOAD_URL = ccr@tnsp.org:/var/www/tnsp.org/maps/ |
2316
2a920c6b58c8
Move few definitions and settings from Makefile.gen to config.mak
Matti Hamalainen <ccr@tnsp.org>
parents:
2290
diff
changeset
|
51 |
2523
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2522
diff
changeset
|
52 # Download URL for raw ASCII world maps |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
53 BATMAP_URL = https://www.bat.org/maps/raw/ |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
54 |
2523
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2522
diff
changeset
|
55 # List of miscellaneous maps to build |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
56 MISC_MAPS_PATH=misc/ |
2316
2a920c6b58c8
Move few definitions and settings from Makefile.gen to config.mak
Matti Hamalainen <ccr@tnsp.org>
parents:
2290
diff
changeset
|
57 MISC_MAPS=votk faerieforest lanzia rilynttar lorenchia \ |
2a920c6b58c8
Move few definitions and settings from Makefile.gen to config.mak
Matti Hamalainen <ccr@tnsp.org>
parents:
2290
diff
changeset
|
58 esiris esiris2 arelium calythien tyr_farwyn \ |
2697
8490ca59f4e5
Add prototype map of Shadowkeep, based partially on Amarth's original.
Matti Hamalainen <ccr@tnsp.org>
parents:
2679
diff
changeset
|
59 dortlewall vendace_shore shadowkeep |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
60 |
2523
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2522
diff
changeset
|
61 # Continent maps etc |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
62 CONT_MAPS=laenor rothikgen lucentium furnachia desolathya renardy |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
63 WORLD_MAPS=$(CONT_MAPS) tormentas |
2521
55201a1420df
Add area "world map" for Lost Vale.
Matti Hamalainen <ccr@tnsp.org>
parents:
2506
diff
changeset
|
64 EXTRA_WORLD_MAPS=lost_vale |