From 77ba4710208d465a1942881bcdda089ea2775ac0 Mon Sep 17 00:00:00 2001 From: Kylie McClain Date: Thu, 19 Nov 2015 20:09:24 -0500 Subject: [PATCH] Makefile: Allow for passing include/ncursesw path --- src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 91f51c5a..2fa82c8d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -24,6 +24,8 @@ deps := $(addprefix ., $(sources:.cc=$(suffix).d)) PREFIX ?= /usr/local DESTDIR ?= # root dir +NCURSESW_INCLUDE ?= /usr/include/ncursesw + bindir := $(DESTDIR)$(PREFIX)/bin sharedir := $(DESTDIR)$(PREFIX)/share/kak docdir := $(DESTDIR)$(PREFIX)/share/doc/kak @@ -46,7 +48,7 @@ else ifneq (,$(findstring CYGWIN,$(os))) LIBS += -lncursesw -lboost_regex -ldbghelp else LIBS += -lncursesw -lboost_regex - CPPFLAGS += -I/usr/include/ncursesw + CPPFLAGS += -I$(NCURSESW_INCLUDE) LDFLAGS += -rdynamic endif