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