From 74673937256ea22762c04cad1ce1ebd9782931d9 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Sat, 4 Feb 2023 00:45:27 +0100 Subject: Add to cflags and ldflags references to liraries --- Makefile | 4 ++-- libs.mk | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 libs.mk 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} -- cgit v1.2.3