]> git.meshlink.io Git - catta/blob - avahi-compat-howl/Makefile.am
be6bbe9b2abb763c4fbfbbf1e19179a4a5a47cfa
[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 if HAVE_DBUS
26
27 avahi_compat_howldir=$(includedir)/avahi-compat-howl
28 avahi_compat_howl_rendezvousdir=$(avahi_compat_howldir)/rendezvous
29 avahi_compat_howl_corbydir=$(avahi_compat_howldir)/corby
30 avahi_compat_howl_discoverydir=$(avahi_compat_howldir)/discovery
31 avahi_compat_howl_saltdir=$(avahi_compat_howldir)/salt
32
33 avahi_compat_howl_HEADERS = \
34         include/howl.h
35
36 avahi_compat_howl_rendezvous_HEADERS = \
37         include/rendezvous/rendezvous.h \
38         include/rendezvous/text_record.h
39
40 avahi_compat_howl_corby_HEADERS = \
41         include/corby/message.h \
42         include/corby/object.h \
43         include/corby/orb.h \
44         include/corby/corby.h \
45         include/corby/channel.h \
46         include/corby/buffer.h
47
48 avahi_compat_howl_discovery_HEADERS = \
49         include/discovery/discovery.h \
50         include/discovery/text_record.h
51
52 avahi_compat_howl_salt_HEADERS = \
53         include/salt/socket.h \
54         include/salt/address.h \
55         include/salt/platform.h \
56         include/salt/signal.h \
57         include/salt/interface.h \
58         include/salt/salt.h \
59         include/salt/time.h \
60         include/salt/debug.h
61
62 HOWLHEADERS = \
63         $(avahi_compat_howl_HEADERS) \
64         $(avahi_compat_howl_rendezvous_HEADERS) \
65         $(avahi_compat_howl_corby_HEADERS) \
66         $(avahi_compat_howl_discovery_HEADERS) \
67         $(avahi_compat_howl_salt_HEADERS)
68
69 lib_LTLIBRARIES = libavahi-compat-howl.la 
70
71 noinst_PROGRAMS = address-test text-test samples/browse samples/resolve samples/publish samples/query
72
73 libavahi_compat_howl_la_SOURCES = \
74         $(HOWLHEADERS) \
75         warn.c warn.h \
76         unsupported.c \
77         address.c \
78         text.c \
79         compat.c
80 libavahi_compat_howl_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
81 libavahi_compat_howl_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_COMPAT_HOWL_VERSION_INFO) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la
82
83 address_test_SOURCES = \
84         $(HOWLHEADERS) \
85         address.c \
86         address-test.c \
87         warn.c warn.h 
88 address_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
89 address_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
90
91 text_test_SOURCES = \
92         $(HOWLHEADERS) \
93         text.c \
94         text-test.c \
95         warn.c warn.h 
96 text_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
97 text_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
98
99 samples_browse_SOURCES = \
100         $(HOWLHEADERS) \
101         samples/browse.c
102 samples_browse_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
103 samples_browse_LDADD = $(AM_LDADD) libavahi-compat-howl.la
104
105 samples_resolve_SOURCES = \
106         $(HOWLHEADERS) \
107         samples/resolve.c
108 samples_resolve_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
109 samples_resolve_LDADD = $(AM_LDADD) libavahi-compat-howl.la
110
111 samples_publish_SOURCES = \
112         $(HOWLHEADERS) \
113         samples/publish.c
114 samples_publish_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
115 samples_publish_LDADD = $(AM_LDADD) libavahi-compat-howl.la
116
117 samples_query_SOURCES = \
118         $(HOWLHEADERS) \
119         samples/query.c
120 samples_query_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
121 samples_query_LDADD = $(AM_LDADD) libavahi-compat-howl.la
122
123 endif