|
|
@ -19,15 +19,20 @@ LIBOWFAT_LIBRARY=$(PREFIX)/libowfat |
|
|
|
|
|
|
|
|
|
|
|
BINDIR?=$(PREFIX)/bin |
|
|
|
BINDIR?=$(PREFIX)/bin |
|
|
|
|
|
|
|
|
|
|
|
#FEATURES =-DWANT_TRACKER_SYNC
|
|
|
|
#FEATURES+=-DWANT_ACCESSLIST_BLACK
|
|
|
|
#FEATURES+=-DWANT_BLACKLISTING
|
|
|
|
#FEATURES+=-DWANT_ACCESSLIST_WHITE
|
|
|
|
#FEATURES+=-DWANT_CLOSED_TRACKER
|
|
|
|
|
|
|
|
|
|
|
|
#FEATURES+=-DWANT_SYNC_BATCH
|
|
|
|
|
|
|
|
#FEATURES+=-DWANT_SYNC_LIVE
|
|
|
|
|
|
|
|
|
|
|
|
#FEATURES+=-DWANT_UTORRENT1600_WORKAROUND
|
|
|
|
#FEATURES+=-DWANT_UTORRENT1600_WORKAROUND
|
|
|
|
#FEATURES+=-DWANT_IP_FROM_QUERY_STRING
|
|
|
|
#FEATURES+=-DWANT_IP_FROM_QUERY_STRING
|
|
|
|
#FEATURES+=-DWANT_COMPRESSION_GZIP
|
|
|
|
#FEATURES+=-DWANT_COMPRESSION_GZIP
|
|
|
|
#FEATURES+=-DWANT_LOG_NETWORKS
|
|
|
|
#FEATURES+=-DWANT_LOG_NETWORKS
|
|
|
|
#FEATURES+=-D_DEBUG_HTTPERROR
|
|
|
|
#FEATURES+=-D_DEBUG_HTTPERROR
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FEATURES+=-DWANT_FULLSCRAPE |
|
|
|
|
|
|
|
|
|
|
|
OPTS_debug=-g -ggdb #-pg # -fprofile-arcs -ftest-coverage |
|
|
|
OPTS_debug=-g -ggdb #-pg # -fprofile-arcs -ftest-coverage |
|
|
|
OPTS_production=-Os |
|
|
|
OPTS_production=-Os |
|
|
|
|
|
|
|
|
|
|
@ -35,8 +40,8 @@ CFLAGS+=-I$(LIBOWFAT_HEADERS) -Wall -pipe -Wextra #-pedantic -ansi |
|
|
|
LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread -lz |
|
|
|
LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread -lz |
|
|
|
|
|
|
|
|
|
|
|
BINARY =opentracker |
|
|
|
BINARY =opentracker |
|
|
|
HEADERS=trackerlogic.h scan_urlencoded_query.h ot_mutex.h ot_stats.h ot_sync.h ot_vector.h ot_clean.h ot_udp.h ot_iovec.h ot_fullscrape.h ot_accesslist.h ot_http.h |
|
|
|
HEADERS=trackerlogic.h scan_urlencoded_query.h ot_mutex.h ot_stats.h ot_sync.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 |
|
|
|
SOURCES=opentracker.c trackerlogic.c scan_urlencoded_query.c ot_mutex.c ot_stats.c ot_sync.c ot_vector.c ot_clean.c ot_udp.c ot_iovec.c ot_fullscrape.c ot_accesslist.c ot_http.c |
|
|
|
SOURCES=opentracker.c trackerlogic.c scan_urlencoded_query.c ot_mutex.c ot_stats.c ot_sync.c ot_vector.c ot_clean.c ot_udp.c ot_iovec.c ot_fullscrape.c ot_accesslist.c ot_http.c ot_livesync.c |
|
|
|
|
|
|
|
|
|
|
|
OBJECTS = $(SOURCES:%.c=%.o) |
|
|
|
OBJECTS = $(SOURCES:%.c=%.o) |
|
|
|
OBJECTS_debug = $(SOURCES:%.c=%.debug.o) |
|
|
|
OBJECTS_debug = $(SOURCES:%.c=%.debug.o) |
|
|
|