Mercurial > hg > batmud > maputils
annotate config.mak @ 2506:de2e01e4343b
Large refactoring and cleanup of the build system.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 02 Aug 2023 12:11:49 +0300 |
parents | 0b909a95d689 |
children | 55201a1420df |
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 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
32 ### |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
33 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
|
34 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
|
35 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
|
36 HAVE_GIMP_CONSOLE ?= $(shell gimp-console --version > /dev/null 2>&1 && echo "yes") |
2352 | 37 |
2388 | 38 # Wget or curl are autodetected but you can force them here |
39 #HTTPGET ?= curl -o | |
40 #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
|
41 |
89c2a0358300
Make it configurable in config.mak whether to use wget or curl.
Matti Hamalainen <ccr@tnsp.org>
parents:
2352
diff
changeset
|
42 |
2352 | 43 ### |
44 ### Misc stuff | |
45 ### | |
2476 | 46 CFLAGS += -DTH_PROG_AUTHOR="\"By Matti 'ccr' Hamalainen (C) Copyright 2006-2023 TNSP\"" |
2368
ba0ff73a1013
Adjust by/copyright lines.
Matti Hamalainen <ccr@tnsp.org>
parents:
2367
diff
changeset
|
47 CFLAGS += -DTH_PROG_LICENSE="\"This software is distributed under GNU General Public License version 2\"" |
2316
2a920c6b58c8
Move few definitions and settings from Makefile.gen to config.mak
Matti Hamalainen <ccr@tnsp.org>
parents:
2290
diff
changeset
|
48 |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
49 RSCP = rsync -vptogzL -e ssh |
2316
2a920c6b58c8
Move few definitions and settings from Makefile.gen to config.mak
Matti Hamalainen <ccr@tnsp.org>
parents:
2290
diff
changeset
|
50 |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
51 UPLOAD_URL = ccr@tnsp.org:/var/www/tnsp.org/maps/ |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
52 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
|
53 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
54 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
|
55 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
|
56 esiris esiris2 arelium calythien tyr_farwyn \ |
2a920c6b58c8
Move few definitions and settings from Makefile.gen to config.mak
Matti Hamalainen <ccr@tnsp.org>
parents:
2290
diff
changeset
|
57 dortlewall vendace_shore |
2506
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
58 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
59 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
|
60 WORLD_MAPS=$(CONT_MAPS) tormentas |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
61 |
de2e01e4343b
Large refactoring and cleanup of the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2504
diff
changeset
|
62 |