X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-sharp%2FMakefile.am;h=ffee4cde25e040ff1aaf5197c11c1635238c339d;hb=a21074b9ea4b11b74d114e2669248f979caf0d3a;hp=a82f4e69271b33e04d13777ad80666c4c993c74a;hpb=8263f6594082e5c892a9425707413a386733fef4;p=catta diff --git a/avahi-sharp/Makefile.am b/avahi-sharp/Makefile.am index a82f4e6..ffee4cd 100644 --- a/avahi-sharp/Makefile.am +++ b/avahi-sharp/Makefile.am @@ -1,6 +1,9 @@ -all: avahi-sharp.dll +ASSEMBLY = avahi-sharp.dll + +CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb +EXTRA_DIST = $(AVAHISOURCES) avahi.snk AVAHISOURCES = \ $(srcdir)/AddressResolver.cs \ @@ -12,9 +15,14 @@ AVAHISOURCES = \ $(srcdir)/ServiceBrowser.cs \ $(srcdir)/ServiceResolver.cs \ $(srcdir)/ServiceTypeBrowser.cs \ - Utility.cs + $(srcdir)/Utility.cs + +$(ASSEMBLY): $(AVAHISOURCES) + mcs -keyfile:$(srcdir)/avahi.snk -target:library -o $@ -debug $(AVAHISOURCES) -r:Mono.Posix -avahi-sharp.dll: $(AVAHISOURCES) - mcs -target:library -o $@ -debug $(AVAHISOURCES) -r:Mono.Posix +if HAVE_MONO +all: $(ASSEMBLY) -CLEANFILES = avahi-sharp.dll avahi-sharp.dll.mdb +install-data-hook: + $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) +endif