diff options
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..2ecd96c --- /dev/null +++ b/config.mk @@ -0,0 +1,18 @@ +# See LICENSE file for copyright and license details. + +PREFIX = /usr/local + +CC = cc +SRC != find src -name "*.c" +OBJ = ${SRC:.c=.o} + +NAME = str2 +LIBNAME = lib${NAME} +LIBDSCR = String library (extension of the C standard string library) +LIBVER = 0.0.1 + +PC_FILE = ${NAME}.pc + +CFLAGS = -Wall --std=c99 -pedantic ${OPT} -DLIBVER=\"${LIBVER}\" + +PKG_CONFIG_PATH != pkg-config --variable pc_path pkg-config | sed -E "s|.*(/usr/local[^:]*)[:].*|\1|g" |