summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 12ae05a..4c7b47d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,8 @@ ETCDIR = ${PREFIX}/etc
 LIBRESSL_PREFIX = /usr/local
 
 CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
-CFLAGS += -I${LIBRESSL_PREFIX}/include
-LDFLAGS += -L${LIBRESSL_PREFIX}/lib
+CFLAGS += ${LIBRESSL_PREFIX:%=-I%/include}
+LDFLAGS += ${LIBRESSL_PREFIX:%=-L%/lib}
 LDLIBS = -lcrypt -lcrypto -ltls
 
 BINS = calico pounce