Mercurial > hg > batmud > maputils
annotate Makefile @ 2833:d0e186348cb2 default tip
Add mention of soft level limitation to 'Eightleg woods'.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 26 May 2024 20:33:53 +0300 |
parents | 02c26bfd0ac0 |
children |
rev | line source |
---|---|
2523
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2516
diff
changeset
|
1 ### |
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2516
diff
changeset
|
2 ### Configuration settings for typical UNIX |
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2516
diff
changeset
|
3 ### |
1 | 4 |
5 # Installation prefix | |
1622
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
6 PREFIX = /usr/local |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
7 BINPATH = ./bin/ |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
8 OBJPATH = ./obj/unix/ |
2237
f9e5a67cd117
Rename EXEEXT to BINEXT in the build system, as per changes in th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2229
diff
changeset
|
9 BINEXT = |
1622
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
10 |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
11 CFLAGS += -DHAVE_CONFIG_H |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
12 LDFLAGS += |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
13 |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
14 CFLAGS += -DHAVE_STRING_H |
2472 | 15 CFLAGS += -DHAVE_STDBOOL_H |
1622
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
16 CFLAGS += -DHAVE_STDINT_H |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
17 #CFLAGS += -DHAVE_SYS_TYPES_H |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
18 CFLAGS += -DHAVE_INTTYPES_H |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
19 |
2523
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2516
diff
changeset
|
20 |
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2516
diff
changeset
|
21 ### |
2679
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
22 ### Detect various libraries etc |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
23 ### |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
24 HAVE_LIBPNG ?= $(shell pkg-config --atleast-version=1.2 libpng && echo "yes") |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
25 LIBPNG_CFLAGS ?= $(shell pkg-config --cflags libpng) |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
26 LIBPNG_LDFLAGS ?= $(shell pkg-config --libs libpng) |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
27 |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
28 HAVE_LIBWEBSOCKETS ?= $(shell pkg-config --atleast-version=2 libwebsockets && echo "yes") |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
29 LIBWEBSOCKETS_CFLAGS ?= $(shell pkg-config --cflags libwebsockets) |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
30 LIBWEBSOCKETS_LDFLAGS ?= $(shell pkg-config --libs libwebsockets) |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
31 |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
32 CFLAGS += $(shell pkg-config --atleast-version=2.2 libwebsockets && echo "-DHAVE_LIBWEBSOCKETS22=1") |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
33 CFLAGS += $(shell pkg-config --atleast-version=3.2 libwebsockets && echo "-DHAVE_LIBWEBSOCKETS32=1") |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
34 |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
35 |
02c26bfd0ac0
Backed out changeset c4fafcc43d83
Matti Hamalainen <ccr@tnsp.org>
parents:
2658
diff
changeset
|
36 ### |
2523
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2516
diff
changeset
|
37 ### Static compilation for mapsearch |
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2516
diff
changeset
|
38 ### |
1859
e52b2ce7c287
Make static compilation of mapsearch possible via make variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
1856
diff
changeset
|
39 ifdef STATIC |
e52b2ce7c287
Make static compilation of mapsearch possible via make variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
1856
diff
changeset
|
40 $(info Using static build for mapsearch.) |
e52b2ce7c287
Make static compilation of mapsearch possible via make variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
1856
diff
changeset
|
41 LIBWEBSOCKETS_LIBS = libwebsockets.a libz.a libssl.a libcrypto.a libev.a libuv.a |
2045 | 42 LIBWEBSOCKETS_LDFLAGS = $(addprefix /usr/lib/x86_64-linux-gnu/,$(LIBWEBSOCKETS_LIBS)) -pthread -lm -ldl -static |
1859
e52b2ce7c287
Make static compilation of mapsearch possible via make variable.
Matti Hamalainen <ccr@tnsp.org>
parents:
1856
diff
changeset
|
43 endif |
1063
75a7b2594d93
Add PNG output support to map2ppm.
Matti Hamalainen <ccr@tnsp.org>
parents:
571
diff
changeset
|
44 |
2523
8b6a32b66e0f
Improved comments in the build system files.
Matti Hamalainen <ccr@tnsp.org>
parents:
2516
diff
changeset
|
45 |
1622
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
46 ### |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
47 ### Unix targets |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
48 ### |
2237
f9e5a67cd117
Rename EXEEXT to BINEXT in the build system, as per changes in th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
2229
diff
changeset
|
49 ENDIANCHK_BIN = $(BINPATH)endianchk$(BINEXT) |
1622
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
50 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h |
a7d89044ee1b
Restructuring the repository.
Matti Hamalainen <ccr@tnsp.org>
parents:
1474
diff
changeset
|
51 THLIBS_DEP += config.h |
1 | 52 |
2516
d75ce1235875
Rename Makefile.gen to Makefile.common
Matti Hamalainen <ccr@tnsp.org>
parents:
2472
diff
changeset
|
53 include Makefile.common |