aboutsummaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..4614858
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,14 @@
+# See LICENSE file for copyright and license details.
+
+PREFIX = /usr/local
+
+CC = cc
+SRC != find src -name "*.c"
+OBJ = ${SRC:.c=.o}
+
+LIBNAME = libutils
+LIBVER = 0.0.1
+
+CFLAGS = -Wall --std=c99 -pedantic ${OPT} -DLIBVER=\"${LIBVER}\"
+
+PKG_CONFIG_PATH != pkg-config --variable pc_path pkg-config | sed -E "s|.*(${PREFIX}[^:]*)[:].*|\1|g"