]> git.meshlink.io Git - catta/blob - avahi-compat-howl/Makefile.am
e5bc3953315e61ee08523b4b9673d097ee895053
[catta] / avahi-compat-howl / Makefile.am
1 # $Id$
2
3 # This file is part of avahi.
4 #
5 # avahi is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation; either version 2 of the
8 # License, or (at your option) any later version.
9 #
10 # avahi is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 # License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with avahi; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 # USA.
19
20 AM_CFLAGS=-I$(top_srcdir)
21
22 # This cool debug trap works on i386/gcc only
23 AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
24
25 SUBDIRS = . samples
26
27 if HAVE_DBUS
28 if ENABLE_COMPAT_HOWL
29
30 avahi_compat_howldir=$(includedir)/avahi-compat-howl
31 avahi_compat_howl_rendezvousdir=$(avahi_compat_howldir)/rendezvous
32 avahi_compat_howl_corbydir=$(avahi_compat_howldir)/corby
33 avahi_compat_howl_discoverydir=$(avahi_compat_howldir)/discovery
34 avahi_compat_howl_saltdir=$(avahi_compat_howldir)/salt
35
36 avahi_compat_howl_HEADERS = \
37         include/howl.h
38
39 avahi_compat_howl_rendezvous_HEADERS = \
40         include/rendezvous/rendezvous.h \
41         include/rendezvous/text_record.h
42
43 avahi_compat_howl_corby_HEADERS = \
44         include/corby/message.h \
45         include/corby/object.h \
46         include/corby/orb.h \
47         include/corby/corby.h \
48         include/corby/channel.h \
49         include/corby/buffer.h
50
51 avahi_compat_howl_discovery_HEADERS = \
52         include/discovery/discovery.h \
53         include/discovery/text_record.h
54
55 avahi_compat_howl_salt_HEADERS = \
56         include/salt/socket.h \
57         include/salt/address.h \
58         include/salt/platform.h \
59         include/salt/signal.h \
60         include/salt/interface.h \
61         include/salt/salt.h \
62         include/salt/time.h \
63         include/salt/debug.h
64
65 HOWLHEADERS = \
66         $(avahi_compat_howl_HEADERS) \
67         $(avahi_compat_howl_rendezvous_HEADERS) \
68         $(avahi_compat_howl_corby_HEADERS) \
69         $(avahi_compat_howl_discovery_HEADERS) \
70         $(avahi_compat_howl_salt_HEADERS)
71
72 lib_LTLIBRARIES = libhowl.la
73
74 if ENABLE_TESTS
75 noinst_PROGRAMS = address-test text-test browse-domain-test
76 endif
77
78 libhowl_la_SOURCES = \
79         $(HOWLHEADERS) \
80         warn.c warn.h \
81         unsupported.c \
82         address.c \
83         text.c \
84         compat.c
85 libhowl_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
86 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
87
88 address_test_SOURCES = \
89         $(HOWLHEADERS) \
90         address.c \
91         address-test.c \
92         warn.c warn.h
93 address_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
94 address_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la
95
96 text_test_SOURCES = \
97         $(HOWLHEADERS) \
98         text.c \
99         text-test.c \
100         warn.c warn.h
101 text_test_CFLAGS = $(AM_CFLAGS)  $(PTHREAD_CFLAGS) -I $(srcdir)/include
102 text_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la
103
104 browse_domain_test_SOURCES = \
105         $(HOWLHEADERS) \
106         browse-domain-test.c
107 browse_domain_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
108 browse_domain_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) libhowl.la
109
110 endif
111 endif