From a680d419e7fd6b2083753b4ff42cd00d04003653 Mon Sep 17 00:00:00 2001 From: Rob Warner Date: Wed, 4 Jan 2017 15:38:37 -0500 Subject: [PATCH] Allow non-standard homebrew location for boost and ncurses linking --- src/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 82d2b37d..992972b7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -38,8 +38,9 @@ os := $(shell uname) ifeq ($(os),Darwin) LIBS += -lncurses -lboost_regex-mt - CPPFLAGS += -I/usr/local/opt/ncurses/include -I/usr/local/opt/boost/include - LDFLAGS += -L/usr/local/opt/ncurses/lib -L/usr/local/opt/boost/lib + 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 else ifeq ($(os),FreeBSD) LIBS += -ltinfow -lncursesw -lboost_regex CPPFLAGS += -I/usr/local/include