]> git.meshlink.io Git - catta/blob - examples/Makefile.am
dbb7f007dcd39c6d2684f4ea0330843d1fe94b72
[catta] / examples / Makefile.am
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
18 AM_CFLAGS=-I$(top_srcdir)
19
20 if ENABLE_TESTS
21 noinst_PROGRAMS = \
22         core-publish-service \
23         core-browse-services
24 endif
25
26 core_publish_service_SOURCES = core-publish-service.c
27 core_publish_service_CFLAGS = $(AM_CFLAGS)
28 core_publish_service_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la
29
30 core_browse_services_SOURCES = core-browse-services.c
31 core_browse_services_CFLAGS = $(AM_CFLAGS)
32 core_browse_services_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la
33
34 if HAVE_DBUS
35 if ENABLE_TESTS
36
37 noinst_PROGRAMS += \
38         client-publish-service \
39         client-browse-services
40 endif
41
42 client_publish_service_SOURCES = client-publish-service.c
43 client_publish_service_CFLAGS = $(AM_CFLAGS)
44 client_publish_service_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la
45
46 client_browse_services_SOURCES = client-browse-services.c
47 client_browse_services_CFLAGS = $(AM_CFLAGS)
48 client_browse_services_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la
49
50 if HAVE_GLIB
51
52 if ENABLE_TESTS
53 noinst_PROGRAMS += \
54         glib-integration
55 endif
56
57 glib_integration_SOURCES = glib-integration.c
58 glib_integration_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
59 glib_integration_LDADD = $(AM_LDADD) $(GLIB20_LIBS) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la ../avahi-glib/libavahi-glib.la
60
61 endif
62
63 endif