summary refs log tree commit diff
path: root/Makefile
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 /Makefile
parentMove ARRAY_LEN to database.h (diff)
downloadlitterbox-be0dd7ef9ded546220c397a64f47ebfd852955b4.tar.gz
litterbox-be0dd7ef9ded546220c397a64f47ebfd852955b4.zip
Link litterbox with -ltls
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
 
033804509830a45584211&follow=1'>Use hilex for bin HTMLJune McEnroe 2021-01-12Don't output a pre in hilex by defaultJune McEnroe 2021-01-12Move hilex out of hilex directoryJune McEnroe 2021-01-12Consolidate hilex formatters into hilex.cJune McEnroe 2021-01-12Remove hacky tagging from hilexJune McEnroe 2021-01-12Add htagml -iJune McEnroe 2021-01-12Render tag index in HTMLJune McEnroe 2021-01-12Add htagml -xJune McEnroe 2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe 2021-01-12Split fields by tab onlyJune McEnroe 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe