1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-25 12:36:11 +03:00

Allow non-standard homebrew location for boost and ncurses linking

This commit is contained in:
Rob Warner 2017-01-04 15:38:37 -05:00
parent 60d0813704
commit a680d419e7

View File

@ -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