aboutsummaryrefslogtreecommitdiff
path: root/config.mk
blob: 57b774d8c97b963cf569ce400757c78d4959fba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PREFIX  = /usr/local
BINDIR  = ${PREFIX}/bin
MANPREFIX = ${PREFIX}/share/man

AR      ?= ar
CC      ?= cc
RANLIB  ?= ranlib
RM      ?= rm -f
YACC    ?= yacc


# You can uncomment the latter if you aren't using libtls-bearssl. If you
# aren't linking statically, '-ltls' should be suffice.
TLSLIB    = `pkgconf --static --libs libtls`

# You can replace the following to 'lib/libz/libz.a' in order to build with the
# in-source zlib.
ZLIB      = -lz

# If fts is available on your system, we need to disable building it here.
# Change with 1 if you are using musl-fts, 2 if you are using glibc.
FTS=0

CFLAGS  += -Wall -Wno-pointer-sign -Wno-maybe-uninitialized \
	  -Wno-attributes -I${PWD}/includedir \
	  -D 'DEF_WEAK(n)=_Static_assert(1, "")' \
	  -idirafter ${PWD}/include \
	  -idirafter ${PWD}/sys \
	  -idirafter ${PWD}/lib/libutil \
	  -idirafter ${PWD}/lib/libcrypto

# If you are using a less implementation with tags support, uncomment
# the following.
# CFLAGS += -DHAVE_LESS_T