]> git.meshlink.io Git - catta/blob - avahi-compat-howl/Makefile.am
Merge remote branch 'origin/master-tx'
[catta] / avahi-compat-howl / 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 # This cool debug trap works on i386/gcc only
21 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
22
23 SUBDIRS = . samples
24
25 if HAVE_DBUS
26 if ENABLE_COMPAT_HOWL
27
28 avahi_compat_howldir=$(includedir)/avahi-compat-howl
29 avahi_compat_howl_rendezvousdir=$(avahi_compat_howldir)/rendezvous
30 avahi_compat_howl_corbydir=$(avahi_compat_howldir)/corby
31 avahi_compat_howl_discoverydir=$(avahi_compat_howldir)/discovery
32 avahi_compat_howl_saltdir=$(avahi_compat_howldir)/salt
33
34 avahi_compat_howl_HEADERS = \
35         include/howl.h
36
37 avahi_compat_howl_rendezvous_HEADERS = \
38         include/rendezvous/rendezvous.h \
39         include/rendezvous/text_record.h
40
41 avahi_compat_howl_corby_HEADERS = \
42         include/corby/message.h \
43         include/corby/object.h \
44         include/corby/orb.h \
45         include/corby/corby.h \
46         include/corby/channel.h \
47         include/corby/buffer.h
48
49 avahi_compat_howl_discovery_HEADERS = \
50         include/discovery/discovery.h \
51         include/discovery/text_record.h
52
53 avahi_compat_howl_salt_HEADERS = \
54         include/salt/socket.h \
55         include/salt/address.h \
56         include/salt/platform.h \
57         include/salt/signal.h \
58         include/salt/interface.h \
59         include/salt/salt.h \
60         include/salt/time.h \
61         include/salt/debug.h
62
63 HOWLHEADERS = \
64         $(avahi_compat_howl_HEADERS) \
65         $(avahi_compat_howl_rendezvous_HEADERS) \
66         $(avahi_compat_howl_corby_HEADERS) \
67         $(avahi_compat_howl_discovery_HEADERS) \
68         $(avahi_compat_howl_salt_HEADERS)
69
70 lib_LTLIBRARIES = libhowl.la
71
72 if ENABLE_TESTS
73 noinst_PROGRAMS = address-test text-test browse-domain-test
74 endif
75
76 libhowl_la_SOURCES = \
77         $(HOWLHEADERS) \
78         warn.c warn.h \
79         unsupported.c \
80         address.c \
81         text.c \
82         compat.c
83 libhowl_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
84 libhowl_la_LDFLAGS = $(AM_LDFLAGS)  -version-info $(LIBAVAHI_COMPAT_HOWL_VERSION_INFO) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la
85
86 address_test_SOURCES = \
87         $(HOWLHEADERS) \
88         address.c \
89         address-test.c \
90         warn.c warn.h
91 address_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
92 address_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la
93
94 text_test_SOURCES = \
95         $(HOWLHEADERS) \
96         text.c \
97         text-test.c \
98         warn.c warn.h
99 text_test_CFLAGS = $(AM_CFLAGS)  $(PTHREAD_CFLAGS) -I $(srcdir)/include
100 text_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la
101
102 browse_domain_test_SOURCES = \
103         $(HOWLHEADERS) \
104         browse-domain-test.c
105 browse_domain_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
106 browse_domain_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) libhowl.la
107
108 endif
109 endif