2006-12-05 12:56:56 +00:00
|
|
|
CC?=gcc
|
2007-01-24 12:56:15 +00:00
|
|
|
FEATURES=#-DWANT_IP_FROM_QUERY_STRING -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER -D_DEBUG_HTTPERROR
|
2007-01-06 22:25:09 +00:00
|
|
|
#DEBUG_OPTS=-g -ggdb -pg # -fprofile-arcs -ftest-coverage
|
|
|
|
DEBUG_OPTS=-s -Os
|
2007-01-20 01:50:28 +00:00
|
|
|
CFLAGS+=-I../libowfat -Wall -pipe # -pedantic -ansi
|
2007-01-29 02:02:03 +00:00
|
|
|
LDFLAGS+=-L../libowfat/ -lowfat
|
2006-12-05 12:56:56 +00:00
|
|
|
|
2006-12-15 23:38:18 +00:00
|
|
|
HEADERS=trackerlogic.h scan_urlencoded_query.h
|
2006-12-08 20:28:17 +00:00
|
|
|
SOURCES=opentracker.c trackerlogic.c scan_urlencoded_query.c
|
2006-12-05 12:56:56 +00:00
|
|
|
|
2006-12-15 23:38:18 +00:00
|
|
|
opentracker: $(SOURCES) $(HEADERS)
|
2007-01-06 22:25:09 +00:00
|
|
|
$(CC) $(SOURCES) -o opentracker $(CFLAGS) $(FEATURES) $(DEBUG_OPTS) $(LDFLAGS)
|
2006-12-05 12:56:56 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf opentracker
|