summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-16 21:13:54 -0500
committerJune McEnroe <june@causal.agency>2019-12-16 21:13:54 -0500
commitbe0dd7ef9ded546220c397a64f47ebfd852955b4 (patch)
tree4e4154331a57fe3d47af8962e6d693ae76aae8dc
parentMove ARRAY_LEN to database.h (diff)
downloadlitterbox-be0dd7ef9ded546220c397a64f47ebfd852955b4.tar.gz
litterbox-be0dd7ef9ded546220c397a64f47ebfd852955b4.zip
Link litterbox with -ltls
Diffstat (limited to '')
-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