0001
0002
0003 ifneq ($(CONFIG_UNICODE),)
0004 obj-y += unicode.o
0005 endif
0006 obj-$(CONFIG_UNICODE) += utf8data.o
0007 obj-$(CONFIG_UNICODE_NORMALIZATION_SELFTEST) += utf8-selftest.o
0008
0009 unicode-y := utf8-norm.o utf8-core.o
0010
0011 $(obj)/utf8-data.o: $(obj)/utf8data.c
0012
0013
0014
0015
0016
0017 ifdef REGENERATE_UTF8DATA
0018
0019 quiet_cmd_utf8data = GEN $@
0020 cmd_utf8data = $< \
0021 -a $(srctree)/$(src)/DerivedAge.txt \
0022 -c $(srctree)/$(src)/DerivedCombiningClass.txt \
0023 -p $(srctree)/$(src)/DerivedCoreProperties.txt \
0024 -d $(srctree)/$(src)/UnicodeData.txt \
0025 -f $(srctree)/$(src)/CaseFolding.txt \
0026 -n $(srctree)/$(src)/NormalizationCorrections.txt \
0027 -t $(srctree)/$(src)/NormalizationTest.txt \
0028 -o $@
0029
0030 $(obj)/utf8data.c: $(obj)/mkutf8data $(filter %.txt, $(cmd_utf8data)) FORCE
0031 $(call if_changed,utf8data)
0032
0033 else
0034
0035 $(obj)/utf8data.c: $(src)/utf8data.c_shipped FORCE
0036 $(call if_changed,copy)
0037
0038 endif
0039
0040 targets += utf8data.c
0041 hostprogs += mkutf8data