Thu Jun 8 02:50:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
[glibc.git] / locale / Makefile
blob1a37f44923198040517810a28fd85aa1f9b6ba0d
1 # Copyright (C) 1991, 1992, 1995 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 Library General Public License as
6 # published by the Free Software Foundation; either version 2 of the
7 # 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 # Library General Public License for more details.
14 # You should have received a copy of the GNU Library General Public
15 # License along with the GNU C Library; see the file COPYING.LIB. If
16 # not, write to the Free Software Foundation, Inc., 675 Mass Ave,
17 # Cambridge, MA 02139, USA.
20 # Makefile for locales.
22 subdir := locale
24 headers = locale.h
25 distribute = localeinfo.h categories.def \
26 $(localedef-modules:=.c) $(locale-modules:=.c) \
27 $(lib-modules:=.c) config.h hash.h iso-4217.def \
28 keyword.gperf keyword.h localedef.h token.h error.h
29 routines = setlocale loadlocale localeconv nl_langinfo
30 categories = ctype messages monetary numeric time collate
31 aux = $(categories:%=lc-%) $(categories:%=C-%)
32 others = localedef locale
33 install-bin = localedef locale
34 extra-objs = $(localedef-modules:=.o) $(locale-modules:=.o) \
35 $(lib-modules:=.o)
37 localedef-modules := charmap locfile-lex locfile-parse locale-ctype \
38 monetary messages collate numeric
39 locale-modules := ctypedump
40 lib-modules := error hash xmalloc
43 GPERF = gperf
44 GPERFFLAGS = -acCgopt -k1,2,5,$$
46 include ../Rules
48 keyword.h: keyword.gperf
49 $(GPERF) $(GPERFFLAGS) $< > $@.new
50 mv -f $@.new $@
52 $(objpfx)localedef: $(localedef-modules:%=$(objpfx)%.o)
53 $(objpfx)locale: $(locale-modules:%=$(objpfx)%.o)
54 $(objpfx)localedef $(objpfx)locale: $(lib-modules:%=$(objpfx)%.o)
56 CPPFLAGS += -DLOCALE_PATH='"$(localedir)"' -DCHARMAP_PATH='"$(nlsdir)/charmap"'