aboutsummaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-11 17:25:52 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-11 17:25:52 +0200
commitf58400c634eea6f865db8486e7e174f67bb555ce (patch)
tree16dd706e8a33bd01832aea7c94eafb6637ced82c /config.mk
parentc3a38bdbd9e08ba631f34faf408cfac8171dd725 (diff)
downloadstring2-f58400c634eea6f865db8486e7e174f67bb555ce.tar.gz
string2-f58400c634eea6f865db8486e7e174f67bb555ce.zip
Change the way how to build this library
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk18
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"