-VERSION = 0.2.1
+VERSION = 0.2.3
-PREFIX = /usl/local
+TARGET = ust
-# need -D_GNU_SOURCE wehn compiling on Linux
+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 -pthread -O2 ${GNUSRC}
+CFLAGS = -std=c99 -Wall -lpthread -O2 ${GNUSRC}
LDFLAGS =
CC = cc