freebsd-skq/usr.bin/localedef/Makefile
Baptiste Daroussin 057ca2d437 Add localedef(1), a locale definition generator tool
The localedef tool can read entire (and unmodified) CLDR posix definition
files, and generate all 6 LC categories: LC_COLLATE, LC_CTYPE, LC_TIME,
LC_NUMERIC, LC_MONETARY and LC_MESSAGES.

This tool has a long history with Solaris.  The Nexenta developers
modified it to read CLDR files and created the much richer collation
formats.  The libc collation functions have to be modified to read the
new format (called "BSD-1.0") and to handle the new data structures.

The result will be that locale-sensitive tools and functions will now
properly sort multibyte and unicode strings.

Obtained from:	Dragonfly
2015-08-07 23:53:31 +00:00

31 lines
550 B
Makefile

# $FreeBSD$
PROG= localedef
SRCS= charmap.c \
collate.c \
ctype.c \
localedef.c \
messages.c \
monetary.c \
numeric.c \
parser.y \
scanner.c \
time.c \
wide.c
WARNS= 3
${SRCS:M*.c}: parser.h
parser.h: parser.y
LIBADD= avl
IGNORE_PRAGMA= yes
CFLAGS+= -DNEED_SOLARIS_BOOLEAN
CFLAGS+= -I. -I${.CURDIR}
CFLAGS+= -I${.CURDIR}/../../lib/libc/locale
CFLAGS+= -I${.CURDIR}/../../lib/libc/stdtime
CFLAGS+= -I${.CURDIR}/../../sys/cddl/compat/opensolaris
CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common
.include <bsd.prog.mk>