1## Makefile for the gettext-runtime/src subdirectory of GNU gettext 2## Copyright (C) 1995-1998, 2000-2006 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 2, or (at your option) 7## 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, write to the Free Software Foundation, 16## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 18## Process this file with automake to produce Makefile.in. 19 20AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies 21EXTRA_DIST = 22DISTCLEANFILES = 23 24RM = rm -f 25 26bin_PROGRAMS = gettext ngettext envsubst 27 28AM_CPPFLAGS = \ 29 -I. -I$(srcdir) \ 30 -I.. \ 31 -I../intl -I$(srcdir)/../intl \ 32 -I../gnulib-lib -I$(srcdir)/../gnulib-lib 33DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ 34 35# Source dependencies. 36gettext_SOURCES = gettext.c 37ngettext_SOURCES = ngettext.c 38envsubst_SOURCES = envsubst.c 39 40# Link dependencies. 41# Need @LTLIBICONV@ because striconv.c uses iconv(). 42LDADD = ../gnulib-lib/libgrt.a @LTLIBINTL@ @LTLIBICONV@ 43 44# Specify installation directory, for --enable-relocatable. 45gettext_CFLAGS = -DINSTALLDIR=\"$(bindir)\" 46ngettext_CFLAGS = -DINSTALLDIR=\"$(bindir)\" 47envsubst_CFLAGS = -DINSTALLDIR=\"$(bindir)\" 48if RELOCATABLE_VIA_LD 49gettext_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(bindir)` 50ngettext_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(bindir)` 51envsubst_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(bindir)` 52endif 53 54# For installing gettext.sh in $(bindir). 55bin_SCRIPTS = gettext.sh 56DISTCLEANFILES += gettext.sh 57 58# Support for relocatability. 59RELOCATABLE_LIBRARY_PATH = $(libdir) 60RELOCATABLE_SRC_DIR = $(top_srcdir)/gnulib-lib 61RELOCATABLE_BUILD_DIR = ../gnulib-lib 62RELOCATABLE_CONFIG_H_DIR = .. 63@SET_RELOCATABLE@ 64