diff options
author | kraxel <kraxel> | 2006-01-24 16:36:21 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2006-01-24 16:36:21 +0000 |
commit | 5874585e61bbeec0f63d741d8051da62dd6a8009 (patch) | |
tree | 98e15c88c4ca5bec5e4c7784f0ff5bb1adc671ef /GNUmakefile | |
parent | 27a809254346cb8cb6b814ffa125074806f97f00 (diff) | |
download | xenwatch-5874585e61bbeec0f63d741d8051da62dd6a8009.tar.gz |
- some experimental mdns bits
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile index d8cff65..76ff4e2 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -6,8 +6,8 @@ include mk/Variables.mk CFLAGS += -DVERSION='"$(VERSION)"' # build -TARGETS := xenlog -GTK_TARGETS := xenwatch +TARGETS := xenlog +GTK_TARGETS := xenwatch # default target all: build @@ -21,12 +21,17 @@ include mk/Autoconf.mk define make-config LIB := $(LIB) HAVE_GTK := $(call ac_pkg_config,gtk+-x11-2.0) +HAVE_AVAHI := $(call ac_pkg_config,avahi-glib) endef # gtk stuff ifeq ($(HAVE_GTK),yes) - $(GTK_TARGETS) : CFLAGS += $(shell pkg-config --cflags gtk+-x11-2.0) -Wno-strict-prototypes - $(GTK_TARGETS) : LDLIBS += $(shell pkg-config --libs gtk+-x11-2.0) + pkgs := gtk+-x11-2.0 + ifeq ($(HAVE_AVAHI),yes) + pkgs += avahi-glib avahi-client + endif + $(GTK_TARGETS) : CFLAGS += $(shell pkg-config --cflags $(pkgs)) -Wno-strict-prototypes + $(GTK_TARGETS) : LDLIBS += $(shell pkg-config --libs $(pkgs)) TARGETS += $(GTK_TARGETS) endif @@ -56,7 +61,7 @@ realclean distclean: clean ############################################# -xenwatch: xenwatch.o xs_view.o xs_store.o xd_view.o xd_store.o tcp.o +xenwatch: xenwatch.o xs_view.o xs_store.o xd_view.o xd_store.o tcp.o mdns.o xenlog: xenlog.o |