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.unix18
1 files changed, 15 insertions, 3 deletions
diff --git a/crawl-ref/source/makefile.unix b/crawl-ref/source/makefile.unix
index f67953792c..199bc302b3 100644
--- a/crawl-ref/source/makefile.unix
+++ b/crawl-ref/source/makefile.unix
@@ -17,8 +17,9 @@ DELETE = rm -f
COPY = cp
OS_TYPE = UNIX
-# Include path for curses or ncurses.
-INCLUDES = -I/usr/include/ncurses
+# Change this to y if you want to use Unicode glyphs in the map, and you have
+# libncursesw available.
+UNICODE_GLYPHS = n
# If you have lex and yacc, set DOYACC to y (lowercase y).
DOYACC := y
@@ -44,6 +45,17 @@ INSTALLDIR := /usr/games
LEX := flex
YACC := bison -y
+ifeq ($(UNICODE_GLYPHS),y)
+# Include path for (n)curses with Unicode support.
+INCLUDES = -I/usr/include/ncursesw
+LIBCURS = ncursesw
+EXTRA_FLAGS += -DUNICODE_GLYPHS
+else
+# Include path for curses or ncurses (non-Unicode).
+INCLUDES = -I/usr/include/ncurses
+LIBCURS = ncurses
+endif
+
ifeq ($(LUASRC),)
LUASRC := util/lua/src
endif
@@ -82,7 +94,7 @@ EXTRA_INCLUDES += -I$(SQLSRC)
EXTRA_DEPENDS += $(FSQLLIBA)
endif
-LIB = -lncurses -L$(LUASRC) -l$(LUALIB) $(LIBDBM)
+LIB = -l$(LIBCURS) -L$(LUASRC) -l$(LUALIB) $(LIBDBM)
INCLUDES := $(INCLUDES) -Iutil -I. -I$(LUASRC) $(EXTRA_INCLUDES)