• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
18ASSEMBLY = avahi-sharp.dll
19
20CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config
21
22AVAHISOURCES = 				\
23	$(srcdir)/AddressResolver.cs	\
24	$(srcdir)/AssemblyInfo.cs	\
25	$(srcdir)/BrowserBase.cs	\
26	$(srcdir)/Client.cs		\
27	$(srcdir)/ClientException.cs	\
28	$(srcdir)/DomainBrowser.cs	\
29	$(srcdir)/EntryGroup.cs		\
30	$(srcdir)/HostNameResolver.cs	\
31	$(srcdir)/RecordBrowser.cs	\
32	$(srcdir)/ResolverBase.cs	\
33	$(srcdir)/ServiceBrowser.cs	\
34	$(srcdir)/ServiceResolver.cs	\
35	$(srcdir)/ServiceTypeBrowser.cs	\
36	$(srcdir)/Utility.cs
37
38EXTRA_DIST =				\
39	$(AVAHISOURCES)			\
40	$(srcdir)/AvahiTest.cs 		\
41	$(srcdir)/avahi.snk		\
42	$(srcdir)/$(ASSEMBLY).config.in	\
43	$(srcdir)/avahi-sharp-docs.source	\
44	$(srcdir)/en/*.xml		\
45	$(srcdir)/en/*/*.xml		\
46	$(srcdir)/gencfg.sh
47
48$(ASSEMBLY): $(AVAHISOURCES)
49	$(AM_V_GEN)MONO_SHARED_DIR=. mcs -keyfile:$(srcdir)/avahi.snk -target:library -out:$@ -debug $(AVAHISOURCES) -r:Mono.Posix
50
51
52$(ASSEMBLY).config: $(ASSEMBLY).config.in
53	$(AM_V_GEN)$(srcdir)/gencfg.sh $(top_builddir)/avahi-client/libavahi-client.la \
54		$(top_builddir)/avahi-common/libavahi-common.la \
55		$(top_builddir)/avahi-glib/libavahi-glib.la < $< > $@
56
57if HAVE_MONO
58if HAVE_DBUS
59all: $(ASSEMBLY) $(ASSEMBLY).config
60
61if HAVE_MONODOC
62update-docs: $(ASSEMBLY)
63	$(AM_V_GEN)$(MONODOCER) -assembly:$(ASSEMBLY) -path:en
64
65avahi-sharp-docs.zip: avahi-sharp-docs.tree
66
67avahi-sharp-docs.tree: $(srcdir)/en/*/*
68	$(AM_V_GEN)$(MDASSEMBLER) --out avahi-sharp-docs --ecma $(srcdir)/en
69
70monodocdir = $(MONODOC_DIR)
71monodoc_DATA = avahi-sharp-docs.zip avahi-sharp-docs.tree avahi-sharp-docs.source
72
73endif
74
75install-data-hook: $(ASSEMBLY)
76	$(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
77
78uninstall-hook: $(ASSEMBLY)
79	$(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
80
81endif
82endif
83