1# This file is part of avahi.
2#
3# avahi is free software; you can redistribute it and/or modify it
4# under the terms of the GNU Lesser General Public License as
5# published by the Free Software Foundation; either version 2 of the
6# License, or (at your option) any later version.
7#
8# avahi is distributed in the hope that it will be useful, but WITHOUT
9# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
11# License for more details.
12#
13# You should have received a copy of the GNU Lesser General Public
14# License along with avahi; if not, write to the Free Software
15# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16# USA.
17
18AM_CFLAGS=-I$(top_srcdir)
19
20if ENABLE_TESTS
21noinst_PROGRAMS = \
22	core-publish-service \
23	core-browse-services
24endif
25
26core_publish_service_SOURCES = core-publish-service.c
27core_publish_service_CFLAGS = $(AM_CFLAGS)
28core_publish_service_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la
29
30core_browse_services_SOURCES = core-browse-services.c
31core_browse_services_CFLAGS = $(AM_CFLAGS)
32core_browse_services_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la
33
34if HAVE_DBUS
35if ENABLE_TESTS
36
37noinst_PROGRAMS += \
38	client-publish-service \
39	client-browse-services
40endif
41
42client_publish_service_SOURCES = client-publish-service.c
43client_publish_service_CFLAGS = $(AM_CFLAGS)
44client_publish_service_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la
45
46client_browse_services_SOURCES = client-browse-services.c
47client_browse_services_CFLAGS = $(AM_CFLAGS)
48client_browse_services_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la
49
50if HAVE_GLIB
51
52if ENABLE_TESTS
53noinst_PROGRAMS += \
54	glib-integration
55endif
56
57glib_integration_SOURCES = glib-integration.c
58glib_integration_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
59glib_integration_LDADD = $(AM_LDADD) $(GLIB20_LIBS) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la ../avahi-glib/libavahi-glib.la
60
61endif
62
63endif
64