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