4 MANPREFIX = ${PREFIX}/share/man
6 # need -D_GNU_SOURCE when compiling on Linux
9 GNUSRC != if [ "${OS}" = "Linux" ]; then \
10 printf "%s" "-D_GNU_SOURCE"; \
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
16 CFLAGS = -std=c99 -Wall -lpthread -O2 ${GNUSRC}