diff options
author | 2023-02-04 00:59:52 +0100 | |
---|---|---|
committer | 2023-02-04 00:59:52 +0100 | |
commit | d204cf63a346701431139eab97c8374a998eca56 (patch) | |
tree | d869ed1caf104828f26c3d09c82a757687c1584d | |
parent | 87d65cd5e77f09d16dca099feb21d1bc8fcef0ee (diff) | |
download | log-d204cf63a346701431139eab97c8374a998eca56.tar.gz log-d204cf63a346701431139eab97c8374a998eca56.zip |
Separate libs declarations from targets
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | libs.config.mk | 11 | ||||
-rw-r--r-- | libs.target.mk (renamed from libs.mk) | 10 |
3 files changed, 14 insertions, 11 deletions
@@ -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} @@ -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} |