X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=ca9c60f4c1db23eca977a9fd8611a0993f6a907e;hb=22f0395ba26b3e9961e2beab323dc1c7a5aa93e7;hp=e8ebb90c97e2243d05e648ad350271963395340b;hpb=6862b6b61314051c5ae7c05ef61eb6f301b89226;p=checkmail.git diff --git a/Makefile b/Makefile index e8ebb90..ca9c60f 100644 --- 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.11 +YEAR=2018 all: cm