Add Linux glibc way of things.

master
Christoph Lohmann 2020-04-29 19:11:34 +02:00
parent dfe08ef1dd
commit e1ccb875a3
1 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,11 @@ INCS = -I. -I/usr/include
LIBS = -L/usr/lib -lc -lbsd
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\"
# Linux
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=1
# BSD
#CPPFLAGS = -DVERSION=\"${VERSION}\"
CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS}
LDFLAGS += -g ${LIBS}