]> mj.ucw.cz Git - checkmail.git/blobdiff - Makefile
Released version 1.5
[checkmail.git] / Makefile
index e8ebb90c97e2243d05e648ad350271963395340b..163086dd6e1e7202c926ea86e8ccfcaa4817db23 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,26 @@
+# Define if you want support for wide characters (needs libncursesw)
+CONFIG_WIDE_CURSES=1
+
+# Define if you want XKB led controls and on-screen display via OSDD
+CONFIG_X11=1
+
 #DEBUG=-ggdb
 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline $(DEBUG) -std=gnu99 -DVERSION=$(VERSION) -DYEAR=$(YEAR)
+
+ifeq ($(CONFIG_WIDE_CURSES),1)
+LDFLAGS=-lncursesw
+CFLAGS+=-DCONFIG_WIDE_CURSES=1
+else
 LDFLAGS=-lncurses
+endif
+
+ifeq ($(CONFIG_X11),1)
+LDFLAGS+=-lX11
+CFLAGS+=-DCONFIG_X11=1
+endif
 
-VERSION=0.4
-YEAR=2006
+VERSION=1.5
+YEAR=2014
 
 all: cm