From f58400c634eea6f865db8486e7e174f67bb555ce Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Thu, 11 May 2023 17:25:52 +0200 Subject: Change the way how to build this library --- config.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 config.mk (limited to 'config.mk') 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" -- cgit v1.2.3