summary refs log tree commit diff
diff options
context:
space:
mode:
-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
 
-0500'>2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe