*** empty log message ***
[libidn.git] / Makefile.am
blob3a8a04ded6afb368c432cb38eeb410e3b83cf3d2
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002 Simon Josefsson.
4 # This file is part of Libidn.
6 # 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 # 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 Libidn; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 SUBDIRS = reference
22 EXTRA_DIST = libidn.pc.in iconv.m4 strdup.c memset.c \
23         gen-stringprep-tables.pl rfc3454.txt \
24         gen-unicode-tables.pl UnicodeData-3.2.0.txt LineBreak-3.2.0.txt \
25         SpecialCasing-3.2.0.txt CaseFolding-3.2.0.txt \
26         CompositionExclusions-3.2.0.txt
28 pkgconfigdir = $(libdir)/pkgconfig
29 pkgconfig_DATA = libidn.pc
31 lib_LTLIBRARIES = libidn.la
33 include_HEADERS = stringprep.h stringprep_generic.h stringprep_nameprep.h \
34         stringprep_kerberos5.h
36 libidn_la_SOURCES = gunicomp.h gunidecomp.h internal.h \
37         stringprep.c nfkc.c version.c toutf8.c \
38         stringprep_generic.c profiles.c \
39         punycode.h punycode.c \
40         idna.h idna.c
41 libidn_la_LIBADD = @LTLIBOBJS@ @LTLIBICONV@
42 libidn_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
44 nfkc.c: gunicomp.h gunidecomp.h
46 gunicomp.h gunidecomp.h: gen-unicode-tables.pl UnicodeData-3.2.0.txt LineBreak-3.2.0.txt SpecialCasing-3.2.0.txt CaseFolding-3.2.0.txt CompositionExclusions-3.2.0.txt
47         $(PERL) $(srcdir)/gen-unicode-tables.pl -decomp 3.2 UnicodeData-3.2.0.txt LineBreak-3.2.0.txt SpecialCasing-3.2.0.txt CaseFolding-3.2.0.txt CompositionExclusions-3.2.0.txt
49 stringprep_generic.c: rfc3454.txt gen-stringprep-tables.pl
50         $(PERL) $(srcdir)/gen-stringprep-tables.pl rfc3454.txt
52 tests = tst_stringprep tst_nfkc tst_punycode tst_idna
54 check_PROGRAMS = $(tests)
56 TESTS = $(tests)
58 INCLUDES = -I$(top_srcdir)
59 LDADD = libidn.la
61 noinst_PROGRAMS = $(tests) example example2
63 ACLOCAL_AMFLAGS = -I .
65 .PHONY: ChangeLog
66 ChangeLog:
67         test ! -f .cvsusers || \
68         cvs2cl --fsf --usermap .cvsusers --separate-header -I \
69         "ChangeLog|.cvsignore|.cvsusers|autogen.sh"
71 indent:
72         indent $(SOURCES)
74 sign: $(distdir).tar.gz
75         rm -f $(distdir).tar.gz.asc
76         gpg -a --sign --detach $(distdir).tar.gz
77         gpg --verify $(distdir).tar.gz.asc