Add config.mk.

master
Christoph Lohmann 2020-04-29 16:37:20 +02:00
parent a20dcaafee
commit a424583e26
1 changed files with 23 additions and 0 deletions

23
config.mk Normal file
View File

@ -0,0 +1,23 @@
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
CPPFLAGS = -DVERSION=\"${VERSION}\"
CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS}
LDFLAGS += -g ${LIBS}
# compiler and linker
# CC = cc