Comment away -Wextra: it produces too many false positives for
regular use. Aim for ISO C instead of GNU (still 99 vintage).
strdup is just too handy though: bring it in from POSIX 2008.
Curses sound uses pthreads, compile accordingly.
export CFLAGS
# Enable compiler warnings. This is an absolute minimum.
-CFLAGS += -Wall -Wextra -std=gnu99
+CFLAGS += -Wall -std=c99 #-Wextra
+
+# strdup, strndup
+CFLAGS += -D_POSIX_C_SOURCE=200809L
# Define your optimization flags.
#
ifeq ($(SOUND), ao)
LDFLAGS += -lao -ldl -lpthread -lm -lsndfile -lvorbisfile -lmodplug -lsamplerate
+ CFLAGS += -pthread
else ifeq ($(SOUND), none)
CFLAGS += -DNO_SOUND
else ifndef SOUND