2020-04-29 16:37:20 +02:00
|
|
|
|
|
|
|
VERSION="0.3"
|
|
|
|
|
|
|
|
# paths
|
|
|
|
PREFIX = /usr/local
|
|
|
|
MANPREFIX = ${PREFIX}/share/man
|
|
|
|
|
|
|
|
# includes and libs
|
|
|
|
INCS = -I. -I/usr/include
|
|
|
|
|
|
|
|
# BSD
|
|
|
|
#LIBS = -L/usr/lib -lc
|
|
|
|
# Linux
|
|
|
|
LIBS = -L/usr/lib -lc -lbsd
|
|
|
|
|
|
|
|
# flags
|
2020-04-29 19:11:34 +02:00
|
|
|
# Linux
|
|
|
|
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=1
|
|
|
|
# BSD
|
|
|
|
#CPPFLAGS = -DVERSION=\"${VERSION}\"
|
|
|
|
|
2020-04-29 16:37:20 +02:00
|
|
|
CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS}
|
|
|
|
LDFLAGS += -g ${LIBS}
|
|
|
|
|
|
|
|
# compiler and linker
|
|
|
|
# CC = cc
|
|
|
|
|