Update Makefile for OSX build with homebrew ncurses

This adds compilation flags to include the homebrew installed ncurses 6.0 library during compilation.
This commit is contained in:
Robert J. Ennis 2016-03-10 15:07:50 +01:00
parent fcd3437fac
commit 7f648bcd06

View File

@ -37,6 +37,8 @@ os := $(shell uname)
ifeq ($(os),Darwin) ifeq ($(os),Darwin)
LIBS += -lncurses -lboost_regex-mt LIBS += -lncurses -lboost_regex-mt
CPPFLAGS += -I/usr/local/opt/ncurses/include
LDFLAGS += -L/usr/local/opt/ncurses/lib
else ifeq ($(os),FreeBSD) else ifeq ($(os),FreeBSD)
LIBS += -ltinfow -lncursesw -lboost_regex LIBS += -ltinfow -lncursesw -lboost_regex
CPPFLAGS += -I/usr/local/include CPPFLAGS += -I/usr/local/include