aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-04 00:45:27 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-04 00:45:27 +0100
commit74673937256ea22762c04cad1ce1ebd9782931d9 (patch)
tree10703d5f21fda4fc241438e87f1820f4edf2ce30
parent53302a6f04dab80aa14043a72bd519597fb23dfb (diff)
downloadlog-74673937256ea22762c04cad1ce1ebd9782931d9.tar.gz
log-74673937256ea22762c04cad1ce1ebd9782931d9.zip
Add to cflags and ldflags references to liraries
-rw-r--r--Makefile4
-rw-r--r--libs.mk11
2 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1d756b8..3d7412e 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,8 @@ OBJ = ${SRC:.c=.o}
LIBNAME = liblog
-CFLAGS = -Wall -ansi --std=c89 -pedantic ${OPT}
-LDFLAGS =
+CFLAGS = -Wall -ansi --std=c89 -pedantic ${OPT} -I${LIBINC}
+LDFLAGS = ${LIBS}
dist:
diff --git a/libs.mk b/libs.mk
new file mode 100644
index 0000000..aab7554
--- /dev/null
+++ b/libs.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${LIB_DIR}/${LIBSTR}/src
+LIBSTR_LIB = -L${LIB_DIR}/${LIBSTR} -l:libstr.a
+
+LIBINC = ${LIBSTR_INC}
+LIBS = ${LIBSTR_LIB}