X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=Makefile;h=074cb25e4d8150b675d6c7feb23ea688f91e0bf6;hb=c90422792b24b88bab8797ac6bb1e511c9ba0b79;hp=0c7ff67bc760bfa46858466d24379bbdafad0f72;hpb=60687231eb923234756020bf9d9cccd20551fd90;p=checkmail.git diff --git a/Makefile b/Makefile index 0c7ff67..074cb25 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,40 @@ -DEBUG=-ggdb -CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline $(DEBUG) -std=gnu99 +# 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=1.7 +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 + rm -f cm log + rm -rf maint/dist distclean: clean