diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2024-04-21 15:36:36 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2024-04-21 15:36:36 +0200 |
commit | 8b11bc66538160f3660249b9959d8b29a141a1d7 (patch) | |
tree | 451cb41dd9d88008c80aa4041ea7275478ad1fb6 /Makefile | |
parent | e8d385f17607bbe86204251062039690dfc3979a (diff) |
Group feature options that need additional compiler flags in Makefiles, so they can be enable together
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -18,19 +18,23 @@ LIBOWFAT_LIBRARY=$(PREFIX)/libowfat | |||
18 | BINDIR?=$(PREFIX)/bin | 18 | BINDIR?=$(PREFIX)/bin |
19 | STRIP?=strip | 19 | STRIP?=strip |
20 | 20 | ||
21 | #FEATURES+=-DWAND_V4_ONLY | 21 | #FEATURES+=-DWANT_V4_ONLY |
22 | #FEATURES+=-DWANT_ACCESSLIST_BLACK | 22 | #FEATURES+=-DWANT_ACCESSLIST_BLACK |
23 | #FEATURES+=-DWANT_ACCESSLIST_WHITE | 23 | #FEATURES+=-DWANT_ACCESSLIST_WHITE |
24 | #FEATURES+=-DWANT_DYNAMIC_ACCESSLIST | 24 | #FEATURES+=-DWANT_DYNAMIC_ACCESSLIST |
25 | 25 | ||
26 | #FEATURES+=-DWANT_SYNC_LIVE | 26 | #FEATURES+=-DWANT_SYNC_LIVE |
27 | #FEATURES+=-DWANT_IP_FROM_QUERY_STRING | 27 | #FEATURES+=-DWANT_IP_FROM_QUERY_STRING |
28 | FEATURES+=-DWANT_COMPRESSION_GZIP | ||
29 | FEATURES+=-DWANT_COMPRESSION_GZIP_ALWAYS | ||
30 | 28 | ||
31 | #FEATURES+=-DWANT_COMPRESSION_ZSTD | 29 | # If you want gzip support to be compiled in, uncomment the next include. |
32 | #FEATURES+=-DWANT_COMPRESSION_ZSTD_ALWAYS | 30 | # You can further modify the behaviour by setting DWANT_COMPRESSION_GZIP_ALWAYS |
33 | #LDFLAGS+=-lzstd | 31 | # in Makefile.gzip |
32 | include Makefile.gzip | ||
33 | |||
34 | # If you want zstd support to be compiled in, uncomment the next include. | ||
35 | # You can further modify the behaviour by setting DWANT_COMPRESSION_ZSTD_ALWAYS | ||
36 | # in Makefile.zstd | ||
37 | #include Makefile.zstd | ||
34 | 38 | ||
35 | #FEATURES+=-DWANT_LOG_NETWORKS | 39 | #FEATURES+=-DWANT_LOG_NETWORKS |
36 | #FEATURES+=-DWANT_RESTRICT_STATS | 40 | #FEATURES+=-DWANT_RESTRICT_STATS |
@@ -48,8 +52,8 @@ FEATURES+=-DWANT_FULLSCRAPE | |||
48 | #FEATURES+=-DWANT_NO_AUTO_FREE | 52 | #FEATURES+=-DWANT_NO_AUTO_FREE |
49 | 53 | ||
50 | # Is enabled on BSD systems by default in trackerlogic.h | 54 | # Is enabled on BSD systems by default in trackerlogic.h |
51 | # on Linux systems you will need -lbds | 55 | # on Linux systems the include Makefile adds -lbsd |
52 | #FEATURES+=-DWANT_ARC4RANDOM | 56 | #include Makefile.arc4random |
53 | 57 | ||
54 | #FEATURES+=-D_DEBUG_HTTPERROR | 58 | #FEATURES+=-D_DEBUG_HTTPERROR |
55 | #FEATURES+=-D_DEBUG_RANDOMTORRENTS | 59 | #FEATURES+=-D_DEBUG_RANDOMTORRENTS |
@@ -60,8 +64,7 @@ OPTS_debug=-D_DEBUG -g -ggdb # -pg -fprofile-arcs -ftest-coverage | |||
60 | OPTS_production=-O3 | 64 | OPTS_production=-O3 |
61 | 65 | ||
62 | CFLAGS+=-I$(LIBOWFAT_HEADERS) -DGIT_VERSION=$(GIT_VERSION) -Wall -pipe -pthread -Wextra #-ansi -pedantic | 66 | CFLAGS+=-I$(LIBOWFAT_HEADERS) -DGIT_VERSION=$(GIT_VERSION) -Wall -pipe -pthread -Wextra #-ansi -pedantic |
63 | LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread -lz | 67 | LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread |
64 | #LDFLAGS+=-lbsd | ||
65 | 68 | ||
66 | BINARY =opentracker | 69 | BINARY =opentracker |
67 | HEADERS=trackerlogic.h scan_urlencoded_query.h ot_mutex.h ot_stats.h ot_vector.h ot_clean.h ot_udp.h ot_iovec.h ot_fullscrape.h ot_accesslist.h ot_http.h ot_livesync.h ot_rijndael.h | 70 | HEADERS=trackerlogic.h scan_urlencoded_query.h ot_mutex.h ot_stats.h ot_vector.h ot_clean.h ot_udp.h ot_iovec.h ot_fullscrape.h ot_accesslist.h ot_http.h ot_livesync.h ot_rijndael.h |