Compare commits

..

No commits in common. '2c88c7b65ad0b70f35fc79aa81879d839db937a0' and '492da4a57e3ceac30709a9f932a3552eef2d2898' have entirely different histories.

  1. 23
      Makefile
  2. 3
      Makefile.arc4random
  3. 4
      Makefile.gzip
  4. 3
      Makefile.zstd
  5. 2
      ot_http.c

23
Makefile

@ -18,23 +18,19 @@ LIBOWFAT_LIBRARY=$(PREFIX)/libowfat @@ -18,23 +18,19 @@ LIBOWFAT_LIBRARY=$(PREFIX)/libowfat
BINDIR?=$(PREFIX)/bin
STRIP?=strip
#FEATURES+=-DWANT_V4_ONLY
#FEATURES+=-DWAND_V4_ONLY
#FEATURES+=-DWANT_ACCESSLIST_BLACK
#FEATURES+=-DWANT_ACCESSLIST_WHITE
#FEATURES+=-DWANT_DYNAMIC_ACCESSLIST
#FEATURES+=-DWANT_SYNC_LIVE
#FEATURES+=-DWANT_IP_FROM_QUERY_STRING
FEATURES+=-DWANT_COMPRESSION_GZIP
FEATURES+=-DWANT_COMPRESSION_GZIP_ALWAYS
# If you want gzip support to be compiled in, uncomment the next include.
# You can further modify the behaviour by setting DWANT_COMPRESSION_GZIP_ALWAYS
# in Makefile.gzip
include Makefile.gzip
# If you want zstd support to be compiled in, uncomment the next include.
# You can further modify the behaviour by setting DWANT_COMPRESSION_ZSTD_ALWAYS
# in Makefile.zstd
#include Makefile.zstd
#FEATURES+=-DWANT_COMPRESSION_ZSTD
#FEATURES+=-DWANT_COMPRESSION_ZSTD_ALWAYS
#LDFLAGS+=-lzstd
#FEATURES+=-DWANT_LOG_NETWORKS
#FEATURES+=-DWANT_RESTRICT_STATS
@ -52,8 +48,8 @@ FEATURES+=-DWANT_FULLSCRAPE @@ -52,8 +48,8 @@ FEATURES+=-DWANT_FULLSCRAPE
#FEATURES+=-DWANT_NO_AUTO_FREE
# Is enabled on BSD systems by default in trackerlogic.h
# on Linux systems the include Makefile adds -lbsd
#include Makefile.arc4random
# on Linux systems you will need -lbds
#FEATURES+=-DWANT_ARC4RANDOM
#FEATURES+=-D_DEBUG_HTTPERROR
#FEATURES+=-D_DEBUG_RANDOMTORRENTS
@ -64,7 +60,8 @@ OPTS_debug=-D_DEBUG -g -ggdb # -pg -fprofile-arcs -ftest-coverage @@ -64,7 +60,8 @@ OPTS_debug=-D_DEBUG -g -ggdb # -pg -fprofile-arcs -ftest-coverage
OPTS_production=-O3
CFLAGS+=-I$(LIBOWFAT_HEADERS) -DGIT_VERSION=$(GIT_VERSION) -Wall -pipe -pthread -Wextra #-ansi -pedantic
LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread
LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread -lz
#LDFLAGS+=-lbsd
BINARY =opentracker
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

3
Makefile.arc4random

@ -1,3 +0,0 @@ @@ -1,3 +0,0 @@
FEATURES+=-DWANT_ARC4RANDOM
LDFLAGS+=-lbsd

4
Makefile.gzip

@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
FEATURES+=-DWANT_COMPRESSION_GZIP
#FEATURES+=-DWANT_COMPRESSION_GZIP_ALWAYS
LDFLAGS+=-lz

3
Makefile.zstd

@ -1,3 +0,0 @@ @@ -1,3 +0,0 @@
FEATURES+=-DWANT_COMPRESSION_ZSTD
#FEATURES+=-DWANT_COMPRESSION_ZSTD_ALWAYS
LDFLAGS+=-lzstd

2
ot_http.c

@ -4,9 +4,9 @@ @@ -4,9 +4,9 @@
$id$ */
/* System */
#define _GNU_SOURCE
#include <arpa/inet.h>
#include <pthread.h>
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Loading…
Cancel
Save