Bump versions.
[libidn.git] / csharp / Makefile.am
blobe7cfa6230867bd0ecdd1e22c6c4df927139e23f4
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2005, 2006, 2007 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
19 # 02110-1301, USA.
21 CSHARPCOMP = $(SHELL) $(top_srcdir)/csharpcomp.sh
22 CSHARPCOMPFLAGS =
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   \
31         libidn.sln libidn.suo
33 EXTRA_DIST = $(SOURCES) $(MSVSC)
35 CLEANFILES = Libidn.dll
37 ALL_LOCAL_TARGETS =
38 INSTALLDIRS_LOCAL_TARGETS = 
39 INSTALL_DATA_LOCAL_TARGETS =
40 UNINSTALL_LOCAL_TARGETS =
42 if CSHARP
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`
52 install-dll-dir:
53         $(mkinstalldirs) $(DESTDIR)$(libdir)
55 install-dll: install-dll-dir
56         $(INSTALL_DATA) Libidn.dll $(DESTDIR)$(libdir)/Libidn.dll
58 uninstall-dll:
59         rm -f $(DESTDIR)$(libdir)/Libidn.dll
60 endif
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)