2002-01-24 17:32:12 +00:00
|
|
|
## Makefile.in for ICU data
|
2011-05-04 13:25:37 +00:00
|
|
|
## Copyright (c) 1999-2011, International Business Machines Corporation and
|
2002-01-24 17:32:12 +00:00
|
|
|
## others. All Rights Reserved.
|
|
|
|
|
|
|
|
## Source directory information
|
2000-08-29 07:28:22 +00:00
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
# So that you have $(top_builddir)/config.status
|
2000-10-26 19:28:33 +00:00
|
|
|
top_builddir = ..
|
|
|
|
|
2002-04-19 02:19:24 +00:00
|
|
|
## All the flags and other definitions are included here.
|
2000-10-26 19:28:33 +00:00
|
|
|
include $(top_builddir)/icudefs.mk
|
2000-08-29 07:28:22 +00:00
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
## Build directory information
|
|
|
|
# So that $(top_builddir)/$(subdir) ~= "here"
|
|
|
|
subdir = data
|
2000-08-29 07:28:22 +00:00
|
|
|
|
2001-05-15 04:29:28 +00:00
|
|
|
#lib icu data for link
|
2004-05-14 20:08:13 +00:00
|
|
|
LIB_ICUDATA_NAME=$(LIBICU)$(DATA_STUBNAME)$(ICULIBSUFFIX)
|
|
|
|
LIB_STATIC_ICUDATA_NAME=$(LIBSICU)$(DATA_STUBNAME)$(ICULIBSUFFIX)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2003-09-23 00:29:28 +00:00
|
|
|
# Allow Windows to override these options
|
|
|
|
ifeq ($(PKGDATA_OPTS),)
|
|
|
|
PKGDATA_OPTS = -O $(top_builddir)/data/icupkg.inc
|
|
|
|
endif
|
2004-03-31 22:33:46 +00:00
|
|
|
ifeq ($(PKGDATA_VERSIONING),)
|
|
|
|
PKGDATA_VERSIONING = -r $(SO_TARGET_VERSION)
|
|
|
|
endif
|
2003-09-23 00:29:28 +00:00
|
|
|
|
2004-05-11 04:51:53 +00:00
|
|
|
# This allows all the data to be in one directory
|
|
|
|
ifeq ($(PKGDATA_MODE),dll)
|
|
|
|
ICUPKGDATA_OUTDIR = $(LIBDIR)
|
|
|
|
else
|
2009-09-25 01:56:41 +00:00
|
|
|
ifeq ($(PKGDATA_MODE),static)
|
|
|
|
ICUPKGDATA_OUTDIR = $(LIBDIR)
|
|
|
|
else
|
2004-05-11 04:51:53 +00:00
|
|
|
ICUPKGDATA_OUTDIR = $(OUTDIR)
|
|
|
|
endif
|
2009-09-25 01:56:41 +00:00
|
|
|
endif
|
2004-05-11 04:51:53 +00:00
|
|
|
|
2004-03-31 22:33:46 +00:00
|
|
|
CURDIR:=$(CURR_FULL_DIR)
|
2010-06-03 19:41:43 +00:00
|
|
|
# current directory should not be blank
|
|
|
|
ifeq ($(CURDIR),)
|
|
|
|
CURDIR=.
|
|
|
|
endif
|
2009-04-01 01:54:14 +00:00
|
|
|
PKGDATA = $(TOOLBINDIR)/pkgdata $(PKGDATA_OPTS) -q -c -s $(CURDIR)/out/build/$(ICUDATA_PLATFORM_NAME) -d $(ICUPKGDATA_OUTDIR)
|
2004-04-14 19:37:00 +00:00
|
|
|
|
2005-03-30 06:04:37 +00:00
|
|
|
ifeq ($(OS390_STUBDATA),1)
|
|
|
|
OS390PKG=package390
|
|
|
|
OS390INSTALL=install390
|
|
|
|
|
|
|
|
# Additional data for 390
|
|
|
|
OS390LIST=$(OUTTMPDIR)/icudata390.lst
|
|
|
|
OUTTMPDIR_390STUB=$(top_builddir)/data/out/tmp_390stub
|
|
|
|
endif
|
2000-08-29 07:28:22 +00:00
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
# OBJDATADIR must be a short path (with ..'s) to the data.
|
|
|
|
|
2004-10-21 00:10:03 +00:00
|
|
|
ifeq ($(top_srcdir),..)
|
|
|
|
SRCDATADIR=.
|
|
|
|
else
|
2002-01-24 17:32:12 +00:00
|
|
|
SRCDATADIR=$(top_srcdir)/data
|
2004-10-21 00:10:03 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(top_builddir),..)
|
|
|
|
OUTDIR=./out
|
|
|
|
else
|
2002-01-24 17:32:12 +00:00
|
|
|
OUTDIR=$(top_builddir)/data/out
|
2004-10-21 00:10:03 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
OUTTMPDIR=$(OUTDIR)/tmp
|
2005-03-30 06:04:37 +00:00
|
|
|
MAINBUILDDIR=$(OUTDIR)/build
|
2005-03-25 18:07:50 +00:00
|
|
|
BUILDDIR=$(MAINBUILDDIR)/$(ICUDATA_PLATFORM_NAME)
|
2002-01-24 17:32:12 +00:00
|
|
|
UNICODEDATADIR=$(SRCDATADIR)/unidata
|
|
|
|
LOCSRCDIR=$(SRCDATADIR)/locales
|
2009-11-12 21:53:42 +00:00
|
|
|
CURRSRCDIR=$(SRCDATADIR)/curr
|
|
|
|
CURRBLDDIR=$(BUILDDIR)/curr
|
|
|
|
LANGSRCDIR=$(SRCDATADIR)/lang
|
|
|
|
LANGBLDDIR=$(BUILDDIR)/lang
|
|
|
|
REGIONSRCDIR=$(SRCDATADIR)/region
|
|
|
|
REGIONBLDDIR=$(BUILDDIR)/region
|
|
|
|
ZONESRCDIR=$(SRCDATADIR)/zone
|
|
|
|
ZONEBLDDIR=$(BUILDDIR)/zone
|
2004-04-14 19:37:00 +00:00
|
|
|
COLSRCDIR=$(SRCDATADIR)/coll
|
|
|
|
COLBLDDIR=$(BUILDDIR)/coll
|
2004-07-14 18:35:16 +00:00
|
|
|
RBNFSRCDIR=$(SRCDATADIR)/rbnf
|
|
|
|
RBNFBLDDIR=$(BUILDDIR)/rbnf
|
2004-08-03 18:00:01 +00:00
|
|
|
TRANSLITSRCDIR=$(SRCDATADIR)/translit
|
|
|
|
TRANSLITBLDDIR=$(BUILDDIR)/translit
|
2003-08-15 18:18:46 +00:00
|
|
|
MISCSRCDIR=$(SRCDATADIR)/misc
|
2002-01-24 17:32:12 +00:00
|
|
|
BRKSRCDIR=$(SRCDATADIR)/brkitr
|
2006-03-23 00:54:12 +00:00
|
|
|
BRKBLDDIR=$(BUILDDIR)/brkitr
|
2002-01-24 17:32:12 +00:00
|
|
|
MISCSRCDIR=$(SRCDATADIR)/misc
|
|
|
|
UCMSRCDIR=$(SRCDATADIR)/mappings
|
2009-02-02 16:16:07 +00:00
|
|
|
SPREPSRCDIR=$(SRCDATADIR)/sprep
|
2002-10-30 22:39:56 +00:00
|
|
|
COMINCDIR=$(top_srcdir)/common/unicode
|
2003-05-07 01:37:01 +00:00
|
|
|
SRCLISTDEPS=Makefile $(srcdir)/Makefile.in
|
2009-11-12 21:53:42 +00:00
|
|
|
BUILD_DIRS=$(OUTDIR) $(MAINBUILDDIR) $(BUILDDIR) $(CURRBLDDIR) $(LANGBLDDIR) $(REGIONBLDDIR) $(ZONEBLDDIR) $(BRKBLDDIR) $(COLBLDDIR) $(RBNFBLDDIR) $(TRANSLITBLDDIR) $(OUTTMPDIR) $(OUTTMPDIR_390STUB) $(OUTTMPDIR)/$(CURR_TREE) $(OUTTMPDIR)/$(LANG_TREE) $(OUTTMPDIR)/$(REGION_TREE) $(OUTTMPDIR)/$(ZONE_TREE) $(OUTTMPDIR)/$(COLLATION_TREE) $(OUTTMPDIR)/$(RBNF_TREE) $(OUTTMPDIR)/$(TRANSLIT_TREE) $(OUTTMPDIR)/$(BREAK_TREE)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
# relative lib links from pkgdata are the same as for tmp
|
|
|
|
TOOLDIR=$(top_builddir)/tools
|
|
|
|
|
2000-08-29 07:28:22 +00:00
|
|
|
## List of phony targets
|
2004-07-19 14:10:08 +00:00
|
|
|
.PHONY : all all-local all-recursive install install-local install-files \
|
2000-08-29 07:28:22 +00:00
|
|
|
install-recursive clean clean-local clean-recursive distclean \
|
2002-01-24 17:32:12 +00:00
|
|
|
distclean-local distclean-recursive dist dist-local dist-recursive \
|
2009-07-17 22:57:26 +00:00
|
|
|
check check-local check-recursive build-local clean-resindex build-dir icudata.jar
|
2000-08-29 07:28:22 +00:00
|
|
|
|
|
|
|
## Clear suffix list
|
|
|
|
.SUFFIXES :
|
|
|
|
|
|
|
|
## List of standard targets
|
2002-01-24 17:32:12 +00:00
|
|
|
all: all-local
|
2002-01-29 00:59:55 +00:00
|
|
|
install: all-local install-local
|
2002-01-24 17:32:12 +00:00
|
|
|
clean: clean-local
|
|
|
|
distclean : distclean-local
|
|
|
|
dist:
|
|
|
|
check: all
|
2000-08-29 07:28:22 +00:00
|
|
|
|
2010-02-27 06:38:11 +00:00
|
|
|
-include Makefile.local
|
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
distclean-local: clean
|
|
|
|
$(RMV) Makefile
|
2002-03-15 18:17:14 +00:00
|
|
|
|
2004-08-06 06:18:13 +00:00
|
|
|
all-local: build-dir icupkg.inc build-local packagedata $(POST_DATA_BUILD) $(OS390PKG)
|
2000-12-01 17:20:26 +00:00
|
|
|
|
2000-08-29 07:28:22 +00:00
|
|
|
dist-local:
|
|
|
|
|
2002-07-31 20:28:32 +00:00
|
|
|
clean-map:
|
|
|
|
-test -z *.map || $(RMV) *.map
|
|
|
|
|
|
|
|
clean-local: cleanpackage cleanfiles clean-map
|
2002-03-15 18:17:14 +00:00
|
|
|
|
2000-12-01 17:20:26 +00:00
|
|
|
cleanfiles:
|
2000-08-29 07:28:22 +00:00
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
2000-12-01 17:20:26 +00:00
|
|
|
|
2002-03-15 18:17:14 +00:00
|
|
|
cleanpackage:
|
|
|
|
$(RMV) $(OUTDIR)
|
2004-05-14 20:08:13 +00:00
|
|
|
$(RMV) $(LIBDIR)/$(LIB_ICUDATA_NAME)*.$(SO)* $(LIBDIR)/$(LIB_STATIC_ICUDATA_NAME).$(A)
|
2000-08-29 07:28:22 +00:00
|
|
|
|
|
|
|
check-local:
|
|
|
|
|
2005-03-30 06:04:37 +00:00
|
|
|
# Find out if we have a source archive.
|
|
|
|
# If we have that, then use that instead of building everything from scratch.
|
|
|
|
ICUDATA_SOURCE_ARCHIVE = $(wildcard $(srcdir)/in/$(ICUDATA_PLATFORM_NAME).dat)
|
|
|
|
ifeq ($(ICUDATA_SOURCE_ARCHIVE),)
|
|
|
|
ICUDATA_ARCHIVE = $(firstword $(wildcard $(srcdir)/in/$(ICUDATA_BASENAME_VERSION)*.dat))
|
|
|
|
# We don't have the data in the current endianess or charset.
|
|
|
|
# See if we can find data of any archive type,
|
|
|
|
# and convert it to the current type.
|
|
|
|
ifneq ($(ICUDATA_ARCHIVE),)
|
|
|
|
ICUDATA_SOURCE_ARCHIVE = $(OUTDIR)/$(ICUDATA_PLATFORM_NAME).dat
|
|
|
|
$(ICUDATA_SOURCE_ARCHIVE): $(ICUDATA_ARCHIVE) $(OUTDIR)
|
2009-04-01 01:54:14 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(ICUDATA_ARCHIVE) $(ICUDATA_SOURCE_ARCHIVE)
|
2005-03-30 06:04:37 +00:00
|
|
|
endif
|
2005-06-05 21:23:56 +00:00
|
|
|
else
|
2005-11-02 17:09:40 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),YES)
|
2005-06-05 21:23:56 +00:00
|
|
|
ifeq ($(PKGDATA_MODE),common)
|
|
|
|
# We have a source data common archive in the native endianess,
|
|
|
|
# and it's what we want to build. Try to not run any of ICU's tools.
|
|
|
|
ICUDATA_SOURCE_IS_NATIVE_TARGET=YES
|
|
|
|
endif
|
2005-03-30 06:04:37 +00:00
|
|
|
endif
|
2005-11-02 17:09:40 +00:00
|
|
|
endif
|
2005-03-30 06:04:37 +00:00
|
|
|
|
2007-03-18 08:06:03 +00:00
|
|
|
packagedata: icupkg.inc $(PKGDATA_LIST) build-local
|
2003-04-13 16:18:04 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2007-07-13 06:12:59 +00:00
|
|
|
ifeq ($(PKGDATA_MODE),dll)
|
2010-02-27 06:38:11 +00:00
|
|
|
$(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) -m static $(PKGDATA_VERSIONING) $(PKGDATA_LIST)
|
2003-04-13 16:18:04 +00:00
|
|
|
endif
|
2007-07-13 06:12:59 +00:00
|
|
|
endif
|
2005-06-05 21:23:56 +00:00
|
|
|
ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES)
|
2007-03-18 08:06:03 +00:00
|
|
|
$(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) $(PKGDATA_LIBNAME) $(PKGDATA_LIST)
|
2005-06-05 21:23:56 +00:00
|
|
|
else
|
|
|
|
$(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(OUTDIR)
|
|
|
|
endif
|
2000-12-01 17:20:26 +00:00
|
|
|
|
2002-03-02 22:25:56 +00:00
|
|
|
## Install ICU data.
|
2007-03-18 08:06:03 +00:00
|
|
|
install-local: $(PKGDATA_LIST) ./icupkg.inc packagedata $(OS390INSTALL)
|
2001-11-10 02:09:59 +00:00
|
|
|
$(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(ICUPKGDATA_DIR)
|
2009-02-06 17:42:16 +00:00
|
|
|
ifeq ($(PKGDATA_MODE),files)
|
|
|
|
$(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)
|
2009-11-12 21:53:42 +00:00
|
|
|
$(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(CURR_TREE)
|
|
|
|
$(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(LANG_TREE)
|
|
|
|
$(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(REGION_TREE)
|
|
|
|
$(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(ZONE_TREE)
|
2009-02-06 17:42:16 +00:00
|
|
|
$(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(BREAK_TREE)
|
|
|
|
$(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(COLLATION_TREE)
|
|
|
|
$(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(RBNF_TREE)
|
|
|
|
$(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(TRANSLIT_TREE)
|
|
|
|
endif
|
2003-04-13 16:18:04 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2007-07-13 06:12:59 +00:00
|
|
|
ifeq ($(PKGDATA_MODE),dll)
|
2007-03-18 08:06:03 +00:00
|
|
|
$(PKGDATA_INVOKE) $(PKGDATA) -m static -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_LIBDIR)
|
2003-04-13 16:18:04 +00:00
|
|
|
endif
|
2007-07-13 06:12:59 +00:00
|
|
|
endif
|
2005-06-05 21:23:56 +00:00
|
|
|
ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES)
|
2007-03-18 08:06:03 +00:00
|
|
|
$(PKGDATA_INVOKE) $(PKGDATA) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_DIR)
|
2005-06-05 21:23:56 +00:00
|
|
|
else
|
2005-06-14 23:39:54 +00:00
|
|
|
$(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(DESTDIR)$(ICUPKGDATA_DIR)
|
2005-06-05 21:23:56 +00:00
|
|
|
endif
|
2000-08-29 07:28:22 +00:00
|
|
|
|
2004-01-12 17:51:52 +00:00
|
|
|
|
2001-11-06 22:19:17 +00:00
|
|
|
####
|
|
|
|
####
|
|
|
|
#### 390 support
|
2004-06-18 22:41:55 +00:00
|
|
|
install390: package390
|
2001-11-09 02:24:19 +00:00
|
|
|
$(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(libdir)
|
2004-10-15 23:47:14 +00:00
|
|
|
$(INVOKE) $(PKGDATA) -s $(BUILDDIR)$(STUB_SUFFIX) -T $(OUTTMPDIR_390STUB) -p $(ICUDATA_NAME)$(STUB_SUFFIX) $(PKGDATA_LIBNAME)$(STUB_SUFFIX) -e $(ICUDATA_ENTRY_POINT) $(OS390LIST) -m dll $(PKGDATA_VERSIONING) -I $(DESTDIR)$(ICUPKGDATA_DIR)
|
2003-03-19 01:56:39 +00:00
|
|
|
ifeq ($(PKGDATA_MODE),dll)
|
2008-10-10 16:52:15 +00:00
|
|
|
$(INSTALL-L) $(ICUPKGDATA_OUTDIR)/$(FINAL_IMPORT_LIB) $(DESTDIR)$(ICUPKGDATA_DIR)/$(FINAL_IMPORT_LIB)
|
2003-03-19 01:56:39 +00:00
|
|
|
endif
|
2001-11-09 02:24:19 +00:00
|
|
|
|
2004-06-18 22:41:55 +00:00
|
|
|
#### $(LIB_ICUDATA_NAME)$(STUB_SUFFIX) is the subset data for batch mode
|
2007-03-18 08:06:03 +00:00
|
|
|
package390: $(OUTTMPDIR)/icudata390.lst $(PKGDATA_LIST) ./icupkg.inc packagedata
|
2004-06-18 22:41:55 +00:00
|
|
|
ln -s $(ICUDATA_NAME) $(OUTDIR)/build/$(ICUDATA_NAME)$(STUB_SUFFIX)
|
2004-10-15 23:47:14 +00:00
|
|
|
$(INVOKE) $(PKGDATA) -s $(BUILDDIR)$(STUB_SUFFIX) -T $(OUTTMPDIR_390STUB) -p $(ICUDATA_NAME)$(STUB_SUFFIX) $(PKGDATA_LIBNAME)$(STUB_SUFFIX) -e $(ICUDATA_ENTRY_POINT) $(OS390LIST) -m dll $(PKGDATA_VERSIONING)
|
2004-05-11 04:51:53 +00:00
|
|
|
cp $(ICUPKGDATA_OUTDIR)/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO) $(top_builddir)/stubdata/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO)
|
2001-10-05 16:53:08 +00:00
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
##### Define all the data files. the build rule that depends on them is below.
|
2004-04-14 19:37:00 +00:00
|
|
|
# X_FILES_SHORT = just the base names (for lists)
|
|
|
|
# X_FILES = full paths (for dependency)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
## DAT files - Misc. data files.
|
2005-05-05 17:43:10 +00:00
|
|
|
# 2005-may-05 Removed Unicode properties files (unorm.icu, uprops.icu, ucase.icu, ubidi.icu)
|
|
|
|
# from data build. See Jitterbug 4497. (makedata.mak revision 1.117)
|
2010-12-31 18:21:36 +00:00
|
|
|
# 2010-dec Removed pnames.icu.
|
|
|
|
# These are now hardcoded in ICU4C and only loaded in ICU4J.
|
2005-05-05 17:43:10 +00:00
|
|
|
#
|
2010-12-31 18:21:36 +00:00
|
|
|
DAT_FILES_SHORT=unames.icu cnvalias.icu coll/ucadata.icu coll/invuca.icu nfc.nrm nfkc.nrm nfkc_cf.nrm uts46.nrm
|
2004-04-14 19:37:00 +00:00
|
|
|
DAT_FILES=$(DAT_FILES_SHORT:%=$(BUILDDIR)/%)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
## BRK files
|
2006-03-23 00:54:12 +00:00
|
|
|
BREAK_TREE=brkitr
|
2004-09-13 16:00:27 +00:00
|
|
|
-include $(BRKSRCDIR)/brkfiles.mk
|
|
|
|
-include $(BRKSRCDIR)/brklocal.mk
|
2006-04-21 00:55:24 +00:00
|
|
|
ALL_BRK_SOURCE= $(BRK_SOURCE) $(BRK_SOURCE_LOCAL)
|
2006-03-23 00:54:12 +00:00
|
|
|
BRK_FILES_SHORT=$(ALL_BRK_SOURCE:%.txt=$(BREAK_TREE)/%.brk)
|
|
|
|
BRK_FILES=$(ALL_BRK_SOURCE:%.txt=$(BRKBLDDIR)/%.brk)
|
2006-04-21 00:55:24 +00:00
|
|
|
ifdef BRK_CTD_SOURCE
|
|
|
|
ALL_CTD_SOURCE=$(BRK_CTD_SOURCE) $(BRK_CTD_SOURCE_LOCAL)
|
2006-03-23 00:54:12 +00:00
|
|
|
CTD_FILES_SHORT=$(ALL_CTD_SOURCE:%.txt=$(BREAK_TREE)/%.ctd)
|
|
|
|
CTD_FILES=$(ALL_CTD_SOURCE:%.txt=$(BRKBLDDIR)/%.ctd)
|
2006-04-21 00:55:24 +00:00
|
|
|
endif
|
|
|
|
ifdef BRK_RES_SOURCE
|
|
|
|
BRS_SRC= root.txt $(BRK_RES_SOURCE) $(BRK_RES_SOURCE_LOCAL)
|
|
|
|
BRS_SRC_FILES = $(BRS_SRC:%=$(BRKSRCDIR)/%)
|
|
|
|
INSTALLED_BRS_FILES = $(BRK_RES_SOURCE:%.txt=%) $(BRK_RES_SOURCE_LOCAL:%.txt=%)
|
|
|
|
endif
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2009-03-09 23:40:15 +00:00
|
|
|
## Confusables (Spoofing) files
|
|
|
|
ALL_CFU_SOURCE=$(UNICODEDATADIR)/confusables.txt $(UNICODEDATADIR)/confusablesWholeScript.txt
|
|
|
|
CFU_FILES_SHORT=confusables.cfu
|
|
|
|
CFU_FILES=$(BUILDDIR)/$(CFU_FILES_SHORT)
|
|
|
|
|
2004-09-13 16:00:27 +00:00
|
|
|
## UCM files
|
2002-01-24 17:32:12 +00:00
|
|
|
-include $(UCMSRCDIR)/ucmcore.mk
|
|
|
|
-include $(UCMSRCDIR)/ucmfiles.mk
|
|
|
|
-include $(UCMSRCDIR)/ucmebcdic.mk
|
|
|
|
-include $(UCMSRCDIR)/ucmlocal.mk
|
2002-12-13 04:08:27 +00:00
|
|
|
ALL_UCM_SOURCE=ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm $(UCM_SOURCE_CORE) $(UCM_SOURCE_FILES) $(UCM_SOURCE_EBCDIC) $(UCM_SOURCE_LOCAL)
|
2002-01-24 17:32:12 +00:00
|
|
|
UCM_FILES = $(ALL_UCM_SOURCE:%=$(SRCDATADIR)/%)
|
2004-04-14 19:37:00 +00:00
|
|
|
CNV_FILES = $(ALL_UCM_SOURCE:%.ucm=$(BUILDDIR)/%.cnv)
|
|
|
|
CNV_FILES_SHORT = $(ALL_UCM_SOURCE:%.ucm=%.cnv)
|
2010-03-02 00:05:10 +00:00
|
|
|
UCM_SOURCE_SPECIAL=$(UCM_SOURCE_EBCDIC_IGNORE_SISO) $(UCM_SOURCE_EBCDIC_IGNORE_SISO_LOCAL)
|
2010-02-27 03:39:15 +00:00
|
|
|
UCM_FILES_SPECIAL=$(UCM_SOURCE_SPECIAL:%=$(UCMSRCDIR)/%)
|
|
|
|
CNV_FILES_SPECIAL=$(UCM_SOURCE_SPECIAL:%.ucm=$(BUILDDIR)/%.cnv)
|
|
|
|
CNV_FILES_SHORT_SPECIAL=$(UCM_SOURCE_SPECIAL:%.ucm=%.cnv)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
## RES files
|
2003-05-07 01:37:01 +00:00
|
|
|
-include $(LOCSRCDIR)/resfiles.mk
|
2009-11-12 21:53:42 +00:00
|
|
|
-include $(CURRSRCDIR)/resfiles.mk
|
|
|
|
-include $(LANGSRCDIR)/resfiles.mk
|
|
|
|
-include $(REGIONSRCDIR)/resfiles.mk
|
|
|
|
-include $(ZONESRCDIR)/resfiles.mk
|
2004-04-14 19:37:00 +00:00
|
|
|
-include $(COLSRCDIR)/colfiles.mk
|
2004-07-14 18:35:16 +00:00
|
|
|
-include $(RBNFSRCDIR)/rbnffiles.mk
|
2004-08-03 20:06:47 +00:00
|
|
|
-include $(TRANSLITSRCDIR)/trnsfiles.mk
|
2002-01-24 17:32:12 +00:00
|
|
|
-include $(LOCSRCDIR)/reslocal.mk
|
2009-11-12 21:53:42 +00:00
|
|
|
-include $(CURRSRCDIR)/reslocal.mk
|
|
|
|
-include $(LANGSRCDIR)/reslocal.mk
|
|
|
|
-include $(REGIONSRCDIR)/reslocal.mk
|
|
|
|
-include $(ZONESRCDIR)/reslocal.mk
|
2004-04-14 19:37:00 +00:00
|
|
|
-include $(COLSRCDIR)/collocal.mk
|
2006-03-23 00:54:12 +00:00
|
|
|
-include $(BRKSRCDIR)/brslocal.mk
|
2004-07-14 18:35:16 +00:00
|
|
|
-include $(RBNFSRCDIR)/rbnflocal.mk
|
2005-06-28 21:32:52 +00:00
|
|
|
-include $(TRANSLITSRCDIR)/trnslocal.mk
|
2005-06-06 01:23:13 +00:00
|
|
|
ifdef GENRB_SOURCE
|
2007-11-01 23:10:52 +00:00
|
|
|
RES_SRC= root.txt $(GENRB_SOURCE) $(GENRB_ALIAS_SOURCE) $(GENRB_SOURCE_LOCAL) $(GENRB_ALIAS_SOURCE_LOCAL)
|
2004-07-14 18:35:16 +00:00
|
|
|
RES_SRC_FILES = $(RES_SRC:%=$(LOCSRCDIR)/%)
|
2003-02-25 01:49:34 +00:00
|
|
|
INSTALLED_RB_FILES = $(GENRB_SOURCE:%.txt=%) $(GENRB_SOURCE_LOCAL:%.txt=%)
|
2005-06-06 01:23:13 +00:00
|
|
|
endif
|
2009-11-12 21:53:42 +00:00
|
|
|
ifdef CURR_SOURCE
|
|
|
|
CURR_SRC= root.txt supplementalData.txt $(CURR_SOURCE) $(CURR_ALIAS_SOURCE) $(CURR_SOURCE_LOCAL)
|
|
|
|
CURR_SRC_FILES = $(CURR_SRC:%=$(CURRSRCDIR)/%)
|
|
|
|
INSTALLED_CURR_FILES = $(CURR_SOURCE:%.txt=%) $(CURR_SOURCE_LOCAL:%.txt=%)
|
|
|
|
endif
|
|
|
|
ifdef LANG_SOURCE
|
|
|
|
LANG_SRC= root.txt $(LANG_SOURCE) $(LANG_ALIAS_SOURCE) $(LANG_SOURCE_LOCAL)
|
|
|
|
LANG_SRC_FILES = $(LANG_SRC:%=$(LANGSRCDIR)/%)
|
|
|
|
INSTALLED_LANG_FILES = $(LANG_SOURCE:%.txt=%) $(LANG_SOURCE_LOCAL:%.txt=%)
|
|
|
|
endif
|
|
|
|
ifdef REGION_SOURCE
|
|
|
|
REGION_SRC= root.txt $(REGION_SOURCE) $(REGION_ALIAS_SOURCE) $(REGION_SOURCE_LOCAL)
|
|
|
|
REGION_SRC_FILES = $(REGION_SRC:%=$(REGIONSRCDIR)/%)
|
|
|
|
INSTALLED_REGION_FILES = $(REGION_SOURCE:%.txt=%) $(REGION_SOURCE_LOCAL:%.txt=%)
|
|
|
|
endif
|
|
|
|
ifdef ZONE_SOURCE
|
|
|
|
ZONE_SRC= root.txt $(ZONE_SOURCE) $(ZONE_ALIAS_SOURCE) $(ZONE_SOURCE_LOCAL)
|
|
|
|
ZONE_SRC_FILES = $(ZONE_SRC:%=$(ZONESRCDIR)/%)
|
|
|
|
INSTALLED_ZONE_FILES = $(ZONE_SOURCE:%.txt=%) $(ZONE_SOURCE_LOCAL:%.txt=%)
|
|
|
|
endif
|
2005-06-06 01:23:13 +00:00
|
|
|
ifdef COLLATION_SOURCE
|
2004-07-14 18:35:16 +00:00
|
|
|
COL_SRC= root.txt $(COLLATION_SOURCE) $(COLLATION_ALIAS_SOURCE) $(COLLATION_SOURCE_LOCAL)
|
|
|
|
COL_SRC_FILES = $(COL_SRC:%=$(COLSRCDIR)/%)
|
2004-04-14 19:37:00 +00:00
|
|
|
INSTALLED_COL_FILES = $(COLLATION_SOURCE:%.txt=%) $(COLLATION_SOURCE_LOCAL:%.txt=%)
|
2005-06-06 01:23:13 +00:00
|
|
|
endif
|
|
|
|
ifdef RBNF_SOURCE
|
|
|
|
RBNF_SRC= root.txt $(RBNF_SOURCE) $(RBNF_ALIAS_SOURCE) $(RBNF_SOURCE_LOCAL)
|
2004-07-14 18:35:16 +00:00
|
|
|
RBNF_SRC_FILES = $(RBNF_SRC:%=$(RBNFSRCDIR)/%)
|
2004-08-03 23:11:13 +00:00
|
|
|
INSTALLED_RBNF_FILES = $(RBNF_SOURCE:%.txt=%) $(RBNF_SOURCE_LOCAL:%.txt=%)
|
2005-06-06 01:23:13 +00:00
|
|
|
endif
|
|
|
|
ifdef TRANSLIT_SOURCE
|
2005-06-05 21:23:56 +00:00
|
|
|
TRANSLIT_SRC= $(TRANSLIT_SOURCE) $(TRANSLIT_ALIAS_SOURCE) $(TRANSLIT_SOURCE_LOCAL)
|
2004-08-03 18:00:01 +00:00
|
|
|
TRANSLIT_SRC_FILES = $(TRANSLIT_SRC:%=$(TRANSLITSRCDIR)/%)
|
|
|
|
INSTALLED_TRANSLIT_FILES = $(TRANSLIT_SOURCE:%.txt=%) $(TRANSLIT_SOURCE_LOCAL:%.txt=%)
|
2005-06-06 01:23:13 +00:00
|
|
|
endif
|
2004-07-18 23:09:17 +00:00
|
|
|
GENRBOPTS=-k
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2003-08-15 18:18:46 +00:00
|
|
|
## MISC files
|
|
|
|
-include $(MISCSRCDIR)/miscfiles.mk
|
|
|
|
-include $(MISCSRCDIR)/misclocal.mk
|
2009-11-12 21:53:42 +00:00
|
|
|
MSC_SOURCE= $(MISC_SOURCE) $(MISC_SOURCE_LOCAL)
|
2003-08-15 18:18:46 +00:00
|
|
|
MSC_SRC_FILES=$(MSC_SOURCE:%=$(MISCSRCDIR)/%)
|
|
|
|
|
2004-05-17 20:48:59 +00:00
|
|
|
ifeq ($(ENABLE_SO_VERSION_DATA),1)
|
|
|
|
ifeq ($(PKGDATA_MODE),dll)
|
|
|
|
SO_VERSION_DATA = $(OUTTMPDIR)/icudata.res
|
|
|
|
$(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc
|
2011-06-25 02:05:22 +00:00
|
|
|
rc.exe /i$(srcdir)/../common /i$(top_builddir)/common /fo$@ $(CPPFLAGS) $(SOURCE_FILE)
|
2004-05-17 20:48:59 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2004-04-14 19:37:00 +00:00
|
|
|
INDEX_NAME=res_index
|
|
|
|
INDEX_FILE=$(OUTTMPDIR)/$(INDEX_NAME).txt
|
2010-02-22 23:05:33 +00:00
|
|
|
|
|
|
|
ALL_RES_SRC= $(RES_SRC) $(TRNS_SOURCE) $(MSC_SOURCE)
|
|
|
|
RES_FILES = $(ALL_RES_SRC:%.txt=$(BUILDDIR)/%.res) $(BUILDDIR)/$(INDEX_NAME).res $(BUILDDIR)/pool.res
|
|
|
|
RES_FILES_SHORT = $(ALL_RES_SRC:%.txt=%.res) $(INDEX_NAME).res pool.res
|
|
|
|
PKGDATA_LIST = $(OUTTMPDIR)/icudata.lst
|
2004-04-14 19:37:00 +00:00
|
|
|
|
2009-11-12 21:53:42 +00:00
|
|
|
CURR_TREE=curr
|
|
|
|
CURR_INDEX_FILE=$(OUTTMPDIR)/$(CURR_TREE)/$(INDEX_NAME).txt
|
2010-02-22 23:05:33 +00:00
|
|
|
CURR_FILES = $(CURR_SRC:%.txt=$(CURRBLDDIR)/%.res) $(CURRBLDDIR)/$(INDEX_NAME).res $(CURRBLDDIR)/pool.res
|
|
|
|
CURR_FILES_SHORT = $(CURR_SRC:%.txt=$(CURR_TREE)/%.res) $(CURR_TREE)/$(INDEX_NAME).res $(CURR_TREE)/pool.res
|
2009-11-12 21:53:42 +00:00
|
|
|
|
|
|
|
LANG_TREE=lang
|
|
|
|
LANG_INDEX_FILE=$(OUTTMPDIR)/$(LANG_TREE)/$(INDEX_NAME).txt
|
2010-02-22 23:05:33 +00:00
|
|
|
LANG_FILES = $(LANG_SRC:%.txt=$(LANGBLDDIR)/%.res) $(LANGBLDDIR)/$(INDEX_NAME).res $(LANGBLDDIR)/pool.res
|
|
|
|
LANG_FILES_SHORT = $(LANG_SRC:%.txt=$(LANG_TREE)/%.res) $(LANG_TREE)/$(INDEX_NAME).res $(LANG_TREE)/pool.res
|
2009-11-12 21:53:42 +00:00
|
|
|
|
|
|
|
REGION_TREE=region
|
|
|
|
REGION_INDEX_FILE=$(OUTTMPDIR)/$(REGION_TREE)/$(INDEX_NAME).txt
|
2010-02-22 23:05:33 +00:00
|
|
|
REGION_FILES = $(REGION_SRC:%.txt=$(REGIONBLDDIR)/%.res) $(REGIONBLDDIR)/$(INDEX_NAME).res $(REGIONBLDDIR)/pool.res
|
|
|
|
REGION_FILES_SHORT = $(REGION_SRC:%.txt=$(REGION_TREE)/%.res) $(REGION_TREE)/$(INDEX_NAME).res $(REGION_TREE)/pool.res
|
2009-11-12 21:53:42 +00:00
|
|
|
|
|
|
|
ZONE_TREE=zone
|
|
|
|
ZONE_INDEX_FILE=$(OUTTMPDIR)/$(ZONE_TREE)/$(INDEX_NAME).txt
|
2010-02-22 23:05:33 +00:00
|
|
|
ZONE_FILES = $(ZONE_SRC:%.txt=$(ZONEBLDDIR)/%.res) $(ZONEBLDDIR)/$(INDEX_NAME).res $(ZONEBLDDIR)/pool.res
|
|
|
|
ZONE_FILES_SHORT = $(ZONE_SRC:%.txt=$(ZONE_TREE)/%.res) $(ZONE_TREE)/$(INDEX_NAME).res $(ZONE_TREE)/pool.res
|
2009-11-12 21:53:42 +00:00
|
|
|
|
2004-04-14 19:37:00 +00:00
|
|
|
COLLATION_TREE=coll
|
|
|
|
COLLATION_INDEX_FILE=$(OUTTMPDIR)/$(COLLATION_TREE)/$(INDEX_NAME).txt
|
|
|
|
COLLATION_INDEX_RES=$(COLBLDDIR)/$(INDEX_NAME).res
|
|
|
|
COLLATION_INDEX_RES_SHORT=$(COLLATION_TREE)/$(INDEX_NAME).res
|
2004-07-14 18:35:16 +00:00
|
|
|
COLLATION_FILES = $(COL_SRC:%.txt=$(COLBLDDIR)/%.res) $(COLLATION_INDEX_RES)
|
|
|
|
COLLATION_FILES_SHORT = $(COL_SRC:%.txt=$(COLLATION_TREE)/%.res)
|
|
|
|
|
2006-04-21 00:55:24 +00:00
|
|
|
BRK_RES_INDEX_FILE=$(OUTTMPDIR)/$(BREAK_TREE)/$(INDEX_NAME).txt
|
|
|
|
BRK_RES_INDEX_RES=$(BRKBLDDIR)/$(INDEX_NAME).res
|
|
|
|
BRK_RES_INDEX_RES_SHORT=$(BREAK_TREE)/$(INDEX_NAME).res
|
|
|
|
BRK_RES_FILES = $(BRS_SRC:%.txt=$(BRKBLDDIR)/%.res) $(BRK_RES_INDEX_RES)
|
|
|
|
BRK_RES_FILES_SHORT = $(BRS_SRC:%.txt=$(BREAK_TREE)/%.res)
|
2006-03-23 00:54:12 +00:00
|
|
|
|
2004-07-14 18:35:16 +00:00
|
|
|
RBNF_TREE=rbnf
|
|
|
|
RBNF_INDEX_FILE=$(OUTTMPDIR)/$(RBNF_TREE)/$(INDEX_NAME).txt
|
|
|
|
RBNF_INDEX_RES=$(RBNFBLDDIR)/$(INDEX_NAME).res
|
|
|
|
RBNF_INDEX_RES_SHORT=$(RBNF_TREE)/$(INDEX_NAME).res
|
|
|
|
RBNF_FILES = $(RBNF_SRC:%.txt=$(RBNFBLDDIR)/%.res) $(RBNF_INDEX_RES)
|
|
|
|
RBNF_FILES_SHORT = $(RBNF_SRC:%.txt=$(RBNF_TREE)/%.res)
|
2002-05-13 17:26:51 +00:00
|
|
|
|
2004-08-03 18:00:01 +00:00
|
|
|
TRANSLIT_TREE=translit
|
|
|
|
#TRANSLIT_INDEX_FILE=$(OUTTMPDIR)/$(TRANSLIT_TREE)/$(INDEX_NAME).txt
|
|
|
|
#TRANSLIT_INDEX_RES=$(TRANSLITBLDDIR)/$(INDEX_NAME).res
|
|
|
|
#TRANSLIT_INDEX_RES_SHORT=$(TRANSLIT_TREE)/$(INDEX_NAME).res
|
|
|
|
TRANSLIT_FILES = $(TRANSLIT_SRC:%.txt=$(TRANSLITBLDDIR)/%.res)
|
|
|
|
TRANSLIT_FILES_SHORT = $(TRANSLIT_SRC:%.txt=$(TRANSLIT_TREE)/%.res)
|
|
|
|
|
2009-02-02 16:16:07 +00:00
|
|
|
## SPP files
|
|
|
|
-include $(SPREPSRCDIR)/sprepfiles.mk
|
|
|
|
-include $(SPREPSRCDIR)/spreplocal.mk
|
|
|
|
ALL_SPREP_SOURCE=$(SPREP_SOURCE) $(SPREP_SOURCE_LOCAL)
|
|
|
|
SPREP_FILES = $(ALL_SPREP_SOURCE:%.txt=$(BUILDDIR)/%.spp)
|
|
|
|
SPREP_FILES_SHORT = $(ALL_SPREP_SOURCE:%.txt=%.spp)
|
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
## All generated files
|
2010-02-27 03:39:15 +00:00
|
|
|
ALL_FILES = $(DAT_FILES) $(CNV_FILES) $(CNV_FILES_SPECIAL) $(BRK_FILES) $(CTD_FILES) $(RES_FILES) $(INDEX_RES_FILE) $(CURR_FILES) $(LANG_FILES) $(REGION_FILES) $(ZONE_FILES) $(COLLATION_FILES) $(BRK_RES_FILES) $(RBNF_FILES) $(TRANSLIT_FILES) $(SPREP_FILES) $(CFU_FILES)
|
2009-11-12 21:53:42 +00:00
|
|
|
ALL_INDEX_SRC_FILES = $(PKGDATA_LIST) $(INDEX_FILE) $(CURR_INDEX_FILE) $(LANG_INDEX_FILE) $(REGION_INDEX_FILE) $(ZONE_INDEX_FILE) $(COLLATION_INDEX_FILE) $(BRK_RES_INDEX_FILE) $(RBNF_INDEX_FILE)
|
2004-04-14 19:37:00 +00:00
|
|
|
# a list to use in the .lst files (package-relative)
|
2010-02-19 23:31:57 +00:00
|
|
|
COLL_FILES_LIST=$(COLLATION_FILES_SHORT) $(COLLATION_INDEX_RES_SHORT)
|
|
|
|
BRK_FILES_LIST=$(BRK_FILES_SHORT) $(CTD_FILES_SHORT) $(BRK_RES_FILES_SHORT) $(BRK_RES_INDEX_RES_SHORT)
|
2010-02-22 23:05:33 +00:00
|
|
|
LOCALE_FILES_LIST= $(RES_FILES_SHORT) $(LANG_FILES_SHORT) $(REGION_FILES_SHORT) $(ZONE_FILES_SHORT)
|
2010-02-27 03:39:15 +00:00
|
|
|
MISC_FILES_LIST=$(DAT_FILES_SHORT) $(CNV_FILES_SHORT) $(CNV_FILES_SHORT_SPECIAL) $(CURR_FILES_SHORT) $(RBNF_FILES_SHORT) $(RBNF_INDEX_RES_SHORT) $(TRANSLIT_FILES_SHORT) $(SPREP_FILES_SHORT) $(CFU_FILES_SHORT)
|
2010-12-31 18:21:36 +00:00
|
|
|
UNI_CORE_DATA=pnames.icu uprops.icu ucase.icu ubidi.icu
|
2007-05-02 07:29:47 +00:00
|
|
|
UNI_CORE_TARGET_DATA=$(UNI_CORE_DATA:%=$(BUILDDIR)/%)
|
|
|
|
|
|
|
|
ifneq ($(INCLUDE_UNI_CORE_DATA),)
|
2010-02-19 23:31:57 +00:00
|
|
|
MISC_FILES_LIST+=$(UNI_CORE_DATA)
|
2007-05-02 07:29:47 +00:00
|
|
|
build-local: uni-core-data
|
|
|
|
endif
|
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
#####################################################
|
|
|
|
# General data build rules
|
|
|
|
|
|
|
|
## Files to remove for 'make clean'
|
2002-03-15 18:17:14 +00:00
|
|
|
CLEANFILES = *~ icupkg.inc
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2005-03-25 18:07:50 +00:00
|
|
|
ifeq ($(ICUDATA_SOURCE_ARCHIVE),)
|
2007-03-18 08:06:03 +00:00
|
|
|
build-local: build-dir $(SO_VERSION_DATA) $(ALL_FILES) $(PKGDATA_LIST) $(OS390LIST)
|
|
|
|
$(PKGDATA_LIST): $(SRCLISTDEPS)
|
2002-01-24 17:32:12 +00:00
|
|
|
@echo "generating $@ (list of data files)"
|
|
|
|
@-$(RMV) $@
|
2010-02-19 23:31:57 +00:00
|
|
|
@for file in $(COLL_FILES_LIST); do \
|
|
|
|
echo $$file >> $@; \
|
|
|
|
done;
|
|
|
|
@for file in $(BRK_FILES_LIST); do \
|
|
|
|
echo $$file >> $@; \
|
|
|
|
done;
|
|
|
|
@for file in $(LOCALE_FILES_LIST); do \
|
|
|
|
echo $$file >> $@; \
|
|
|
|
done;
|
|
|
|
@for file in $(MISC_FILES_LIST); do \
|
2002-01-24 17:32:12 +00:00
|
|
|
echo $$file >> $@; \
|
|
|
|
done;
|
2005-03-25 18:07:50 +00:00
|
|
|
else
|
2007-03-18 08:06:03 +00:00
|
|
|
build-local: build-dir $(SO_VERSION_DATA) $(PKGDATA_LIST) $(OS390LIST)
|
2007-08-30 09:35:31 +00:00
|
|
|
$(PKGDATA_LIST): $(SRCLISTDEPS) $(ICUDATA_SOURCE_ARCHIVE)
|
2005-06-05 21:23:56 +00:00
|
|
|
ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES)
|
2005-03-25 18:07:50 +00:00
|
|
|
@echo "Unpacking $(ICUDATA_SOURCE_ARCHIVE) and generating $@ (list of data files)"
|
|
|
|
@-$(RMV) $@
|
2009-05-12 18:57:04 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg -d $(BUILDDIR) --list -x \* $(ICUDATA_SOURCE_ARCHIVE) -o $@
|
2005-06-05 21:23:56 +00:00
|
|
|
else
|
|
|
|
@echo "$@" > $@
|
|
|
|
endif
|
2005-03-25 18:07:50 +00:00
|
|
|
endif
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
|
2008-09-23 00:51:46 +00:00
|
|
|
$(BUILD_DIRS): build-dir
|
|
|
|
|
2006-11-28 10:33:26 +00:00
|
|
|
build-dir:
|
|
|
|
@list='$(BUILD_DIRS)'; \
|
|
|
|
for dir in $$list; do \
|
|
|
|
if ! test -d $$dir; then \
|
|
|
|
echo $(MKINSTALLDIRS) $(BUILD_DIRS); \
|
|
|
|
$(MKINSTALLDIRS) $(BUILD_DIRS); \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
2007-03-18 08:06:03 +00:00
|
|
|
# The | is an order-only prerequisite. This helps when the -j option is used,
|
|
|
|
# and we don't want the files to be built before the directories are built.
|
2007-03-21 00:34:53 +00:00
|
|
|
ifneq ($(filter order-only,$(.FEATURES)),)
|
2007-03-18 08:06:03 +00:00
|
|
|
$(ALL_FILES) $(ALL_INDEX_SRC_FILES): | build-dir
|
2007-03-21 00:34:53 +00:00
|
|
|
endif
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
# Now, sections for building each kind of data.
|
|
|
|
|
|
|
|
#################################################### DAT
|
|
|
|
# DAT FILES
|
|
|
|
|
2002-06-28 23:59:22 +00:00
|
|
|
# cnvalias.icu
|
2009-04-01 01:54:14 +00:00
|
|
|
$(BUILDDIR)/cnvalias.icu: $(UCMSRCDIR)/convrtrs.txt $(TOOLBINDIR)/gencnval$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/gencnval -d $(BUILDDIR) $(UCMSRCDIR)/convrtrs.txt
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2010-01-06 23:50:03 +00:00
|
|
|
# Targets for prebuilt Unicode data
|
2010-04-09 23:30:02 +00:00
|
|
|
$(BUILDDIR)/%.icu: $(SRCDATADIR)/in/%.icu
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@
|
|
|
|
|
2010-01-06 23:50:03 +00:00
|
|
|
$(BUILDDIR)/%.nrm: $(SRCDATADIR)/in/%.nrm
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@
|
|
|
|
|
2010-04-10 04:14:01 +00:00
|
|
|
$(BUILDDIR)/coll/%.icu: $(SRCDATADIR)/in/coll/%.icu
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@
|
|
|
|
|
2009-02-02 16:16:07 +00:00
|
|
|
#################################################### SPP
|
|
|
|
# SPP FILES
|
|
|
|
|
2010-12-31 18:21:36 +00:00
|
|
|
$(BUILDDIR)/%.spp: $(SPREPSRCDIR)/%.txt $(TOOLBINDIR)/gensprep$(TOOLEXEEXT) $(BUILDDIR)/unames.icu
|
2009-04-01 01:54:14 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/gensprep -d $(BUILDDIR) -i $(BUILDDIR) -s $(SPREPSRCDIR) -b $(@F:%.spp=%) -m $(UNICODEDATADIR) -u 3.2.0 $(<F)
|
2003-03-14 21:43:13 +00:00
|
|
|
|
2002-07-10 23:45:51 +00:00
|
|
|
#################################################### BRK
|
|
|
|
# BRK FILES
|
|
|
|
|
2006-03-23 00:54:12 +00:00
|
|
|
#thaidict.brk: $(SRCDATADIR)/thaidict.brk
|
|
|
|
# $(RMV) $@ && ln -s $(BUILDDIR) $@
|
2011-05-04 13:25:37 +00:00
|
|
|
|
|
|
|
#khmerdict.brk: $(SRCDATADIR)/khmerdict.brk
|
|
|
|
# $(RMV) $@ && ln -s $(BUILDDIR) $@
|
2002-07-10 23:45:51 +00:00
|
|
|
|
2009-04-01 01:54:14 +00:00
|
|
|
$(BRKBLDDIR)/%.brk: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genbrk$(TOOLEXEEXT) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genbrk -c -i $(BUILDDIR) -r $< -o $@
|
2002-07-10 23:45:51 +00:00
|
|
|
|
2006-03-23 00:54:12 +00:00
|
|
|
#################################################### CTD
|
|
|
|
# CTD FILES
|
|
|
|
|
2009-04-01 01:54:14 +00:00
|
|
|
$(BRKBLDDIR)/%.ctd: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genctd$(TOOLEXEEXT) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genctd -c -i $(BUILDDIR) -o $@ $<
|
2006-03-23 00:54:12 +00:00
|
|
|
|
2009-03-09 23:40:15 +00:00
|
|
|
#################################################### CFU
|
|
|
|
# CFU FILES
|
|
|
|
# Note: gencfu requires two input files to produce a single output file.
|
|
|
|
# There will be exactly one target file and two source files.
|
|
|
|
# The $(word n, ...) selects the nth word from the following stuff.
|
|
|
|
# There must be a nicer way to do this.
|
|
|
|
|
2010-06-03 19:55:20 +00:00
|
|
|
$(CFU_FILES): $(ALL_CFU_SOURCE) $(TOOLBINDIR)/gencfu$(TOOLEXEEXT) $(DAT_FILES)
|
2009-03-09 23:40:15 +00:00
|
|
|
$(INVOKE) echo ALL_CFU_SOURCE: $(ALL_CFU_SOURCE)
|
|
|
|
$(INVOKE) echo CFU_FILES: $(CFU_FILES)
|
|
|
|
$(INVOKE) echo CFU_FILES_SHORT: $(CFU_FILES_SHORT)
|
2009-04-01 01:54:14 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/gencfu -c -i $(BUILDDIR) -r $(word 1,$(ALL_CFU_SOURCE)) -w $(word 2,$(ALL_CFU_SOURCE)) -o $@
|
2009-03-09 23:40:15 +00:00
|
|
|
|
|
|
|
|
2002-07-17 15:13:08 +00:00
|
|
|
#################################################### CNV
|
|
|
|
# CNV FILES
|
2010-02-27 03:39:15 +00:00
|
|
|
$(CNV_FILES_SPECIAL) : $(UCM_FILES_SPECIAL) $(TOOLBINDIR)/makeconv$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/makeconv --ignore-siso-check -c -d $(BUILDDIR) $(UCMSRCDIR)/$(@F:%.cnv=%.ucm)
|
2009-04-01 01:54:14 +00:00
|
|
|
$(BUILDDIR)/%.cnv: $(UCMSRCDIR)/%.ucm $(TOOLBINDIR)/makeconv$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/makeconv -c -d $(BUILDDIR) $(UCMSRCDIR)/$(<F)
|
2002-07-17 15:13:08 +00:00
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
#################################################### RES
|
|
|
|
# RES FILES
|
|
|
|
|
2009-11-12 21:53:42 +00:00
|
|
|
### curr res
|
|
|
|
$(CURRBLDDIR)/%.res: $(CURRSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
|
2010-10-29 20:21:33 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(CURRSRCDIR) -d $(CURRBLDDIR) $(<F)
|
2009-11-12 21:53:42 +00:00
|
|
|
|
2010-02-22 23:58:59 +00:00
|
|
|
# copy the curr/pool.res file from the source folder to the build output folder
|
|
|
|
# and swap it to native endianness
|
|
|
|
$(CURRBLDDIR)/pool.res: $(CURRSRCDIR)/pool.res
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(CURRSRCDIR)/pool.res $(CURRBLDDIR)/pool.res
|
|
|
|
|
2009-11-12 21:53:42 +00:00
|
|
|
$(CURRBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(CURR_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(CURR_TREE) -d $(CURRBLDDIR) $(INDEX_NAME).txt
|
|
|
|
|
|
|
|
$(CURR_INDEX_FILE): $(SRCLISTDEPS)
|
|
|
|
@echo "generating $@ (list of installed currency name locales)"; \
|
|
|
|
$(RMV) $@; \
|
|
|
|
echo "// Warning this file is automatically generated" > $@; \
|
|
|
|
echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
|
|
|
|
echo " InstalledLocales {" >> $@; \
|
|
|
|
for file in $(INSTALLED_CURR_FILES); do \
|
|
|
|
echo " $$file {\"\"}" >> $@; \
|
|
|
|
done; \
|
|
|
|
echo " }" >> $@; \
|
|
|
|
echo "}" >> $@;
|
|
|
|
|
|
|
|
### lang res
|
|
|
|
$(LANGBLDDIR)/%.res: $(LANGSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
|
2010-10-29 20:21:33 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(LANGSRCDIR) -d $(LANGBLDDIR) $(<F)
|
2009-11-12 21:53:42 +00:00
|
|
|
|
2010-02-22 23:58:59 +00:00
|
|
|
# copy the lang/pool.res file from the source folder to the build output folder
|
|
|
|
# and swap it to native endianness
|
|
|
|
$(LANGBLDDIR)/pool.res: $(LANGSRCDIR)/pool.res
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(LANGSRCDIR)/pool.res $(LANGBLDDIR)/pool.res
|
|
|
|
|
2009-11-12 21:53:42 +00:00
|
|
|
$(LANGBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(LANG_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(LANG_TREE) -d $(LANGBLDDIR) $(INDEX_NAME).txt
|
|
|
|
|
|
|
|
$(LANG_INDEX_FILE): $(SRCLISTDEPS)
|
|
|
|
@echo "generating $@ (list of installed language name locales)"; \
|
|
|
|
$(RMV) $@; \
|
|
|
|
echo "// Warning this file is automatically generated" > $@; \
|
|
|
|
echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
|
|
|
|
echo " InstalledLocales {" >> $@; \
|
|
|
|
for file in $(INSTALLED_LANG_FILES); do \
|
|
|
|
echo " $$file {\"\"}" >> $@; \
|
|
|
|
done; \
|
|
|
|
echo " }" >> $@; \
|
|
|
|
echo "}" >> $@;
|
|
|
|
|
|
|
|
### region res
|
|
|
|
$(REGIONBLDDIR)/%.res: $(REGIONSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
|
2010-10-29 20:21:33 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(REGIONSRCDIR) -d $(REGIONBLDDIR) $(<F)
|
2009-11-12 21:53:42 +00:00
|
|
|
|
2010-02-22 23:58:59 +00:00
|
|
|
# copy the region/pool.res file from the source folder to the build output folder
|
|
|
|
# and swap it to native endianness
|
|
|
|
$(REGIONBLDDIR)/pool.res: $(REGIONSRCDIR)/pool.res
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(REGIONSRCDIR)/pool.res $(REGIONBLDDIR)/pool.res
|
|
|
|
|
2009-11-12 21:53:42 +00:00
|
|
|
$(REGIONBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(REGION_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(REGION_TREE) -d $(REGIONBLDDIR) $(INDEX_NAME).txt
|
|
|
|
|
|
|
|
$(REGION_INDEX_FILE): $(SRCLISTDEPS)
|
|
|
|
@echo "generating $@ (list of installed region name locales)"; \
|
|
|
|
$(RMV) $@; \
|
|
|
|
echo "// Warning this file is automatically generated" > $@; \
|
|
|
|
echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
|
|
|
|
echo " InstalledLocales {" >> $@; \
|
|
|
|
for file in $(INSTALLED_REGION_FILES); do \
|
|
|
|
echo " $$file {\"\"}" >> $@; \
|
|
|
|
done; \
|
|
|
|
echo " }" >> $@; \
|
|
|
|
echo "}" >> $@;
|
|
|
|
|
|
|
|
### zone res
|
|
|
|
$(ZONEBLDDIR)/%.res: $(ZONESRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
|
2010-10-29 20:21:33 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(ZONESRCDIR) -d $(ZONEBLDDIR) $(<F)
|
2009-11-12 21:53:42 +00:00
|
|
|
|
2010-02-22 23:58:59 +00:00
|
|
|
# copy the zone/pool.res file from the source folder to the build output folder
|
|
|
|
# and swap it to native endianness
|
|
|
|
$(ZONEBLDDIR)/pool.res: $(ZONESRCDIR)/pool.res
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(ZONESRCDIR)/pool.res $(ZONEBLDDIR)/pool.res
|
|
|
|
|
2009-11-12 21:53:42 +00:00
|
|
|
$(ZONEBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(ZONE_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(ZONE_TREE) -d $(ZONEBLDDIR) $(INDEX_NAME).txt
|
|
|
|
|
|
|
|
$(ZONE_INDEX_FILE): $(SRCLISTDEPS)
|
|
|
|
@echo "generating $@ (list of installed time zone name locales)"; \
|
|
|
|
$(RMV) $@; \
|
|
|
|
echo "// Warning this file is automatically generated" > $@; \
|
|
|
|
echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
|
|
|
|
echo " InstalledLocales {" >> $@; \
|
|
|
|
for file in $(INSTALLED_ZONE_FILES); do \
|
|
|
|
echo " $$file {\"\"}" >> $@; \
|
|
|
|
done; \
|
|
|
|
echo " }" >> $@; \
|
|
|
|
echo "}" >> $@;
|
|
|
|
|
2004-04-14 19:37:00 +00:00
|
|
|
### collation res
|
2009-04-01 01:54:14 +00:00
|
|
|
$(COLBLDDIR)/%.res: $(COLSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(COLSRCDIR) -d $(COLBLDDIR) $(<F)
|
2004-04-14 19:37:00 +00:00
|
|
|
|
2009-04-01 01:54:14 +00:00
|
|
|
$(COLBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(COLLATION_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(COLLATION_TREE) -d $(COLBLDDIR) $(INDEX_NAME).txt
|
2004-04-14 19:37:00 +00:00
|
|
|
|
2007-03-18 08:06:03 +00:00
|
|
|
$(COLLATION_INDEX_FILE): $(SRCLISTDEPS)
|
2004-04-14 19:37:00 +00:00
|
|
|
@echo "generating $@ (list of installed collation locales)"; \
|
|
|
|
$(RMV) $@; \
|
|
|
|
echo "// Warning this file is automatically generated" > $@; \
|
2005-11-29 00:10:07 +00:00
|
|
|
echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
|
2004-04-14 19:37:00 +00:00
|
|
|
echo " InstalledLocales {" >> $@; \
|
|
|
|
for file in $(INSTALLED_COL_FILES); do \
|
|
|
|
echo " $$file {\"\"}" >> $@; \
|
|
|
|
done; \
|
|
|
|
echo " }" >> $@; \
|
|
|
|
echo "}" >> $@;
|
|
|
|
|
2006-03-23 00:54:12 +00:00
|
|
|
### brk res
|
2009-04-01 01:54:14 +00:00
|
|
|
$(BRKBLDDIR)/%.res: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(BRK_FILES) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(BRKSRCDIR) -d $(BRKBLDDIR) $(<F)
|
2006-03-23 00:54:12 +00:00
|
|
|
|
2009-04-01 01:54:14 +00:00
|
|
|
$(BRKBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(BREAK_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(BREAK_TREE) -d $(BRKBLDDIR) $(INDEX_NAME).txt
|
2006-03-23 00:54:12 +00:00
|
|
|
|
2007-03-18 08:06:03 +00:00
|
|
|
$(BRK_RES_INDEX_FILE): $(SRCLISTDEPS)
|
2006-03-23 00:54:12 +00:00
|
|
|
@echo "generating $@ (list of installed break locales)"; \
|
|
|
|
$(RMV) $@; \
|
|
|
|
echo "// Warning this file is automatically generated" > $@; \
|
|
|
|
echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
|
|
|
|
echo " InstalledLocales {" >> $@; \
|
|
|
|
for file in $(INSTALLED_BRS_FILES); do \
|
|
|
|
echo " $$file {\"\"}" >> $@; \
|
|
|
|
done; \
|
|
|
|
echo " }" >> $@; \
|
|
|
|
echo "}" >> $@;
|
|
|
|
|
2004-07-14 18:35:16 +00:00
|
|
|
### RBNF res
|
2009-04-01 01:54:14 +00:00
|
|
|
$(RBNFBLDDIR)/%.res: $(RBNFSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(RBNFSRCDIR) -d $(RBNFBLDDIR) $(<F)
|
2004-07-14 18:35:16 +00:00
|
|
|
|
2009-04-01 01:54:14 +00:00
|
|
|
$(RBNFBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(RBNF_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(RBNF_TREE) -d $(RBNFBLDDIR) $(INDEX_NAME).txt
|
2004-04-14 19:37:00 +00:00
|
|
|
|
2007-03-18 08:06:03 +00:00
|
|
|
$(RBNF_INDEX_FILE): $(SRCLISTDEPS)
|
2004-07-14 18:35:16 +00:00
|
|
|
@echo "generating $@ (list of installed RBNF locales)"; \
|
|
|
|
$(RMV) $@; \
|
|
|
|
echo "// Warning this file is automatically generated" > $@; \
|
2005-11-29 00:10:07 +00:00
|
|
|
echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
|
2004-07-14 18:35:16 +00:00
|
|
|
echo " InstalledLocales {" >> $@; \
|
|
|
|
for file in $(INSTALLED_RBNF_FILES); do \
|
|
|
|
echo " $$file {\"\"}" >> $@; \
|
|
|
|
done; \
|
|
|
|
echo " }" >> $@; \
|
|
|
|
echo "}" >> $@;
|
2004-04-14 19:37:00 +00:00
|
|
|
|
2004-08-03 18:00:01 +00:00
|
|
|
### TRANSLIT res
|
2009-04-01 01:54:14 +00:00
|
|
|
$(TRANSLITBLDDIR)/%.res: $(TRANSLITSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(TRANSLITSRCDIR) -d $(TRANSLITBLDDIR) $(<F)
|
2008-10-10 16:52:15 +00:00
|
|
|
|
2004-04-14 19:37:00 +00:00
|
|
|
### normal (locale) res
|
2002-07-17 15:13:08 +00:00
|
|
|
all-RES: $(RES_FILES)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2009-04-01 01:54:14 +00:00
|
|
|
$(BUILDDIR)/%.res: $(LOCSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
|
2010-10-29 20:21:33 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(LOCSRCDIR) -d $(BUILDDIR) $(<F)
|
2009-07-17 22:57:26 +00:00
|
|
|
|
2010-02-22 23:58:59 +00:00
|
|
|
# copy the locales/pool.res file from the source folder to the build output folder
|
2009-07-17 22:57:26 +00:00
|
|
|
# and swap it to native endianness
|
|
|
|
$(BUILDDIR)/pool.res: $(LOCSRCDIR)/pool.res
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(LOCSRCDIR)/pool.res $(BUILDDIR)/pool.res
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2010-03-02 05:54:19 +00:00
|
|
|
# if the tzcode directory contains a new tzdata*.tar.gz file, use it for zoneinfo
|
2009-11-30 22:55:19 +00:00
|
|
|
ifeq ($(TZDATA),)
|
2006-08-11 22:23:08 +00:00
|
|
|
TZDATA = $(firstword $(wildcard $(top_builddir)/tools/tzcode/tzdata*.tar.gz) $(wildcard $(top_srcdir)/tools/tzcode/tzdata*.tar.gz))
|
2009-11-30 22:55:19 +00:00
|
|
|
endif
|
2006-08-05 03:29:17 +00:00
|
|
|
|
2006-08-04 01:18:19 +00:00
|
|
|
ifneq ($(TZDATA),)
|
2006-08-05 03:29:17 +00:00
|
|
|
|
2006-08-11 22:23:08 +00:00
|
|
|
TZCODE_DIR=$(top_builddir)/tools/tzcode
|
2010-03-02 05:54:19 +00:00
|
|
|
ZONEINFO=$(TZCODE_DIR)/zoneinfo64.txt
|
2006-08-05 03:29:17 +00:00
|
|
|
|
2010-03-02 05:54:19 +00:00
|
|
|
# Override the normal genrb for zoneinfo to always pull from
|
|
|
|
# icu/source/tools/tzcode/zoneinfo64.txt
|
|
|
|
$(BUILDDIR)/zoneinfo64.res: $(ZONEINFO) $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
|
2006-08-11 22:23:08 +00:00
|
|
|
@echo Note: $(MISCSRCDIR)/zoneinfo.txt is IGNORED because $(TZDATA) is present.
|
2009-04-01 01:54:14 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -q -i $(BUILDDIR) -d $(BUILDDIR) $(ZONEINFO)
|
2006-08-11 22:23:08 +00:00
|
|
|
|
2010-03-02 05:54:19 +00:00
|
|
|
# Create the tzcode tool and zoneinfo as needed.
|
2006-08-11 22:23:08 +00:00
|
|
|
$(ZONEINFO): $(TZDATA)
|
|
|
|
@echo "$(MAKE)[$(MAKELEVEL)]: Making \`$(ZONEINFO)' in \`$(TZCODE_DIR)'"; \
|
|
|
|
(cd $(TZCODE_DIR) && $(MAKE)) || exit; \
|
2006-08-05 03:29:17 +00:00
|
|
|
|
2010-03-02 05:54:19 +00:00
|
|
|
# end of zoneinfo-generation
|
2006-08-04 01:18:19 +00:00
|
|
|
endif
|
|
|
|
|
2006-08-05 03:29:17 +00:00
|
|
|
# zoneinfo has some issues. Ignore some warnings with -q
|
2009-04-01 01:54:14 +00:00
|
|
|
$(BUILDDIR)/%.res: $(MISCSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
|
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -q -i $(BUILDDIR) -s $(MISCSRCDIR) -d $(BUILDDIR) $(<F)
|
2006-08-05 03:29:17 +00:00
|
|
|
|
|
|
|
|
2006-08-04 01:18:19 +00:00
|
|
|
|
2007-03-18 08:06:03 +00:00
|
|
|
$(INDEX_FILE): $(SRCLISTDEPS)
|
2002-05-13 17:26:51 +00:00
|
|
|
@echo "generating $@ (list of installed locales)"; \
|
|
|
|
$(RMV) $@; \
|
|
|
|
echo "// Warning this file is automatically generated" > $@; \
|
2005-11-29 00:10:07 +00:00
|
|
|
echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
|
2007-07-25 18:46:17 +00:00
|
|
|
echo " CLDRVersion { \"$(GENRB_CLDR_VERSION)\" }" >> $@; \
|
2003-02-25 01:49:34 +00:00
|
|
|
echo " InstalledLocales {" >> $@; \
|
2002-05-13 17:26:51 +00:00
|
|
|
for file in $(INSTALLED_RB_FILES); do \
|
2003-02-25 01:49:34 +00:00
|
|
|
echo " $$file {\"\"}" >> $@; \
|
2002-05-13 17:26:51 +00:00
|
|
|
done; \
|
|
|
|
echo " }" >> $@; \
|
|
|
|
echo "}" >> $@;
|
|
|
|
|
2003-09-25 00:18:15 +00:00
|
|
|
clean-resindex:
|
2007-03-18 08:06:03 +00:00
|
|
|
-$(RMV) $(BUILDDIR)/$(INDEX_NAME).txt $(PKGDATA_LIST)
|
2003-09-25 00:18:15 +00:00
|
|
|
|
2010-02-22 23:05:33 +00:00
|
|
|
$(BUILDDIR)/$(INDEX_NAME).res: $(INDEX_FILE) $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
|
2009-04-01 01:54:14 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -d $(BUILDDIR) $(INDEX_FILE)
|
2007-05-02 07:29:47 +00:00
|
|
|
|
2010-12-31 18:21:36 +00:00
|
|
|
# The core Unicode properties files (pnames.icu, uprops.icu, ucase.icu, ubidi.icu)
|
2007-05-02 07:29:47 +00:00
|
|
|
# are hardcoded in the common DLL and therefore not included in the data package any more.
|
|
|
|
# They are not built by default but need to be built for ICU4J data and for getting the .c source files
|
|
|
|
# when updating the Unicode data.
|
2010-02-19 19:30:33 +00:00
|
|
|
uni-core-data: build-dir $(UNI_CORE_TARGET_DATA)
|
2007-05-02 07:29:47 +00:00
|
|
|
@echo Unicode .icu files built to $(BUILDDIR)
|
2008-10-10 16:52:15 +00:00
|
|
|
|
2009-07-17 22:57:26 +00:00
|
|
|
# Build the ICU4J icudata.jar.
|
|
|
|
# Command line:
|
|
|
|
# (Run this from the output data folder which may not be .../source/data in an out-of-source build.)
|
|
|
|
# ~/svn.icu/trunk/source/data> make JAR=jar ICU4J_ROOT=~/svn.icu4j/trunk icudata.jar
|
|
|
|
# You can omit the ICU4J_ROOT for just building the .jar files without copying them.
|
|
|
|
# You can omit the JAR if it's just jar.
|
|
|
|
JAR=jar
|
|
|
|
|
|
|
|
# For building the testdata.jar see ../test/testdata/Makefile.
|
|
|
|
|
|
|
|
# Build icudata.jar:
|
|
|
|
# - add the uni-core-data to the ICU package
|
|
|
|
# - swap the ICU data
|
|
|
|
# - extract all data items
|
|
|
|
# - package them into the .jar file
|
|
|
|
$(OUTDIR)/icu4j/icudata.jar: build-dir packagedata $(OUTTMPDIR)/$(ICUDATA_PLATFORM_NAME).dat uni-core-data
|
|
|
|
mkdir -p $(OUTDIR)/icu4j/com/ibm/icu/impl/data/$(ICUDATA_BASENAME_VERSION)b
|
2010-12-31 18:21:36 +00:00
|
|
|
echo pnames.icu ubidi.icu ucase.icu uprops.icu > $(OUTDIR)/icu4j/add.txt
|
2009-07-17 22:57:26 +00:00
|
|
|
$(INVOKE) $(TOOLBINDIR)/icupkg $(OUTTMPDIR)/$(ICUDATA_PLATFORM_NAME).dat $(OUTDIR)/icu4j/$(ICUDATA_BASENAME_VERSION)b.dat -a $(OUTDIR)/icu4j/add.txt -s $(BUILDDIR) -x '*' -tb -d $(OUTDIR)/icu4j/com/ibm/icu/impl/data/$(ICUDATA_BASENAME_VERSION)b
|
|
|
|
$(JAR) cf $(OUTDIR)/icu4j/icudata.jar -C $(OUTDIR)/icu4j com/ibm/icu/impl/data/$(ICUDATA_BASENAME_VERSION)b
|
|
|
|
|
2010-02-02 21:49:58 +00:00
|
|
|
ICU4J_DATA=$(OUTDIR)/icu4j/icudata.jar
|
|
|
|
|
2009-07-17 22:57:26 +00:00
|
|
|
ifdef ICU4J_ROOT
|
|
|
|
|
2010-02-02 21:49:58 +00:00
|
|
|
ICU4J_DATA_INSTALLED=$(ICU4J_ROOT)/main/shared/data/icudata.jar
|
|
|
|
|
2009-07-17 22:57:26 +00:00
|
|
|
$(ICU4J_ROOT)/main/shared/data/icudata.jar: $(OUTDIR)/icu4j/icudata.jar
|
|
|
|
mkdir -p $(ICU4J_ROOT)/main/shared/data
|
|
|
|
cp $(OUTDIR)/icu4j/icudata.jar $(ICU4J_ROOT)/main/shared/data
|
|
|
|
|
2010-02-02 21:49:58 +00:00
|
|
|
icu4j-data-install: $(ICU4J_DATA_INSTALLED)
|
2009-07-17 22:57:26 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
2010-02-02 21:49:58 +00:00
|
|
|
icu4j-data-install: icu4j-data
|
|
|
|
@echo data is built into $(OUTDIR)/icu4j
|
|
|
|
@echo '** Error:' ICU4J_ROOT was not set, could not install
|
|
|
|
exit 1
|
2009-07-17 22:57:26 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2010-02-02 21:49:58 +00:00
|
|
|
icu4j-data: $(ICU4J_DATA)
|
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
###################################################################
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
2008-12-01 21:57:14 +00:00
|
|
|
icupkg.inc: pkgdataMakefile
|
2008-11-24 20:04:52 +00:00
|
|
|
$(MAKE) -f pkgdataMakefile
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2008-12-01 21:57:14 +00:00
|
|
|
pkgdataMakefile:
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
###########
|
2002-05-23 23:23:46 +00:00
|
|
|
########### 390 (z/OS) support
|
2002-12-13 04:08:27 +00:00
|
|
|
UCMFILES390=ebcdic-xml-us.ucm ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm ibm-4909_P100-1999.ucm
|
2010-12-31 18:21:36 +00:00
|
|
|
# used to depend on pnames.icu uprops.icu ucase.icu ubidi.icu
|
|
|
|
# These are now hardcoded in ICU4C and only loaded in ICU4J.
|
|
|
|
ALLFILES390=cnvalias.icu $(UCMFILES390:.ucm=.cnv)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2004-06-18 22:41:55 +00:00
|
|
|
$(OUTTMPDIR)/icudata390.lst: $(SRCLISTDEPS)
|
2002-01-24 17:32:12 +00:00
|
|
|
@echo "generating $@ (list of 390 data files)"
|
|
|
|
@-$(RMV) $@
|
|
|
|
@for file in $(ALLFILES390); do \
|
2004-06-18 22:41:55 +00:00
|
|
|
echo $$file >> $@; \
|
2002-01-24 17:32:12 +00:00
|
|
|
done;
|
2002-05-23 23:23:46 +00:00
|
|
|
|
2004-04-27 19:04:53 +00:00
|
|
|
ifeq ($(POST_DATA_BUILD), os400-data-rebind)
|
|
|
|
os400-data-rebind: $(LIBICUUC)
|
|
|
|
|
|
|
|
$(LIBICUUC): $(LIBICUDT)
|
2004-04-12 23:20:23 +00:00
|
|
|
$(RMV) $(LIBICUUC)
|
|
|
|
(cd ../common && $(MAKE) RECURSIVE=YES) || exit;
|
2004-04-27 19:04:53 +00:00
|
|
|
endif
|
2002-07-17 15:13:08 +00:00
|
|
|
|