]> git.meshlink.io Git - catta/blob - avahi-compat-howl/Makefile.am
* More distcheck loving.
[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
29 avahi_compat_howldir=$(includedir)/avahi-compat-howl
30 avahi_compat_howl_rendezvousdir=$(avahi_compat_howldir)/rendezvous
31 avahi_compat_howl_corbydir=$(avahi_compat_howldir)/corby
32 avahi_compat_howl_discoverydir=$(avahi_compat_howldir)/discovery
33 avahi_compat_howl_saltdir=$(avahi_compat_howldir)/salt
34
35 avahi_compat_howl_HEADERS = \
36         include/howl.h
37
38 avahi_compat_howl_rendezvous_HEADERS = \
39         include/rendezvous/rendezvous.h \
40         include/rendezvous/text_record.h
41
42 avahi_compat_howl_corby_HEADERS = \
43         include/corby/message.h \
44         include/corby/object.h \
45         include/corby/orb.h \
46         include/corby/corby.h \
47         include/corby/channel.h \
48         include/corby/buffer.h
49
50 avahi_compat_howl_discovery_HEADERS = \
51         include/discovery/discovery.h \
52         include/discovery/text_record.h
53
54 avahi_compat_howl_salt_HEADERS = \
55         include/salt/socket.h \
56         include/salt/address.h \
57         include/salt/platform.h \
58         include/salt/signal.h \
59         include/salt/interface.h \
60         include/salt/salt.h \
61         include/salt/time.h \
62         include/salt/debug.h
63
64 HOWLHEADERS = \
65         $(avahi_compat_howl_HEADERS) \
66         $(avahi_compat_howl_rendezvous_HEADERS) \
67         $(avahi_compat_howl_corby_HEADERS) \
68         $(avahi_compat_howl_discovery_HEADERS) \
69         $(avahi_compat_howl_salt_HEADERS)
70
71 lib_LTLIBRARIES = libavahi-compat-howl.la 
72
73 noinst_PROGRAMS = address-test text-test
74
75 libavahi_compat_howl_la_SOURCES = \
76         $(HOWLHEADERS) \
77         warn.c warn.h \
78         unsupported.c \
79         address.c \
80         text.c \
81         compat.c
82 libavahi_compat_howl_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
83 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
84
85 address_test_SOURCES = \
86         $(HOWLHEADERS) \
87         address.c \
88         address-test.c \
89         warn.c warn.h 
90 address_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
91 address_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
92
93 text_test_SOURCES = \
94         $(HOWLHEADERS) \
95         text.c \
96         text-test.c \
97         warn.c warn.h 
98 text_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include
99 text_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
100
101 endif