From c28cf398fd956eb467612eec4b31e1df371b9636 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Thu, 20 Dec 2007 05:59:34 +0000 Subject: Introduce some kind of versioning --- Makefile | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3a5ac12..12c89d7 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,24 @@ +# $Id$ + CC?=gcc + +# Linux flavour +# PREFIX?=/opt/diet +# LIBOWFAT_HEADERS=$(PREFIX)/include +# LIBOWFAT_LIBRARY=$(PREIFX)/lib + +# BSD flavour +PREFIX?=/usr/local +LIBOWFAT_HEADERS=$(PREFIX)/include/libowfat +LIBOWFAT_LIBRARY=$(PREIFX)/lib + +# Debug flavour +# PREFIX?=.. +# LIBOWFAT_HEADERS=$(PREFIX)/libowfat +# LIBOWFAT_LIBRARY=$(PREFIX)/libowfat + +BINDIR?=$(PREFIX)/bin + #FEATURES =-DWANT_TRACKER_SYNC #FEATURES+=-DWANT_BLACKLISTING #FEATURES+=-DWANT_CLOSED_TRACKER @@ -9,8 +29,9 @@ CC?=gcc OPTS_debug=-g -ggdb #-pg # -fprofile-arcs -ftest-coverage OPTS_production=-Os -CFLAGS+=-I../libowfat -Wall -pipe -Wextra #-pedantic -ansi -LDFLAGS+=-L../libowfat/ -lowfat -pthread -lz + +CFLAGS+=-I$(LIBOWFAT_HEADERS) -Wall -pipe -Wextra #-pedantic -ansi +LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread -lz 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 @@ -40,3 +61,6 @@ $(BINARY).debug: $(OBJECTS_debug) $(HEADERS) clean: rm -rf opentracker opentracker.debug *.o *~ + +install: + install -m 755 opentracker $(BINDIR) -- cgit v1.2.3