1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2006, 2007 Simon Josefsson.
4 # This file is part of GNU Libidn.
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program 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 General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 AM_CPPFLAGS = -I$(top_srcdir)/lib -I../lib -I$(top_srcdir)/gl -I../gl
21 dist_lisp_DATA = punycode.el idna.el
25 BUILT_SOURCES = idn_cmd.c idn_cmd.h
26 idn_SOURCES = idn.c idn.ggo idn_cmd.c idn_cmd.h
27 DISTCLEANFILES = $(BUILT_SOURCES)
28 idn_LDADD = ../lib/libidn.la ../gl/libgnu.la $(LTLIBINTL)
30 localedir = $(datadir)/locale
31 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
33 idn.c: $(BUILT_SOURCES)
35 idn_cmd.c idn_cmd.h: idn.ggo
36 gengetopt --unamed-opts --input $^ --file-name idn_cmd || \
37 test -f idn_cmd.h -a -f idn_cmd.c || \
38 cp $(srcdir)/idn_cmd.h $(srcdir)/idn_cmd.h .
39 perl -pi -e 's/\[FILES\]/\[STRINGS\]/g' idn_cmd.c