summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ea50e6a..73df59d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
 CFLAGS += ${LIBS_PREFIX:%=-I%/include}
 LDFLAGS += ${LIBS_PREFIX:%=-L%/lib}
 LDLIBS = -lsqlite3
+LDLIBS_litterbox = -ltls
 
 BINS = litterbox unscoop
 
@@ -15,6 +16,9 @@ all: ${BINS}
 
 ${BINS:=.o}: database.h
 
+.o:
+	${CC} ${LDFLAGS} $< ${LDLIBS} ${LDLIBS_$@} -o $@
+
 tags: *.c *.h
 	ctags -w *.c *.h