CSHARPCOMP = $(SHELL) ../gl/csharpcomp.sh
CSHARPCOMPFLAGS =
SOURCES = AssemblyInfo.cs IDNA.cs RFC3454.cs CombiningClass.cs \
IDNAException.cs Stringprep.cs Composition.cs NFKC.cs \
StringprepException.cs DecompositionKeys.cs Punycode.cs \
DecompositionMappings.cs PunycodeException.cs
MSVSC = libidn.csproj libidn.csproj.user libidn_PPC.csdproj \
libidn_PPC.csdproj.user libidn_PPC.sln libidn_PPC.suo \
libidn.sln libidn.suo
EXTRA_DIST = $(SOURCES) $(MSVSC)
CLEANFILES = Libidn.dll
ALL_LOCAL_TARGETS =
INSTALLDIRS_LOCAL_TARGETS =
INSTALL_DATA_LOCAL_TARGETS =
UNINSTALL_LOCAL_TARGETS =
if CSHARP
ALL_LOCAL_TARGETS += Libidn.dll
INSTALLDIRS_LOCAL_TARGETS += install-dll-dir
INSTALL_DATA_LOCAL_TARGETS += install-dll
UNINSTALL_LOCAL_TARGETS += uninstall-dll
Libidn.dll: $(SOURCES)
$(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ \
`for src in $(SOURCES); do echo $(srcdir)/$$src; done`
install-dll-dir:
$(mkinstalldirs) $(DESTDIR)$(libdir)
install-dll: install-dll-dir
$(INSTALL_DATA) Libidn.dll $(DESTDIR)$(libdir)/Libidn.dll
uninstall-dll:
rm -f $(DESTDIR)$(libdir)/Libidn.dll
endif
all-local: $(ALL_LOCAL_TARGETS)
install-data-local: $(INSTALL_DATA_LOCAL_TARGETS)
installdirs-local: $(INSTALLDIRS_LOCAL_TARGETS)
uninstall-local: $(UNINSTALL_LOCAL_TARGETS)