X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=examples%2FMakefile.am;h=dbb7f007dcd39c6d2684f4ea0330843d1fe94b72;hb=4cfd855eb3f148cfad74c562004a723d0a9862b7;hp=2a3d48e508e5c05a4d679da9dec642c93bab557d;hpb=80b2dc3f647384cce2a498efeb5e5ea85344635f;p=catta diff --git a/examples/Makefile.am b/examples/Makefile.am index 2a3d48e..dbb7f00 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,7 +1,5 @@ -# $Id$ -# # This file is part of avahi. -# +# # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the @@ -19,9 +17,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) @@ -31,12 +31,14 @@ core_browse_services_SOURCES = core-browse-services.c core_browse_services_CFLAGS = $(AM_CFLAGS) core_browse_services_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la - 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 +49,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