* sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
[glibc.git] / catgets / Makefile
blobb4f941140c829ba690ce992f325ff99efcd6aaee
1 # Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library 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 GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, write to the Free
16 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 # 02111-1307 USA.
20 # Makefile for catgets.
22 subdir := catgets
24 headers = nl_types.h
25 distribute = catgetsinfo.h config.h xopen-msg.sed test1.msg \
26 test-gencat.sh sample.SJIS
27 routines = catgets open_catalog
28 others = gencat
29 install-bin = gencat
30 extra-objs = $(gencat-modules:=.o)
32 tests = tst-catgets
33 test-srcs = test-gencat
35 gencat-modules = xmalloc
37 # To find xmalloc.c
38 vpath %.c ../locale/programs
41 include ../Rules
43 $(objpfx)gencat: $(gencat-modules:%=$(objpfx)%.o)
45 catgets-CPPFLAGS := -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"' \
46 -DHAVE_CONFIG_H
48 generated = de.msg test1.cat test1.h sample.SJIS.cat test-gencat.h
49 generated-dirs = de
51 tst-catgets-ENV = NLSPATH="$(objpfx)%l/%N.cat" LANG=de
53 ifneq ($(cross-compiling),yes)
54 tests: $(objpfx)de/libc.cat $(objpfx)test1.cat $(objpfx)test-gencat.out
55 # This test just checks whether the program produces any error or not.
56 # The result is not tested.
57 $(objpfx)test1.cat: test1.msg $(objpfx)gencat
58 LC_ALL=hr_HR.ISO-8859-2 LOCPATH=$(common-objpfx)localedata \
59 GCONV_PATH=$(common-objpfx)iconvdata \
60 $(built-program-cmd) -H $(objpfx)test1.h $@ $<
61 $(objpfx)de/libc.cat: $(objpfx)de.msg $(objpfx)gencat
62 $(make-target-directory)
63 LC_ALL=de_DE.ISO-8859-1 LOCPATH=$(common-objpfx)localedata \
64 GCONV_PATH=$(common-objpfx)iconvdata $(built-program-cmd) $@ $<
65 $(objpfx)tst-catgets.out: $(objpfx)de/libc.cat
67 # Generate a non-simple input file.
68 $(objpfx)de.msg: $(..)po/de.po
69 sed -f xopen-msg.sed $< > $@
71 $(objpfx)test-gencat.out: test-gencat.sh $(objpfx)test-gencat \
72 $(objpfx)sample.SJIS.cat
73 $(SHELL) -e $< $(common-objpfx) '$(built-program-cmd)'
75 $(objpfx)sample.SJIS.cat: sample.SJIS $(objpfx)gencat
76 GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
77 $(built-program-cmd) -H $(objpfx)test-gencat.h < $(word 1,$^) > $@
78 endif