From 0bb46c896827949a5cb18c3b1d84a4da502d0803 Mon Sep 17 00:00:00 2001 From: Jimmy Thrasher Date: Wed, 2 Apr 2014 20:54:27 -0400 Subject: [PATCH] Detect Darwin in the Makefile and plan accordingly --- src/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 40af3ce8..7ff4eb00 100644 --- a/src/Makefile +++ b/src/Makefile @@ -10,15 +10,24 @@ sharedir := $(DESTDIR)$(PREFIX)/share/kak docdir := $(DESTDIR)$(PREFIX)/share/doc/kak CXXFLAGS += -std=gnu++11 -g -Wall -Wno-reorder -Wno-sign-compare -pedantic -LIBS += -lncursesw -os := $(shell uname -o) +os := $(shell uname) + +ifeq ($(os),Darwin) + LIBS += -lncurses +else + LIBS += -lncursesw +endif + ifeq ($(os),Cygwin) LIBS += -lboost_regex-mt +else ifeq ($(os),Darwin) + LIBS += -lboost_regex-mt else LIBS += -lboost_regex endif + debug ?= yes ifeq ($(debug),yes) CXXFLAGS += -DKAK_DEBUG