xref: /dragonfly/lib/libc/citrus/Makefile.inc (revision e65bc1c3)
1.PATH: ${.CURDIR}/../libc/citrus
2
3.include "../../i18n_module/Makefile.shlib"
4
5CMAPS+=	${.CURDIR}/citrus/Symbol.map
6
7CFLAGS+=	-DI18NMODULE_MAJOR=${MODULE_SHLIB_MAJOR} -D_I18N_DYNAMIC
8STATIC_LOCALES?=
9
10SRCS+=	citrus_bcs.c citrus_csmapper.c citrus_ctype.c citrus_ctype_fallback.c
11SRCS+=	citrus_db.c citrus_db_hash.c citrus_esdb.c citrus_hash.c
12SRCS+=	citrus_iconv.c citrus_lookup.c citrus_mapper.c citrus_memstream.c
13SRCS+=	citrus_mmap.c citrus_module.c citrus_none.c citrus_stdenc.c
14SRCS+=  citrus_prop.c
15
16# Add the locale modules to compile-in in the static libc.a
17# (and profile/libc.a).
18# If a new locale module is added, the includes and the table in
19# citrus_module.c must be updated.
20# A new module must have the file name citrus_xxx.c where xxx is the lower
21# case name of the module.
22# Currently the modules specified by STATIC_LOCALES are included in the
23# shared libc (but never used). This is a bug.
24.if ${STATIC_LOCALES} != ""
25.PATH: ${.CURDIR}/../libc/citrus/modules
26CFLAGS+=-I${.CURDIR}/../libc/citrus
27CFLAGS+=-D_I18N_STATIC
28.for var in ${STATIC_LOCALES}
29SRCS+= citrus_${var:tl}.c
30CFLAGS+=-D_I18N_STATIC_${var}
31.endfor
32# iconv support
33SRCS+=citrus_iconv_std.c citrus_mapper_std.c citrus_mapper_none.c citrus_mapper_serial.c citrus_utf1632.c
34.endif # STATIC_LOCALES
35