aboutsummaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-01 11:16:23 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-01 11:16:23 +0200
commit18d52cd2c6846089350132109e94f3266227d1e9 (patch)
tree9531e24e1214aaaa793d715ed3675ef3f8fd1f4c /config.mk
parentf7f8d17c4a9590fea09120b08c67fcdb0272fd16 (diff)
downloadlog-18d52cd2c6846089350132109e94f3266227d1e9.tar.gz
log-18d52cd2c6846089350132109e94f3266227d1e9.zip
Add script to generate CFLAGS
CLFGAS will be generated based on the OS categories (at the moment, only GNU and BSD).
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 2d963aa..498aeb7 100644
--- a/config.mk
+++ b/config.mk
@@ -9,6 +9,7 @@ OBJ = ${SRC:.c=.o}
LIBNAME = liblog
LIBVER = 0.0.0-a1
-CFLAGS = -Wall -ansi --std=c89 -pedantic ${OPT} -DLIBVER=\"${LIBVER}\"
+CFLAGS != scripts/cflags.sh
+CFLAGS += -Wall -ansi --std=c89 -pedantic ${OPT} -DLIBVER=\"${LIBVER}\"
PKG_CONFIG_PATH != pkg-config --variable pc_path pkg-config | sed -E "s|.*(${PREFIX}[^:]*)[:].*|\1|g"