summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-03 19:03:49 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-03 19:03:49 +0100
commitc0e7975f62a08140af8b77991aaa2be105f17b49 (patch)
treeb757d30410cdd9122106e3d5b4291ef488c6ec4b /src/Makefile
parentcc591f015fe6ac598fef2c52046f6b790c632910 (diff)
parent43b395533fcf8ae34d702de6238b6039fe1fa821 (diff)
Merge remote-tracking branch 'jjthrash/osx-fixes'
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile13
1 files 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