1 # This file is part of avahi.
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.
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.
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
18 ASSEMBLY = avahi-sharp.dll
20 CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config
23 $(srcdir)/AddressResolver.cs \
24 $(srcdir)/AssemblyInfo.cs \
25 $(srcdir)/BrowserBase.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 \
40 $(srcdir)/AvahiTest.cs \
42 $(srcdir)/$(ASSEMBLY).config.in \
43 $(srcdir)/avahi-sharp-docs.source \
45 $(srcdir)/en/*/*.xml \
48 $(ASSEMBLY): $(AVAHISOURCES)
49 $(AM_V_GEN)MONO_SHARED_DIR=. mcs -keyfile:$(srcdir)/avahi.snk -target:library -out:$@ -debug $(AVAHISOURCES) -r:Mono.Posix
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 < $< > $@
59 all: $(ASSEMBLY) $(ASSEMBLY).config
62 update-docs: $(ASSEMBLY)
63 $(AM_V_GEN)$(MONODOCER) -assembly:$(ASSEMBLY) -path:en
65 avahi-sharp-docs.zip: avahi-sharp-docs.tree
67 avahi-sharp-docs.tree: $(srcdir)/en/*/*
68 $(AM_V_GEN)$(MDASSEMBLER) --out avahi-sharp-docs --ecma $(srcdir)/en
70 monodocdir = $(MONODOC_DIR)
71 monodoc_DATA = avahi-sharp-docs.zip avahi-sharp-docs.tree avahi-sharp-docs.source
75 install-data-hook: $(ASSEMBLY)
76 $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
78 uninstall-hook: $(ASSEMBLY)
79 $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)