X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=examples%2FMakefile.am;h=15718fe496b971d194118abe758ce4befc318916;hb=37d19f15523b6fe4d1fef2329abe421221b3d4b3;hp=fa264564b2a3ae90b92ff2319bf0af1aae01a598;hpb=5f48d06b012ec8326f6f1c38f11b0abe64a56878;p=catta diff --git a/examples/Makefile.am b/examples/Makefile.am index fa26456..15718fe 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 @@ -17,32 +15,18 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -AM_CFLAGS=-I$(top_srcdir) +AM_CFLAGS=-I$(top_srcdir)/include +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) -core_publish_service_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la +core_publish_service_LDADD = $(AM_LDADD) ../src/libavahi.la 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 - -noinst_PROGRAMS += \ - client-publish-service \ - client-browse-services -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 - -client_browse_services_SOURCES = client-browse-services.c -client_browse_services_CFLAGS = $(AM_CFLAGS) -client_browse_services_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la - -endif +core_browse_services_LDADD = $(AM_LDADD) ../src/libavahi.la