summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile.unix
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/makefile.unix')
-rw-r--r--crawl-ref/source/makefile.unix9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/makefile.unix b/crawl-ref/source/makefile.unix
index 199bc302b3..298e249f6a 100644
--- a/crawl-ref/source/makefile.unix
+++ b/crawl-ref/source/makefile.unix
@@ -48,8 +48,17 @@ YACC := bison -y
ifeq ($(UNICODE_GLYPHS),y)
# Include path for (n)curses with Unicode support.
INCLUDES = -I/usr/include/ncursesw
+
+# Your ncurses library may include Unicode support, and you may not have a
+# separate libncursesw; in that case, change this line accordingly.
LIBCURS = ncursesw
EXTRA_FLAGS += -DUNICODE_GLYPHS
+
+# The standard ncurses library also supports Unicode on Mac OS/Darwin.
+ifeq ($(shell uname),Darwin)
+LIBCURS = ncurses
+endif
+
else
# Include path for curses or ncurses (non-Unicode).
INCLUDES = -I/usr/include/ncurses