aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}