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