summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorerdgeist <>2007-12-20 05:59:34 +0000
committererdgeist <>2007-12-20 05:59:34 +0000
commitc28cf398fd956eb467612eec4b31e1df371b9636 (patch)
tree8ea7885c689844d06aa59a420fbaf06fee5ded19 /Makefile
parentd9ed6c22bd26268b8ae51cc062e41f20e2dc68bd (diff)
Introduce some kind of versioning
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 26 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3a5ac12..12c89d7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,24 @@
1# $Id$
2
1CC?=gcc 3CC?=gcc
4
5# Linux flavour
6# PREFIX?=/opt/diet
7# LIBOWFAT_HEADERS=$(PREFIX)/include
8# LIBOWFAT_LIBRARY=$(PREIFX)/lib
9
10# BSD flavour
11PREFIX?=/usr/local
12LIBOWFAT_HEADERS=$(PREFIX)/include/libowfat
13LIBOWFAT_LIBRARY=$(PREIFX)/lib
14
15# Debug flavour
16# PREFIX?=..
17# LIBOWFAT_HEADERS=$(PREFIX)/libowfat
18# LIBOWFAT_LIBRARY=$(PREFIX)/libowfat
19
20BINDIR?=$(PREFIX)/bin
21
2#FEATURES =-DWANT_TRACKER_SYNC 22#FEATURES =-DWANT_TRACKER_SYNC
3#FEATURES+=-DWANT_BLACKLISTING 23#FEATURES+=-DWANT_BLACKLISTING
4#FEATURES+=-DWANT_CLOSED_TRACKER 24#FEATURES+=-DWANT_CLOSED_TRACKER
@@ -9,8 +29,9 @@ CC?=gcc
9 29
10OPTS_debug=-g -ggdb #-pg # -fprofile-arcs -ftest-coverage 30OPTS_debug=-g -ggdb #-pg # -fprofile-arcs -ftest-coverage
11OPTS_production=-Os 31OPTS_production=-Os
12CFLAGS+=-I../libowfat -Wall -pipe -Wextra #-pedantic -ansi 32
13LDFLAGS+=-L../libowfat/ -lowfat -pthread -lz 33CFLAGS+=-I$(LIBOWFAT_HEADERS) -Wall -pipe -Wextra #-pedantic -ansi
34LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread -lz
14 35
15BINARY =opentracker 36BINARY =opentracker
16HEADERS=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 37HEADERS=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
@@ -40,3 +61,6 @@ $(BINARY).debug: $(OBJECTS_debug) $(HEADERS)
40 61
41clean: 62clean:
42 rm -rf opentracker opentracker.debug *.o *~ 63 rm -rf opentracker opentracker.debug *.o *~
64
65install:
66 install -m 755 opentracker $(BINDIR)