1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2005, 2006 Simon Josefsson.
4 # This file is part of GNU Libidn.
6 # GNU Libidn is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU Lesser General Public License as
8 # published by the Free Software Foundation; either version 2.1 of
9 # the License, or (at your option) any later version.
11 # GNU Libidn is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with GNU Libidn; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 CSHARPCOMP = $(SHELL) ../csharpcomp.sh
24 SOURCES = AssemblyInfo.cs IDNA.cs RFC3454.cs CombiningClass.cs \
25 IDNAException.cs Stringprep.cs Composition.cs NFKC.cs \
26 StringprepException.cs DecompositionKeys.cs Punycode.cs \
27 DecompositionMappings.cs PunycodeException.cs
29 MSVSC = libidn.csproj libidn.csproj.user libidn_PPC.csdproj \
30 libidn_PPC.csdproj.user libidn_PPC.sln libidn_PPC.suo \
33 EXTRA_DIST = $(SOURCES) $(MSVSC)
35 CLEANFILES = Libidn.dll
38 INSTALLDIRS_LOCAL_TARGETS =
39 INSTALL_DATA_LOCAL_TARGETS =
40 UNINSTALL_LOCAL_TARGETS =
43 ALL_LOCAL_TARGETS += Libidn.dll
44 INSTALLDIRS_LOCAL_TARGETS += install-dll-dir
45 INSTALL_DATA_LOCAL_TARGETS += install-dll
46 UNINSTALL_LOCAL_TARGETS += uninstall-dll
48 Libidn.dll: $(SOURCES)
49 $(CSHARPCOMP) $(CSHARPCOMPFLAGS) -o $@ \
50 `for src in $(SOURCES); do echo $(srcdir)/$$src; done`
53 $(mkinstalldirs) $(DESTDIR)$(libdir)
55 install-dll: install-dll-dir
56 $(INSTALL_DATA) Libidn.dll $(DESTDIR)$(libdir)/Libidn.dll
59 rm -f $(DESTDIR)$(libdir)/Libidn.dll
62 all-local: $(ALL_LOCAL_TARGETS)
63 install-data-local: $(INSTALL_DATA_LOCAL_TARGETS)
64 installdirs-local: $(INSTALLDIRS_LOCAL_TARGETS)
65 uninstall-local: $(UNINSTALL_LOCAL_TARGETS)