aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 37dfbe5..8cb6a52 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -9,10 +9,12 @@ CFLAGS += -DVERSION='"$(VERSION)"' -DLIB='"$(LIB)"'
TARGETS := xenlog xenscreen xenscreenrc
BUILD_GTK := xenwatch mdns-browser
BUILD_MDNS := mdns-publish-xendom
+BUILD_VNC := vnc-client
NEEDS_XENSTORE := xenlog xenscreen xenwatch mdns-publish-xendom
-NEEDS_GTK := xenwatch mdns-browser
+NEEDS_GTK := xenwatch mdns-browser vnc-client
NEEDS_MDNS := xenwatch mdns-browser mdns-publish-xendom
+NEEDS_VNC := xenwatch vnc-client
# default target
all: build
@@ -27,6 +29,7 @@ define make-config
LIB := $(LIB)
HAVE_GTK := $(call ac_pkg_config,gtk+-x11-2.0)
HAVE_AVAHI := $(call ac_pkg_config,avahi-glib)
+HAVE_VNCCLIENT := $(call ac_lib,rfbGetClient,vncclient,-lz -ljpeg)
endef
# gtk stuff
@@ -34,6 +37,11 @@ ifeq ($(HAVE_GTK),yes)
$(NEEDS_GTK) : CFLAGS += -Wno-strict-prototypes
$(NEEDS_GTK) : pkglst += gtk+-x11-2.0
TARGETS += $(BUILD_GTK)
+ ifeq ($(HAVE_VNCCLIENT),yes)
+ TARGETS += $(BUILD_VNC)
+ $(NEEDS_VNC) : CFLAGS += -DHAVE_VNC=1
+ $(NEEDS_VNC) : LDLIBS += -lvncclient -lz -ljpeg
+ endif
endif
# avahi stuff
@@ -78,9 +86,10 @@ realclean distclean: clean
xenlog: xenlog.o xenstore.o
xenscreen: xenscreen.o xenstore.o apps.o
xenwatch: xenwatch.o xs_view.o xs_store.o xd_view.o xd_store.o \
- apps.o apps-x11.o tcp.o mdns.o
+ apps.o apps-x11.o tcp.o mdns.o vnc.o x11.o
mdns-browser: mdns-browser.o mdns.o apps.o apps-x11.o
mdns-publish-xendom: mdns-publish-xendom.o
+vnc-client: vnc-client.o vnc.o x11.o
xenscreenrc: xenscreen
./xenscreen -b > $@