From 48d5e5b5a90a63c77f97d79379d88b0613cb008a Mon Sep 17 00:00:00 2001 From: Rob Warner Date: Thu, 5 Jan 2017 09:30:58 -0500 Subject: [PATCH] Use PREFIX to locate ncurses and boost on macOS --- src/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 992972b7..4f9be7ba 100644 --- a/src/Makefile +++ b/src/Makefile @@ -38,9 +38,8 @@ os := $(shell uname) ifeq ($(os),Darwin) LIBS += -lncurses -lboost_regex-mt - brewdir := $(shell brew --prefix) - CPPFLAGS += -I$(brewdir)/opt/ncurses/include -I$(brewdir)/opt/boost/include - LDFLAGS += -L$(brewdir)/opt/ncurses/lib -L$(brewdir)/opt/boost/lib + CPPFLAGS += -I$(PREFIX)/opt/ncurses/include -I$(PREFIX)/opt/boost/include + LDFLAGS += -L$(PREFIX)/opt/ncurses/lib -L$(PREFIX)/opt/boost/lib else ifeq ($(os),FreeBSD) LIBS += -ltinfow -lncursesw -lboost_regex CPPFLAGS += -I/usr/local/include