From: Martin Mares Date: Sun, 18 Jul 2010 14:03:18 +0000 (+0200) Subject: Allow `make CONFIG_X11=0' X-Git-Tag: v1.4~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ac3c05c260e3dacb603600f96d99ee408bb00ea2;p=checkmail.git Allow `make CONFIG_X11=0' --- diff --git a/Makefile b/Makefile index 2194f13..4e9d558 100644 --- a/Makefile +++ b/Makefile @@ -7,14 +7,14 @@ CONFIG_X11=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 +ifeq ($(CONFIG_WIDE_CURSES),1) LDFLAGS=-lncursesw CFLAGS+=-DCONFIG_WIDE_CURSES=1 else LDFLAGS=-lncurses endif -ifdef CONFIG_X11 +ifeq ($(CONFIG_X11),1) LDFLAGS+=-lX11 CFLAGS+=-DCONFIG_X11=1 endif