summaryrefslogtreecommitdiff
path: root/Makefile
blob: dd5c72891b62cb6f0aa3aaf59ac9195c7d83153e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CC?=gcc
FEATURES=#-DWANT_IP_FROM_QUERY_STRING -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER -D_DEBUG_HTTPERROR
#DEBUG_OPTS=-g -ggdb -pg # -fprofile-arcs -ftest-coverage
DEBUG_OPTS=-s -Os
CFLAGS+=-I../libowfat -Wall -pipe# -pedantic -ansi
LDFLAGS+=-L../libowfat/ -lowfat

HEADERS=trackerlogic.h scan_urlencoded_query.h
SOURCES=opentracker.c trackerlogic.c scan_urlencoded_query.c

opentracker: $(SOURCES) $(HEADERS)
	$(CC) $(SOURCES) -o opentracker $(CFLAGS) $(FEATURES) $(DEBUG_OPTS) $(LDFLAGS)

clean:
	rm -rf opentracker