portable: fix compilation on OpenBSD
[got-portable.git] / Makefile.inc
blob495bc5a1d44efc6d760792f0976a4cbf808e0b8a
1 CPPFLAGS += -DGOT_LIBEXECDIR=${LIBEXECDIR} -DGOT_VERSION=${GOT_VERSION}
2 #CFLAGS += -DGOT_PACK_NO_MMAP
3 #CFLAGS += -DGOT_NO_OBJ_CACHE
4 #CFLAGS += -DGOT_NO_DELTA_CACHE
5 #CFLAGS += -DGOT_OBJ_CACHE_DEBUG
6 #CFLAGS += -DGOT_DELTA_CACHE_DEBUG
7 #CFLAGS += -DGOT_DIFF_NO_MMAP
9 .if "${GOT_RELEASE}" == "Yes"
10 PREFIX ?= /usr/local
11 BINDIR ?= ${PREFIX}/bin
12 LIBEXECDIR ?= ${PREFIX}/libexec
13 MANDIR ?= ${PREFIX}/man/man
14 .else
15 CFLAGS += -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
16 CFLAGS += -Wwrite-strings -Wunused-variable
17 PREFIX ?= ${HOME}
18 BINDIR ?= ${PREFIX}/bin
19 LIBEXECDIR ?= ${BINDIR}
21 BINOWN ?= ${USER}
22 .if !defined(BINGRP)
23 BINGRP != id -g -n
24 .endif
26 .if defined(PROFILE)
27 CPPFLAGS += -DPROFILE
28 DEBUG = -O0 -pg -g -static
29 .else
30 DEBUG = -O0 -g
31 .endif
33 .endif