+# Define if you want support for wide characters (needs libncursesw)
+CONFIG_WIDE_CURSES=1
+
#DEBUG=-ggdb
CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline $(DEBUG) -std=gnu99 -DVERSION=$(VERSION) -DYEAR=$(YEAR)
+
+ifdef CONFIG_WIDE_CURSES
+LDFLAGS=-lncursesw
+CFLAGS+=-DCONFIG_WIDE_CURSES=1
+else
LDFLAGS=-lncurses
+endif
-VERSION=1.0
-YEAR=2007
+VERSION=1.1
+YEAR=2008
all: cm