diff options
-rw-r--r-- | Makefile | 23 | ||||
-rw-r--r-- | Makefile.arc4random | 3 | ||||
-rw-r--r-- | Makefile.gzip | 4 | ||||
-rw-r--r-- | Makefile.zstd | 3 |
4 files changed, 23 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 |
diff --git a/Makefile.arc4random b/Makefile.arc4random new file mode 100644 index 0000000..1488408 --- /dev/null +++ b/Makefile.arc4random | |||
@@ -0,0 +1,3 @@ | |||
1 | FEATURES+=-DWANT_ARC4RANDOM | ||
2 | LDFLAGS+=-lbsd | ||
3 | |||
diff --git a/Makefile.gzip b/Makefile.gzip new file mode 100644 index 0000000..6e0c066 --- /dev/null +++ b/Makefile.gzip | |||
@@ -0,0 +1,4 @@ | |||
1 | FEATURES+=-DWANT_COMPRESSION_GZIP | ||
2 | FEATURES+=-DWANT_COMPRESSION_GZIP_ALWAYS | ||
3 | |||
4 | LDFLAGS+=-lz | ||
diff --git a/Makefile.zstd b/Makefile.zstd new file mode 100644 index 0000000..2bb56be --- /dev/null +++ b/Makefile.zstd | |||
@@ -0,0 +1,3 @@ | |||
1 | FEATURES+=-DWANT_COMPRESSION_ZSTD | ||
2 | #FEATURES+=-DWANT_COMPRESSION_ZSTD_ALWAYS | ||
3 | LDFLAGS+=-lzstd | ||