86106b8767868ce2d1b54f50af5cf58bec73cacd
[platform/upstream/gettext.git] / gettext-tools / gnulib-lib / Makefile.am
1 ## Makefile for the gettext-tools/gnulib-lib subdirectory of GNU gettext
2 ## Copyright (C) 1995-1998, 2000-2006, 2009 Free Software Foundation, Inc.
3 ##
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.
8 ##
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.
13 ##
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/>.
16
17 ## Process this file with automake to produce Makefile.in.
18
19 AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects no-dependencies
20 EXTRA_DIST =
21 BUILT_SOURCES =
22 MOSTLYCLEANFILES = core *.stackdump
23 MOSTLYCLEANDIRS =
24 CLEANFILES =
25 DISTCLEANFILES =
26 MAINTAINERCLEANFILES =
27 SUFFIXES =
28
29 noinst_LTLIBRARIES =
30
31 # Extra files to be installed.
32
33 gettextsrcdir = $(datadir)/gettext
34 gettextsrc_DATA = gettext.h
35
36 # Where to install javaversion.class.
37 pkgdatadir = $(datadir)/gettext
38 pkgdata_DATA =
39
40 AM_CPPFLAGS =
41
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)
46
47 # Parametrization of the 'relocatable' module.
48 AM_CPPFLAGS += -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1
49
50 # Parametrization of the 'libxml' module:
51 # When building a shared library, don't export the variables
52 # xmlMalloc, xmlMallocAtomic, xmlRealloc, xmlFree, xmlMemStrdup.
53 if INCLUDED_LIBXML
54 AM_CPPFLAGS += -DLIBXML_STATIC
55 endif
56
57 # Rules generated and collected by gnulib-tool.
58 include Makefile.gnulib
59
60 # Which classes to export from the shared library.
61 MOOPPFLAGS += --dllexport=styled_ostream
62
63 # Linking with C++ libraries is needed _only_ on mingw and Cygwin.
64 if !WOE32DLL
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) \
68         -o $@
69 else
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) \
73         -o $@
74 endif
75