diff options
author | erdgeist <> | 2007-12-20 05:59:34 +0000 |
---|---|---|
committer | erdgeist <> | 2007-12-20 05:59:34 +0000 |
commit | c28cf398fd956eb467612eec4b31e1df371b9636 (patch) | |
tree | 8ea7885c689844d06aa59a420fbaf06fee5ded19 /Makefile | |
parent | d9ed6c22bd26268b8ae51cc062e41f20e2dc68bd (diff) |
Introduce some kind of versioning
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 26 insertions, 2 deletions
@@ -1,4 +1,24 @@ | |||
1 | # $Id$ | ||
2 | |||
1 | CC?=gcc | 3 | CC?=gcc |
4 | |||
5 | # Linux flavour | ||
6 | # PREFIX?=/opt/diet | ||
7 | # LIBOWFAT_HEADERS=$(PREFIX)/include | ||
8 | # LIBOWFAT_LIBRARY=$(PREIFX)/lib | ||
9 | |||
10 | # BSD flavour | ||
11 | PREFIX?=/usr/local | ||
12 | LIBOWFAT_HEADERS=$(PREFIX)/include/libowfat | ||
13 | LIBOWFAT_LIBRARY=$(PREIFX)/lib | ||
14 | |||
15 | # Debug flavour | ||
16 | # PREFIX?=.. | ||
17 | # LIBOWFAT_HEADERS=$(PREFIX)/libowfat | ||
18 | # LIBOWFAT_LIBRARY=$(PREFIX)/libowfat | ||
19 | |||
20 | BINDIR?=$(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 | ||
10 | OPTS_debug=-g -ggdb #-pg # -fprofile-arcs -ftest-coverage | 30 | OPTS_debug=-g -ggdb #-pg # -fprofile-arcs -ftest-coverage |
11 | OPTS_production=-Os | 31 | OPTS_production=-Os |
12 | CFLAGS+=-I../libowfat -Wall -pipe -Wextra #-pedantic -ansi | 32 | |
13 | LDFLAGS+=-L../libowfat/ -lowfat -pthread -lz | 33 | CFLAGS+=-I$(LIBOWFAT_HEADERS) -Wall -pipe -Wextra #-pedantic -ansi |
34 | LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread -lz | ||
14 | 35 | ||
15 | BINARY =opentracker | 36 | BINARY =opentracker |
16 | 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 | 37 | 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 |
@@ -40,3 +61,6 @@ $(BINARY).debug: $(OBJECTS_debug) $(HEADERS) | |||
40 | 61 | ||
41 | clean: | 62 | clean: |
42 | rm -rf opentracker opentracker.debug *.o *~ | 63 | rm -rf opentracker opentracker.debug *.o *~ |
64 | |||
65 | install: | ||
66 | install -m 755 opentracker $(BINDIR) | ||