From 797b859c8e664612d4c09ef133fda9036b021628 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 30 Aug 2008 13:28:53 +0000 Subject: [PATCH] add pointer support to LIB_NO_UI case --- xwords4/linux/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xwords4/linux/Makefile b/xwords4/linux/Makefile index 6feb48568..78e5f6895 100644 --- a/xwords4/linux/Makefile +++ b/xwords4/linux/Makefile @@ -54,6 +54,7 @@ DEFINES += $(DO_CURSES) $(DO_GTK) $(SVNDEF) ifdef LIB_NO_UI TARGET=$(PLATFORM)/libxwords.so.0 +POINTER_SUPPORT = -DPOINTER_SUPPORT else TARGET=$(PLATFORM)/xwords endif @@ -146,10 +147,13 @@ endif ifneq (,$(findstring DPLATFORM_GTK,$(DEFINES))) LIBS += `pkg-config --libs gtk+-2.0` - CFLAGS += `pkg-config --cflags gtk+-2.0` -DPOINTER_SUPPORT \ + CFLAGS += `pkg-config --cflags gtk+-2.0` \ -DGDK_DISABLE_DEPRECATED + POINTER_SUPPORT = -DPOINTER_SUPPORT endif +CFLAGS += $(POINTER_SUPPORT) + ifneq (,$(findstring DPLATFORM_NCURSES,$(DEFINES))) LIBS += $(OE_LIBDIR) -lncurses endif