summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-09-05 02:39:41 -0400
committerJune McEnroe <june@causal.agency>2019-09-05 02:39:41 -0400
commitdc336eb40bc16ee4f45bc6ad56329cf099e17729 (patch)
tree22a4db83be0706e9a475b9166cf0f63bfde989e7
parentAdd title (diff)
downloadsrc-dc336eb40bc16ee4f45bc6ad56329cf099e17729.tar.gz
src-dc336eb40bc16ee4f45bc6ad56329cf099e17729.zip
Use CURL_PREFIX to set flags
Diffstat (limited to '')
-rw-r--r--bin/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/Makefile b/bin/Makefile
index 1b038ea6..a07eb956 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -4,6 +4,11 @@ MANDIR = ${PREFIX}/share/man
 CFLAGS += -Wall -Wextra -Wpedantic
 LDLIBS = -lm -lutil -lz
 
+CURL_PREFIX = /usr/local
+CFLAGS_curl = ${CFLAGS} -I${CURL_PREFIX}/include
+LDFLAGS_curl = ${LDFLAGS} -L${CURL_PREFIX}/lib
+LDLIBS_curl = ${LDLIBS} -lcurl
+
 LIBRESSL_PREFIX = /usr/local
 CFLAGS_tls = ${CFLAGS} -I${LIBRESSL_PREFIX}/include
 LDFLAGS_tls = ${LDFLAGS} -L${LIBRESSL_PREFIX}/lib
@@ -79,7 +84,7 @@ relay: relay.c
 	${CC} ${CFLAGS_tls} ${LDFLAGS_tls} $@.c ${LDLIBS_tls} -o $@
 
 title: title.c
-	${CC} ${CFLAGS} ${LDFLAGS} $@.c ${LDLIBS} -lcurl -o $@
+	${CC} ${CFLAGS_curl} ${LDFLAGS_curl} $@.c ${LDLIBS_curl} -o $@
 
 # Headers