VERSION = 0.2.4 PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man # need -D_GNU_SOURCE when compiling on Linux OS != uname -s GNUSRC != if [ "${OS}" = "Linux" ]; then \ printf "%s" "-D_GNU_SOURCE"; \ fi # some implementations of make do not accept `!=`, # so if it triggers any errors just remove this block # and add the flag manually CFLAGS = -std=c99 -Wall -lpthread -O2 ${GNUSRC} LDFLAGS = CC = cc