1 ## Makefile for the gettext-tools/gnulib-lib subdirectory of GNU gettext
2 ## Copyright (C) 1995-1998, 2000-2006, 2009 Free Software Foundation, Inc.
4 ## This program is free software: you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 3 of the License, or
7 ## (at your option) any later version.
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
17 ## Process this file with automake to produce Makefile.in.
19 AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects no-dependencies
22 MOSTLYCLEANFILES = core *.stackdump
26 MAINTAINERCLEANFILES =
31 # Extra files to be installed.
33 gettextsrcdir = $(datadir)/gettext
34 gettextsrc_DATA = gettext.h
36 # Where to install javaversion.class.
37 pkgdatadir = $(datadir)/gettext
42 # Hmm... is this still necessary?
43 AM_CPPFLAGS += -I$(top_builddir)/intl -I$(top_srcdir)/intl
44 # Needed so that config.h and woe32dll/export.h are found.
45 AM_CPPFLAGS += -I$(top_builddir) -I$(top_srcdir)
47 # Parametrization of the 'relocatable' module.
48 AM_CPPFLAGS += -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1
50 # Parametrization of the 'libxml' module:
51 # When building a shared library, don't export the variables
52 # xmlMalloc, xmlMallocAtomic, xmlRealloc, xmlFree, xmlMemStrdup.
54 AM_CPPFLAGS += -DLIBXML_STATIC
57 # Rules generated and collected by gnulib-tool.
58 include Makefile.gnulib
60 # Which classes to export from the shared library.
61 MOOPPFLAGS += --dllexport=styled_ostream
63 # Linking with C++ libraries is needed _only_ on mingw and Cygwin.
65 libgettextlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
66 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
67 $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libgettextlib_la_LDFLAGS) $(LDFLAGS) \
70 libgettextlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
71 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
72 $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(libgettextlib_la_LDFLAGS) $(LDFLAGS) \