# Makefile for directory with message catalog handling library of GNU gettext
|
# Makefile for directory with message catalog handling library of GNU gettext
|
# Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
|
# Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
|
#
|
#
|
# This program is free software; you can redistribute it and/or modify it
|
# This program is free software; you can redistribute it and/or modify it
|
# under the terms of the GNU Library General Public License as published
|
# under the terms of the GNU Library General Public License as published
|
# by the Free Software Foundation; either version 2, or (at your option)
|
# by the Free Software Foundation; either version 2, or (at your option)
|
# any later version.
|
# any later version.
|
#
|
#
|
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
# Library General Public License for more details.
|
# Library General Public License for more details.
|
#
|
#
|
# You should have received a copy of the GNU Library General Public
|
# You should have received a copy of the GNU Library General Public
|
# License along with this program; if not, write to the Free Software
|
# License along with this program; if not, write to the Free Software
|
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
|
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
|
# USA.
|
# USA.
|
|
|
# This Makefile has been modified from the original shipped with
|
# This Makefile has been modified from the original shipped with
|
# gettext 0.12.1 to remove the ability to install libintl (which
|
# gettext 0.12.1 to remove the ability to install libintl (which
|
# we do not need nor want), the ability to build a shared library
|
# we do not need nor want), the ability to build a shared library
|
# (likewise), and a large number of heinous kludges.
|
# (likewise), and a large number of heinous kludges.
|
|
|
SHELL = @SHELL@
|
SHELL = @SHELL@
|
|
|
srcdir = @srcdir@
|
srcdir = @srcdir@
|
VPATH = $(srcdir)
|
VPATH = $(srcdir)
|
|
|
prefix = @prefix@
|
prefix = @prefix@
|
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
transform = @program_transform_name@
|
transform = @program_transform_name@
|
libdir = @libdir@
|
libdir = @libdir@
|
includedir = @includedir@
|
includedir = @includedir@
|
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
datadir = @datadir@
|
datadir = @datadir@
|
localedir = $(datadir)/locale
|
localedir = $(datadir)/locale
|
aliaspath = $(localedir)
|
aliaspath = $(localedir)
|
|
|
AR = ar
|
AR = ar
|
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
CC = @CC@
|
CC = @CC@
|
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
YACC = @INTLBISON@ -y -d
|
YACC = @INTLBISON@ -y -d
|
YFLAGS = --name-prefix=__gettext
|
YFLAGS = --name-prefix=__gettext
|
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
LIBS = @LIBS@
|
LIBS = @LIBS@
|
DEFS = -DHAVE_CONFIG_H
|
DEFS = -DHAVE_CONFIG_H
|
|
|
COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES)
|
COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES)
|
|
|
HEADERS = \
|
HEADERS = \
|
gmo.h \
|
gmo.h \
|
gettextP.h \
|
gettextP.h \
|
hash-string.h \
|
hash-string.h \
|
loadinfo.h \
|
loadinfo.h \
|
plural-exp.h \
|
plural-exp.h \
|
eval-plural.h \
|
eval-plural.h \
|
localcharset.h \
|
localcharset.h \
|
relocatable.h \
|
relocatable.h \
|
libgnuintl.h
|
libgnuintl.h
|
SOURCES = \
|
SOURCES = \
|
bindtextdom.c \
|
bindtextdom.c \
|
dcgettext.c \
|
dcgettext.c \
|
dgettext.c \
|
dgettext.c \
|
gettext.c \
|
gettext.c \
|
finddomain.c \
|
finddomain.c \
|
loadmsgcat.c \
|
loadmsgcat.c \
|
localealias.c \
|
localealias.c \
|
textdomain.c \
|
textdomain.c \
|
l10nflist.c \
|
l10nflist.c \
|
explodename.c \
|
explodename.c \
|
dcigettext.c \
|
dcigettext.c \
|
dcngettext.c \
|
dcngettext.c \
|
dngettext.c \
|
dngettext.c \
|
ngettext.c \
|
ngettext.c \
|
plural.y \
|
plural.y \
|
plural-exp.c \
|
plural-exp.c \
|
localcharset.c \
|
localcharset.c \
|
relocatable.c \
|
relocatable.c \
|
localename.c \
|
localename.c \
|
log.c \
|
log.c \
|
osdep.c \
|
osdep.c \
|
intl-compat.c
|
intl-compat.c
|
OBJECTS = \
|
OBJECTS = \
|
bindtextdom.o \
|
bindtextdom.o \
|
dcgettext.o \
|
dcgettext.o \
|
dgettext.o \
|
dgettext.o \
|
gettext.o \
|
gettext.o \
|
finddomain.o \
|
finddomain.o \
|
loadmsgcat.o \
|
loadmsgcat.o \
|
localealias.o \
|
localealias.o \
|
textdomain.o \
|
textdomain.o \
|
l10nflist.o \
|
l10nflist.o \
|
explodename.o \
|
explodename.o \
|
dcigettext.o \
|
dcigettext.o \
|
dcngettext.o \
|
dcngettext.o \
|
dngettext.o \
|
dngettext.o \
|
ngettext.o \
|
ngettext.o \
|
plural.o \
|
plural.o \
|
plural-exp.o \
|
plural-exp.o \
|
localcharset.o \
|
localcharset.o \
|
relocatable.o \
|
relocatable.o \
|
localename.o \
|
localename.o \
|
log.o \
|
log.o \
|
osdep.o \
|
osdep.o \
|
intl-compat.o
|
intl-compat.o
|
|
|
DEFS-dcigettext.o = -DLOCALEDIR="\"$(localedir)\""
|
DEFS-dcigettext.o = -DLOCALEDIR="\"$(localedir)\""
|
DEFS-localealias.o = -DLOCALE_ALIAS_PATH="\"$(aliaspath)\""
|
DEFS-localealias.o = -DLOCALE_ALIAS_PATH="\"$(aliaspath)\""
|
DEFS-localcharset.o = -DLIBDIR="\"$(libdir)\""
|
DEFS-localcharset.o = -DLIBDIR="\"$(libdir)\""
|
DEFS-relocatable.o = -DINSTALLDIR="\"$(libdir)\""
|
DEFS-relocatable.o = -DINSTALLDIR="\"$(libdir)\""
|
|
|
all: all-@USE_INCLUDED_LIBINTL@
|
all: all-@USE_INCLUDED_LIBINTL@
|
all-yes: libintl.a libintl.h config.intl
|
all-yes: libintl.a libintl.h config.intl
|
all-no: # nothing
|
all-no: # nothing
|
|
|
libintl.a: $(OBJECTS)
|
libintl.a: $(OBJECTS)
|
rm -f $@
|
rm -f $@
|
$(AR) cru $@ $(OBJECTS)
|
$(AR) cru $@ $(OBJECTS)
|
$(RANLIB) $@
|
$(RANLIB) $@
|
|
|
libintl.h: $(srcdir)/libgnuintl.h
|
libintl.h: $(srcdir)/libgnuintl.h
|
cp $(srcdir)/libgnuintl.h $@
|
cp $(srcdir)/libgnuintl.h $@
|
|
|
.SUFFIXES:
|
.SUFFIXES:
|
.SUFFIXES: .c .y .o
|
.SUFFIXES: .c .y .o
|
|
|
.c.o:
|
.c.o:
|
$(COMPILE) $<
|
$(COMPILE) $<
|
|
|
.y.c:
|
.y.c:
|
$(YACC) $(YFLAGS) --output $@ $<
|
$(YACC) $(YFLAGS) --output $@ $<
|
rm -f $*.h
|
rm -f $*.h
|
|
|
INCLUDES = -I. -I$(srcdir)
|
INCLUDES = -I. -I$(srcdir)
|
|
|
check: all
|
check: all
|
|
|
# The installation targets have been disabled.
|
# The installation targets have been disabled.
|
install: install-exec install-data
|
install: install-exec install-data
|
install-exec: all
|
install-exec: all
|
install-data: all
|
install-data: all
|
install-strip: install
|
install-strip: install
|
installdirs:
|
installdirs:
|
installcheck:
|
installcheck:
|
uninstall:
|
uninstall:
|
|
|
.PHONY: info dvi ps pdf html
|
.PHONY: info dvi ps pdf html
|
.PHONY: install-info install-dvi install-ps install-pdf install-html
|
.PHONY: install-info install-dvi install-ps install-pdf install-html
|
|
|
info dvi ps pdf html:
|
info dvi ps pdf html:
|
install-info install-dvi install-ps install-pdf install-html:
|
install-info install-dvi install-ps install-pdf install-html:
|
|
|
$(OBJECTS): config.h libintl.h
|
$(OBJECTS): config.h libintl.h
|
bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
|
bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
|
dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \
|
dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \
|
localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h
|
localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h
|
dcigettext.o loadmsgcat.o: hash-string.h
|
dcigettext.o loadmsgcat.o: hash-string.h
|
explodename.o l10nflist.o: loadinfo.h
|
explodename.o l10nflist.o: loadinfo.h
|
dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h
|
dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h
|
dcigettext.o: eval-plural.h
|
dcigettext.o: eval-plural.h
|
localcharset.o: localcharset.h
|
localcharset.o: localcharset.h
|
localealias.o localcharset.o relocatable.o: relocatable.h
|
localealias.o localcharset.o relocatable.o: relocatable.h
|
|
|
tags: TAGS
|
tags: TAGS
|
TAGS: $(HEADERS) $(SOURCES)
|
TAGS: $(HEADERS) $(SOURCES)
|
here=`pwd`; cd $(srcdir) && \
|
here=`pwd`; cd $(srcdir) && \
|
etags -o $$here/TAGS $(HEADERS) $(SOURCES)
|
etags -o $$here/TAGS $(HEADERS) $(SOURCES)
|
|
|
ctags: CTAGS
|
ctags: CTAGS
|
CTAGS: $(HEADERS) $(SOURCES)
|
CTAGS: $(HEADERS) $(SOURCES)
|
here=`pwd`; cd $(srcdir) && \
|
here=`pwd`; cd $(srcdir) && \
|
ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
|
ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
|
|
|
id: ID
|
id: ID
|
ID: $(HEADERS) $(SOURCES)
|
ID: $(HEADERS) $(SOURCES)
|
here=`pwd`; cd $(srcdir) && \
|
here=`pwd`; cd $(srcdir) && \
|
mkid -f$$here/ID $(HEADERS) $(SOURCES)
|
mkid -f$$here/ID $(HEADERS) $(SOURCES)
|
|
|
mostlyclean:
|
mostlyclean:
|
rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
|
rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
|
|
|
clean: mostlyclean
|
clean: mostlyclean
|
|
|
distclean: clean
|
distclean: clean
|
rm -f config.status config.cache config.log config.intl config.h
|
rm -f config.status config.cache config.log config.intl config.h
|
rm -f Makefile ID TAGS
|
rm -f Makefile ID TAGS
|
|
|
maintainer-clean: distclean
|
maintainer-clean: distclean
|
|
|
# The 'make dist' targets have been disabled; the GNU toolchain handles this
|
# The 'make dist' targets have been disabled; the GNU toolchain handles this
|
# with a script maintained separately from the Makefile.
|
# with a script maintained separately from the Makefile.
|
dist:
|
dist:
|
distdir:
|
distdir:
|
|
|
# Rules to rebuild the configuration
|
# Rules to rebuild the configuration
|
|
|
Makefile: $(srcdir)/Makefile.in config.status
|
Makefile: $(srcdir)/Makefile.in config.status
|
$(SHELL) ./config.status Makefile
|
$(SHELL) ./config.status Makefile
|
|
|
config.intl: $(srcdir)/config.intl.in config.status
|
config.intl: $(srcdir)/config.intl.in config.status
|
$(SHELL) ./config.status config.intl
|
$(SHELL) ./config.status config.intl
|
|
|
config.status: $(srcdir)/configure
|
config.status: $(srcdir)/configure
|
$(SHELL) ./config.status --recheck
|
$(SHELL) ./config.status --recheck
|
|
|
$(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
|
$(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
|
cd $(srcdir) && $(AUTOCONF)
|
cd $(srcdir) && $(AUTOCONF)
|
|
|
aclocal_deps = \
|
aclocal_deps = \
|
$(srcdir)/configure.ac \
|
$(srcdir)/configure.ac \
|
$(srcdir)/../config/codeset.m4 \
|
$(srcdir)/../config/codeset.m4 \
|
$(srcdir)/../config/gettext.m4 \
|
$(srcdir)/../config/gettext.m4 \
|
$(srcdir)/../config/glibc21.m4 \
|
$(srcdir)/../config/glibc21.m4 \
|
$(srcdir)/../config/iconv.m4 \
|
$(srcdir)/../config/iconv.m4 \
|
$(srcdir)/../config/intdiv0.m4 \
|
$(srcdir)/../config/intdiv0.m4 \
|
$(srcdir)/../config/inttypes-pri.m4 \
|
$(srcdir)/../config/inttypes-pri.m4 \
|
$(srcdir)/../config/inttypes.m4 \
|
$(srcdir)/../config/inttypes.m4 \
|
$(srcdir)/../config/inttypes_h.m4 \
|
$(srcdir)/../config/inttypes_h.m4 \
|
$(srcdir)/../config/lcmessage.m4 \
|
$(srcdir)/../config/lcmessage.m4 \
|
$(srcdir)/../config/lib-ld.m4 \
|
$(srcdir)/../config/lib-ld.m4 \
|
$(srcdir)/../config/lib-link.m4 \
|
$(srcdir)/../config/lib-link.m4 \
|
$(srcdir)/../config/lib-prefix.m4 \
|
$(srcdir)/../config/lib-prefix.m4 \
|
$(srcdir)/../config/nls.m4 \
|
$(srcdir)/../config/nls.m4 \
|
$(srcdir)/../config/po.m4 \
|
$(srcdir)/../config/po.m4 \
|
$(srcdir)/../config/progtest.m4 \
|
$(srcdir)/../config/progtest.m4 \
|
$(srcdir)/../config/stdint_h.m4 \
|
$(srcdir)/../config/stdint_h.m4 \
|
$(srcdir)/../config/uintmax_t.m4 \
|
$(srcdir)/../config/uintmax_t.m4 \
|
$(srcdir)/../config/ulonglong.m4
|
$(srcdir)/../config/ulonglong.m4
|
|
|
$(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
|
$(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
|
cd $(srcdir) && $(ACLOCAL) -I ../config
|
cd $(srcdir) && $(ACLOCAL) -I ../config
|
|
|
config.h: stamp-h1
|
config.h: stamp-h1
|
test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
|
test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
|
|
|
stamp-h1: $(srcdir)/config.h.in config.status
|
stamp-h1: $(srcdir)/config.h.in config.status
|
-rm -f stamp-h1
|
-rm -f stamp-h1
|
$(SHELL) ./config.status config.h
|
$(SHELL) ./config.status config.h
|
|
|
$(srcdir)/config.h.in: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
|
$(srcdir)/config.h.in: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
|
cd $(srcdir) && $(AUTOHEADER)
|
cd $(srcdir) && $(AUTOHEADER)
|
-rm -f stamp-h1
|
-rm -f stamp-h1
|
|
|
# Tell versions [3.59,3.63) of GNU make not to export all variables.
|
# Tell versions [3.59,3.63) of GNU make not to export all variables.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
.NOEXPORT:
|
.NOEXPORT:
|
|
|