]> mj.ucw.cz Git - checkmail.git/blobdiff - Makefile
Use libncursesw, because UTF-8 does not work otherwise.
[checkmail.git] / Makefile
index 11106e0501eacbfba98ba7372f5232ef3bbc32d1..5b897b1b52a391c7e777136dc6a833732281b967 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,18 @@
+# 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