1## Makefile for the gettext-tools/gnulib-lib subdirectory of GNU gettext 2## Copyright (C) 1995-1998, 2000-2006, 2009, 2016, 2019 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 <https://www.gnu.org/licenses/>. 17 18## Process this file with automake to produce Makefile.in. 19 20AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects no-dependencies 21EXTRA_DIST = 22BUILT_SOURCES = 23MOSTLYCLEANFILES = core *.stackdump 24MOSTLYCLEANDIRS = 25CLEANFILES = 26DISTCLEANFILES = 27MAINTAINERCLEANFILES = 28SUFFIXES = 29 30noinst_LTLIBRARIES = 31 32# Extra files to be installed. 33 34# Where to install javaversion.class. 35pkgdatadir = $(datadir)/gettext 36pkgdata_DATA = 37 38AM_CPPFLAGS = 39 40# Hmm... is this still necessary? 41AM_CPPFLAGS += -I$(top_builddir)/intl -I$(top_srcdir)/intl 42# Needed so that config.h and woe32dll/export.h are found. 43AM_CPPFLAGS += -I$(top_builddir) -I$(top_srcdir) 44 45# Parametrization of the 'relocatable' module. 46AM_CPPFLAGS += -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 47 48# Parametrization of the 'libxml' module: 49# When building a shared library, don't export the variables 50# xmlMalloc, xmlMallocAtomic, xmlRealloc, xmlFree, xmlMemStrdup. 51if INCLUDED_LIBXML 52AM_CPPFLAGS += -DLIBXML_STATIC 53endif 54 55# Rules generated and collected by gnulib-tool. 56include Makefile.gnulib 57 58# OS/2 does not support a DLL name longer than 8 characters. 59if OS2 60libgettextlib_la_LDFLAGS += -os2dllname gtlib 61endif 62 63# Specify installation directory, for --enable-relocatable. 64if RELOCATABLE_VIA_LD 65# This is needed, because libgettextlib depends on libintl. 66libgettextlib_la_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(libdir)` 67endif 68 69# Support for relocatability. 70RELOCATABLE_LIBRARY_PATH = $(libdir) 71 72# Linking with C++ libraries is needed _only_ on mingw and Cygwin. 73if !WOE32DLL 74libgettextlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ 75 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ 76 $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libgettextlib_la_LDFLAGS) $(LDFLAGS) \ 77 -o $@ 78else 79libgettextlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ 80 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ 81 $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(libgettextlib_la_LDFLAGS) $(LDFLAGS) \ 82 -o $@ 83# Use the same definition of CXXLD as Automake generates in other Makefiles. 84CXXLD = $(CXX) 85endif 86 87