From 16d9e30dd7fa052bd7e6dd37927d7f27bec90ef1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 19 Oct 2005 00:10:02 +0000 Subject: * Compile tests only when --enable-tests was specified on the configure command line * Build compat layers only when --enable-compat-{howl,libdns_sd} was passed to configure * drop avahi_strlcpy() to reduce our code/API size * replace getifname() with if_indextoname in avahi-dnsconfd * declare environ if needed in avahi-dnsconfd * drop some useless definitions like AVAHI_PUBLISH_NULL = 0 git-svn-id: file:///home/lennart/svn/public/avahi/trunk@819 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- examples/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples') diff --git a/examples/Makefile.am b/examples/Makefile.am index 2a3d48e..92cdccd 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -19,9 +19,11 @@ AM_CFLAGS=-I$(top_srcdir) +if ENABLE_TESTS noinst_PROGRAMS = \ core-publish-service \ core-browse-services +endif core_publish_service_SOURCES = core-publish-service.c core_publish_service_CFLAGS = $(AM_CFLAGS) @@ -33,10 +35,13 @@ core_browse_services_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi if HAVE_DBUS +if ENABLE_TESTS noinst_PROGRAMS += \ client-publish-service \ client-browse-services +endif + client_publish_service_SOURCES = client-publish-service.c client_publish_service_CFLAGS = $(AM_CFLAGS) client_publish_service_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la @@ -47,8 +52,11 @@ client_browse_services_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la .. if HAVE_GLIB +if ENABLE_TESTS noinst_PROGRAMS += \ glib-integration +endif + glib_integration_SOURCES = glib-integration.c glib_integration_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS) glib_integration_LDADD = $(AM_LDADD) $(GLIB20_LIBS) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la ../avahi-glib/libavahi-glib.la -- cgit