diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 02:14:11 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 02:14:11 +0100 |
| commit | 4b7f4f04e39779c3496855ea46fff565c360a4d5 (patch) | |
| tree | 1384de505a2a9f13480366aae553e3aa3a00a53c /Makefile | |
| parent | 451947b7bed5ba6c9c925ceb10df39c42a330614 (diff) | |
Prepare a versioning mechanism for the tracker that works from tarballs
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -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 | ||
| 56 | GIT_VERSION=`sh -c 'command -v git >/dev/null && test -d .git && git rev-parse HEAD || echo _git_or_commit_not_found_'` | 56 | VERSION=1.0.0 |
| 57 | GIT_VERSION=`sh -c 'command -v git >/dev/null && test -d .git && git describe --tags --match "v*" --always --dirty 2>/dev/null'` | ||
| 57 | 58 | ||
| 58 | OPTS_debug=-D_DEBUG -g -ggdb # -pg -fprofile-arcs -ftest-coverage | 59 | OPTS_debug=-D_DEBUG -g -ggdb # -pg -fprofile-arcs -ftest-coverage |
| 59 | OPTS_production=-O3 | 60 | OPTS_production=-O3 |
| 60 | 61 | ||
| 61 | CFLAGS+=-DGIT_VERSION=$(GIT_VERSION) -Wall -pipe -pthread -Wextra -Wwrite-strings #-ansi -pedantic | 62 | CFLAGS+=-DOT_VERSION=\"$(VERSION)\" -DGIT_VERSION=\"$(GIT_VERSION)\" -Wall -pipe -pthread -Wextra -Wwrite-strings #-ansi -pedantic |
| 62 | LDFLAGS+=-pthread | 63 | LDFLAGS+=-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, |
