From ac3c05c260e3dacb603600f96d99ee408bb00ea2 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 18 Jul 2010 16:03:18 +0200 Subject: [PATCH] Allow `make CONFIG_X11=0' --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5