about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-01 12:42:33 -0400
committerJune McEnroe <june@causal.agency>2020-05-01 12:42:33 -0400
commitd2e5ddb52415c99a300d843347b52a9bd32c63a1 (patch)
treebe6fbf5cee4fb3d3a6087e2d47dcf7a21e97dae8
parentExpand documentation (diff)
downloadbubger-d2e5ddb52415c99a300d843347b52a9bd32c63a1.tar.gz
bubger-d2e5ddb52415c99a300d843347b52a9bd32c63a1.zip
Set up Makefile for FreeBSD
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1ae3fb2..978af40 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,12 @@
 PREFIX = /usr/local
 SHAREDIR = ${PREFIX}/share
 MANDIR = ${SHAREDIR}/man
+LIBRESSL_PREFIX = /usr/local
 
 CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
+# XXX: avoid iconv.h from libiconv
+CFLAGS += -idirafter ${LIBRESSL_PREFIX}/include
+LDFLAGS += -L${LIBRESSL_PREFIX}/lib
 LDLIBS = -ltls
 
 -include config.mk