improve OpenBSD pledge call
[ust.git] / config.mk
1 VERSION = 0.2.4
2
3 PREFIX = /usr/local
4 MANPREFIX = ${PREFIX}/share/man
5
6 # need -D_GNU_SOURCE when compiling on Linux
7 OS != uname -s
8
9 GNUSRC != if [ "${OS}" = "Linux" ]; then \
10 printf "%s" "-D_GNU_SOURCE"; \
11 fi
12 # some implementations of make do not accept `!=`,
13 # so if it triggers any errors just remove this block
14 # and add the flag manually
15
16 CFLAGS = -std=c99 -Wall -lpthread -O2 ${GNUSRC}
17 LDFLAGS =
18
19 CC = cc