diff options
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, |
