From be0dd7ef9ded546220c397a64f47ebfd852955b4 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 16 Dec 2019 21:13:54 -0500 Subject: Link litterbox with -ltls --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') 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 -- cgit 1.4.1