aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-04 00:59:52 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-04 00:59:52 +0100
commitd204cf63a346701431139eab97c8374a998eca56 (patch)
treed869ed1caf104828f26c3d09c82a757687c1584d
parent87d65cd5e77f09d16dca099feb21d1bc8fcef0ee (diff)
downloadlog-d204cf63a346701431139eab97c8374a998eca56.tar.gz
log-d204cf63a346701431139eab97c8374a998eca56.zip
Separate libs declarations from targets
-rw-r--r--Makefile4
-rw-r--r--libs.config.mk11
-rw-r--r--libs.target.mk (renamed from libs.mk)10
3 files changed, 14 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 6e02b4d..a3cd0cf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
# See LICENSE file for copyright and license details.
-include libs.mk
+include libs.config.mk
CC = cc
SRC != find src -name "*.c"
@@ -40,3 +40,5 @@ clean:
tests: all
cd test && make clean tests
+
+include libs.target.mk
diff --git a/libs.config.mk b/libs.config.mk
new file mode 100644
index 0000000..606718f
--- /dev/null
+++ b/libs.config.mk
@@ -0,0 +1,11 @@
+# See LICENSE file for copyright and license details.
+
+LIBDIR = lib
+
+LIBSTR_VER = 0.0.0-a1
+LIBSTR = cstr-${LIBSTR_VER}
+LIBSTR_INC = -I${LIBDIR}/${LIBSTR}/src
+LIBSTR_LIB = -L${LIBDIR}/${LIBSTR} -l:libstr.a
+
+LIBINC = ${LIBSTR_INC}
+LIBS = ${LIBSTR_LIB}
diff --git a/libs.mk b/libs.target.mk
index fc59935..fa300e3 100644
--- a/libs.mk
+++ b/libs.target.mk
@@ -1,15 +1,5 @@
# See LICENSE file for copyright and license details.
-LIBDIR = lib
-
-LIBSTR_VER = 0.0.0-a1
-LIBSTR = cstr-${LIBSTR_VER}
-LIBSTR_INC = -I${LIB_DIR}/${LIBSTR}/src
-LIBSTR_LIB = -L${LIB_DIR}/${LIBSTR} -l:libstr.a
-
-LIBINC = ${LIBSTR_INC}
-LIBS = ${LIBSTR_LIB}
-
clean-libs:
rm -rf ${LIBDIR}