diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -49,10 +49,12 @@ FEATURES+=-DWANT_FULLSCRAPE | |||
49 | #FEATURES+=-D_DEBUG_HTTPERROR | 49 | #FEATURES+=-D_DEBUG_HTTPERROR |
50 | #FEATURES+=-D_DEBUG_RANDOMTORRENTS | 50 | #FEATURES+=-D_DEBUG_RANDOMTORRENTS |
51 | 51 | ||
52 | GIT_VERSION=$(shell sh -c 'command -v git >/dev/null && test -d .git && git rev-parse HEAD || echo _git_or_commit_not_found_') | ||
53 | |||
52 | OPTS_debug=-D_DEBUG -g -ggdb # -pg -fprofile-arcs -ftest-coverage | 54 | OPTS_debug=-D_DEBUG -g -ggdb # -pg -fprofile-arcs -ftest-coverage |
53 | OPTS_production=-O3 | 55 | OPTS_production=-O3 |
54 | 56 | ||
55 | CFLAGS+=-I$(LIBOWFAT_HEADERS) -Wall -pipe -pthread -Wextra #-ansi -pedantic | 57 | CFLAGS+=-I$(LIBOWFAT_HEADERS) -DGIT_VERSION=$(GIT_VERSION) -Wall -pipe -pthread -Wextra #-ansi -pedantic |
56 | LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread -lz | 58 | LDFLAGS+=-L$(LIBOWFAT_LIBRARY) -lowfat -pthread -lz |
57 | #LDFLAGS+=-lbsd | 59 | #LDFLAGS+=-lbsd |
58 | 60 | ||