From a424583e26fb27eba2b6f31d54e95d8519173f6c Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Wed, 29 Apr 2020 16:37:20 +0200 Subject: [PATCH] Add config.mk. --- config.mk | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 config.mk diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..d484304 --- /dev/null +++ b/config.mk @@ -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 +