]> mj.ucw.cz Git - checkmail.git/blobdiff - Makefile
release.pm: Make test compile command configurable
[checkmail.git] / Makefile
index 8a671c32d697e1ae80f85676a02157a35c4ddf81..2194f13e163a6c6a88403761c748349a8c9a0c86 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,35 @@
+# 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)
+
+ifdef CONFIG_WIDE_CURSES
+LDFLAGS=-lncursesw
+CFLAGS+=-DCONFIG_WIDE_CURSES=1
+else
 LDFLAGS=-lncurses
+endif
+
+ifdef CONFIG_X11
+LDFLAGS+=-lX11
+CFLAGS+=-DCONFIG_X11=1
+endif
 
-VERSION=0.2
-YEAR=2005
+VERSION=1.4
+YEAR=2010
 
 all: cm
 
-cm: cm.o util.o
+cm: cm.o util.o charset.o rfc822.o
 
-cm.o: cm.c clists.h util.h
+cm.o: cm.c clists.h util.h charset.h
 util.o: util.c util.h
+charset.o: charset.c util.h charset.h rfc822.h
+rfc822.o: rfc822.c util.h rfc822.h
 
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`