X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=Makefile;h=2194f13e163a6c6a88403761c748349a8c9a0c86;hb=2212530058d21fddd864e3f9419c1d26680b7fb6;hp=4e09ab4e53caa00691762a74c02ee87f8cb504e2;hpb=0d11f43580c21f74bd3359f47863881f997337fb;p=checkmail.git diff --git a/Makefile b/Makefile index 4e09ab4..2194f13 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +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 +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=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` - rm -f cm + rm -f cm log + rm -rf maint/dist distclean: clean