X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=1016cf88f18efa9a101da4c509a825728cd3261e;hb=3d1fee1c4b8d13f0d3eebb3cc28bcb790e4fe18d;hp=ee636fe492e42cb5d6294c94e5bf5d945f2856dc;hpb=e79ce53d43d22b70072086c0e6c6cbbc6e08e2e3;p=checkmail.git diff --git a/Makefile b/Makefile index ee636fe..1016cf8 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,40 @@ +# 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.2 -YEAR=2005 +VERSION=1.8 +YEAR=2014 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` rm -f cm log + rm -rf maint/dist distclean: clean