From 72c34c298ea65c3b4c495d563fa43427602d17ea Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 5 Sep 2019 02:39:41 -0400 Subject: Use CURL_PREFIX to set flags --- bin/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1