]> mj.ucw.cz Git - checkmail.git/blobdiff - Makefile
Updated maintainer scripts
[checkmail.git] / Makefile
index 9a26d0ac75ca0aba87f470c5b618bce59df82f53..edd5e8d467246c07083f88af24dd3281fed37c86 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,26 +1,33 @@
 # Define if you want support for wide characters (needs libncursesw)
 CONFIG_WIDE_CURSES=1
 
-# Define if you want XKB led controls
-CONFIG_X_LEDS=1
+# Define if you want XKB led controls and on-screen display via OSDD
+CONFIG_X11=1
+
+# Define if you want watching mail changes by inotify
+CONFIG_INOTIFY=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
+ifeq ($(CONFIG_WIDE_CURSES),1)
+LDLIBS=-lncursesw
 CFLAGS+=-DCONFIG_WIDE_CURSES=1
 else
-LDFLAGS=-lncurses
+LDLIBS=-lncurses
+endif
+
+ifeq ($(CONFIG_X11),1)
+LDLIBS+=-lX11
+CFLAGS+=-DCONFIG_X11=1
 endif
 
-ifdef CONFIG_X_LEDS
-LDFLAGS+=-lX11
-CFLAGS+=-DCONFIG_X_LEDS=1
+ifeq ($(CONFIG_INOTIFY),1)
+CFLAGS+=-DCONFIG_INOTIFY=1
 endif
 
-VERSION=1.3
-YEAR=2008
+VERSION=1.12
+YEAR=2023
 
 all: cm