summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-11-02 02:14:11 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-11-02 02:14:11 +0100
commit4b7f4f04e39779c3496855ea46fff565c360a4d5 (patch)
tree1384de505a2a9f13480366aae553e3aa3a00a53c /Makefile
parent451947b7bed5ba6c9c925ceb10df39c42a330614 (diff)
Prepare a versioning mechanism for the tracker that works from tarballs
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,