summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 92e911d..bf4883e 100644
--- a/Makefile
+++ b/Makefile
@@ -53,12 +53,13 @@ FEATURES+=-DWANT_FULLSCRAPE
53#FEATURES+=-D_DEBUG_HTTPERROR 53#FEATURES+=-D_DEBUG_HTTPERROR
54#FEATURES+=-D_DEBUG_RANDOMTORRENTS 54#FEATURES+=-D_DEBUG_RANDOMTORRENTS
55 55
56GIT_VERSION=`sh -c 'command -v git >/dev/null && test -d .git && git rev-parse HEAD || echo _git_or_commit_not_found_'` 56VERSION=1.0.0
57GIT_VERSION=`sh -c 'command -v git >/dev/null && test -d .git && git describe --tags --match "v*" --always --dirty 2>/dev/null'`
57 58
58OPTS_debug=-D_DEBUG -g -ggdb # -pg -fprofile-arcs -ftest-coverage 59OPTS_debug=-D_DEBUG -g -ggdb # -pg -fprofile-arcs -ftest-coverage
59OPTS_production=-O3 60OPTS_production=-O3
60 61
61CFLAGS+=-DGIT_VERSION=$(GIT_VERSION) -Wall -pipe -pthread -Wextra -Wwrite-strings #-ansi -pedantic 62CFLAGS+=-DOT_VERSION=\"$(VERSION)\" -DGIT_VERSION=\"$(GIT_VERSION)\" -Wall -pipe -pthread -Wextra -Wwrite-strings #-ansi -pedantic
62LDFLAGS+=-pthread 63LDFLAGS+=-pthread
63 64
64# Only the proxy, which has not been ported since the tracker went dual stack, 65# Only the proxy, which has not been ported since the tracker went dual stack,