diff options
Diffstat (limited to 'newlib/libc/sys/linux/intl/Makefile.am')
-rw-r--r-- | newlib/libc/sys/linux/intl/Makefile.am | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/intl/Makefile.am b/newlib/libc/sys/linux/intl/Makefile.am new file mode 100644 index 00000000000..b6a0de3afae --- /dev/null +++ b/newlib/libc/sys/linux/intl/Makefile.am @@ -0,0 +1,37 @@ +## Process this file with automake to generate Makefile.in + +AUTOMAKE_OPTIONS = cygnus + +INCLUDES = -I$(srcdir)/.. $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) + +LIB_SOURCES = \ + bindtextdom.c catgets.c dcgettext.c dgettext.c gettext.c \ + dcigettext.c dcngettext.c dngettext.c ngettext.c open_catalog.c \ + finddomain.c loadmsgcat.c localealias.c textdomain.c \ + l10nflist.c explodename.c plural.c stpcpy.c + + +libintl_la_LDFLAGS = -Xcompiler -nostdlib + +msgcatdir = /usr/share/locale + +if USE_LIBTOOL +noinst_LTLIBRARIES = libintl.la +libintl_la_SOURCES = $(LIB_SOURCES) +noinst_DATA = objectlist.awk.in +else +noinst_LIBRARIES = lib.a +lib_a_SOURCES = $(LIB_SOURCES) +lib_a_CFLAGS = $(AM_CFLAGS) +noinst_DATA = +endif # USE_LIBTOOL + +include $(srcdir)/../../../../Makefile.shared + +AM_CFLAGS = -DNOT_IN_libc -DHAVE_CONFIG_H -D_GNU_SOURCE -D__libc_enable_secure=1 -D'LOCALEDIR="$(msgcatdir)"' -D'LOCALE_ALIAS_PATH="$(msgcatdir)"' -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"' + +# shouldn't have to do the following, but if needed +BISONFLAGS = --yacc --name-prefix=__gettext --output +plural.c: plural.y + $(BISON) $(BISONFLAGS) $@ $^ + |