2002-01-24 17:32:12 +00:00
|
|
|
## Makefile.in for ICU data
|
2006-01-03 17:59:44 +00:00
|
|
|
## Copyright (c) 1999-2006, 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
|
|
|
|
ICUPKGDATA_OUTDIR = $(OUTDIR)
|
|
|
|
endif
|
|
|
|
|
2004-03-31 22:33:46 +00:00
|
|
|
CURDIR:=$(CURR_FULL_DIR)
|
2005-03-25 18:07:50 +00:00
|
|
|
PKGDATA = $(BINDIR)/pkgdata $(PKGDATA_OPTS) -q -c -s $(CURDIR)/out/build/$(ICUDATA_PLATFORM_NAME) -d $(ICUPKGDATA_OUTDIR) -M'PKGDATA_LDFLAGS="$(LDFLAGSICUDT)"'
|
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
|
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
|
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
|
2006-03-23 00:54:12 +00:00
|
|
|
BUILD_DIRS=$(OUTDIR) $(BUILDDIR) $(BRKBLDDIR) $(COLBLDDIR) $(RBNFBLDDIR) $(TRANSLITBLDDIR) $(TESTOUTDIR) $(TESTBUILDDIR) $(OUTTMPDIR) $(OUTTMPDIR_390STUB) $(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 \
|
2004-07-19 14:10:08 +00:00
|
|
|
check check-local check-recursive build-local clean-resindex build-dir
|
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
|
|
|
|
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
|
|
|
|
2005-05-05 17:43:10 +00:00
|
|
|
# Starting with ICU4C 3.4, the core Unicode properties files (uprops.icu, ucase.icu, ubidi.icu, unorm.icu)
|
|
|
|
# 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.
|
|
|
|
# Changed in Makefile.in revision 1.147. See Jitterbug 4497.
|
|
|
|
uni-core-data: build-dir $(BUILDDIR)/uprops.icu $(BUILDDIR)/ucase.icu $(BUILDDIR)/ubidi.icu $(BUILDDIR)/unorm.icu
|
|
|
|
@echo Unicode .icu files built to $(BUILDDIR)
|
|
|
|
@echo Unicode .c source files built to $(OUTTMPDIR)
|
|
|
|
|
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)
|
2006-01-03 17:59:44 +00:00
|
|
|
$(INVOKE) $(BINDIR)/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
|
|
|
|
2003-05-30 23:39:47 +00:00
|
|
|
# During this INVOKE we only want to use stubdata.
|
|
|
|
# We don't want to try to write over files that we are using.
|
2004-05-11 04:51:53 +00:00
|
|
|
PKGDATA_INVOKE:=$(subst $(LIBDIR):$(top_builddir)/stubdata,$(top_builddir)/stubdata:$(LIBDIR),$(INVOKE)) $(PKGDATA_INVOKE_OPTS)
|
2003-06-02 18:19:46 +00:00
|
|
|
|
2004-04-14 19:37:00 +00:00
|
|
|
packagedata: icupkg.inc $(OUTTMPDIR)/icudata.lst build-local
|
2003-04-13 16:18:04 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2004-05-12 19:58:49 +00:00
|
|
|
$(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) -m static $(OUTTMPDIR)/icudata.lst
|
2003-04-13 16:18:04 +00:00
|
|
|
endif
|
2005-06-05 21:23:56 +00:00
|
|
|
ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES)
|
2004-04-14 19:37:00 +00:00
|
|
|
$(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) $(PKGDATA_LIBNAME) $(OUTTMPDIR)/icudata.lst
|
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.
|
2004-04-14 19:37:00 +00:00
|
|
|
install-local: $(OUTTMPDIR)/icudata.lst ./icupkg.inc packagedata $(OS390INSTALL)
|
2001-11-10 02:09:59 +00:00
|
|
|
$(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(ICUPKGDATA_DIR)
|
2003-04-13 16:18:04 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2004-06-17 18:14:07 +00:00
|
|
|
$(PKGDATA_INVOKE) $(PKGDATA) -m static -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(OUTTMPDIR)/icudata.lst -I $(ICUPKGDATA_INSTALL_LIBDIR)
|
2003-04-13 16:18:04 +00:00
|
|
|
endif
|
2005-06-05 21:23:56 +00:00
|
|
|
ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES)
|
2004-06-17 18:14:07 +00:00
|
|
|
$(PKGDATA_INVOKE) $(PKGDATA) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBNAME) $(OUTTMPDIR)/icudata.lst -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)
|
2004-05-11 04:51:53 +00:00
|
|
|
$(INSTALL-L) $(ICUPKGDATA_OUTDIR)/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX)$(SO_TARGET_VERSION)$(IMPORT_LIB_EXT) $(DESTDIR)$(ICUPKGDATA_DIR)/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX)$(SO_TARGET_VERSION)$(IMPORT_LIB_EXT)
|
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
|
|
|
|
package390: $(OUTTMPDIR)/icudata390.lst $(OUTTMPDIR)/icudata.lst ./icupkg.inc packagedata
|
|
|
|
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)
|
|
|
|
#
|
|
|
|
DAT_FILES_SHORT=pnames.icu unames.icu cnvalias.icu ucadata.icu invuca.icu uidna.spp
|
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
|
|
|
|
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)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
## RES files
|
2003-05-07 01:37:01 +00:00
|
|
|
-include $(LOCSRCDIR)/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
|
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
|
2004-07-14 18:35:16 +00:00
|
|
|
RES_SRC= root.txt $(GENRB_SOURCE) $(GENRB_ALIAS_SOURCE) $(GENRB_SOURCE_LOCAL)
|
|
|
|
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
|
|
|
|
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
|
|
|
|
MSC_SOURCE= $(MISC_SOURCE) $(MISC_SOURCE_LOCAL)
|
|
|
|
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
|
2004-06-07 04:41:08 +00:00
|
|
|
rc.exe /i$(srcdir)/../common /fo$@ $(SOURCE_FILE)
|
2004-05-17 20:48:59 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2004-07-14 18:35:16 +00:00
|
|
|
ALL_RES_SRC= $(RES_SRC) $(TRNS_SOURCE) $(MSC_SOURCE)
|
|
|
|
RES_FILES = $(ALL_RES_SRC:%.txt=$(BUILDDIR)/%.res)
|
|
|
|
RES_FILES_SHORT = $(ALL_RES_SRC:%.txt=%.res)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2004-04-14 19:37:00 +00:00
|
|
|
INDEX_NAME=res_index
|
|
|
|
INDEX_FILE=$(OUTTMPDIR)/$(INDEX_NAME).txt
|
|
|
|
INDEX_RES_FILE=$(INDEX_FILE:$(OUTTMPDIR)/%.txt=$(BUILDDIR)/%.res)
|
|
|
|
INDEX_RES_FILE_SHORT=$(INDEX_FILE:$(OUTTMPDIR)/%.txt=%.res)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2002-01-24 17:32:12 +00:00
|
|
|
## All generated files
|
2006-04-21 00:55:24 +00:00
|
|
|
ALL_FILES = $(DAT_FILES) $(CNV_FILES) $(BRK_FILES) $(CTD_FILES) $(RES_FILES) $(INDEX_RES_FILE) $(COLLATION_FILES) $(BRK_RES_FILES) $(RBNF_FILES) $(TRANSLIT_FILES)
|
2004-04-14 19:37:00 +00:00
|
|
|
# a list to use in the .lst files (package-relative)
|
2006-04-21 00:55:24 +00:00
|
|
|
ALL_FILES_LIST = $(DAT_FILES_SHORT) $(CNV_FILES_SHORT) $(BRK_FILES_SHORT) $(CTD_FILES_SHORT) $(RES_FILES_SHORT) $(INDEX_RES_FILE_SHORT) $(COLLATION_FILES_SHORT) $(COLLATION_INDEX_RES_SHORT) $(BRK_RES_FILES_SHORT) $(BRK_RES_INDEX_RES_SHORT) $(RBNF_FILES_SHORT) $(RBNF_INDEX_RES_SHORT) $(TRANSLIT_FILES_SHORT)
|
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),)
|
|
|
|
build-local: build-dir $(SO_VERSION_DATA) $(ALL_FILES) $(OUTTMPDIR)/icudata.lst $(OS390LIST)
|
2005-03-30 06:04:37 +00:00
|
|
|
$(OUTTMPDIR)/icudata.lst: $(SRCLISTDEPS)
|
2002-01-24 17:32:12 +00:00
|
|
|
@echo "generating $@ (list of data files)"
|
|
|
|
@-$(RMV) $@
|
2004-04-14 19:37:00 +00:00
|
|
|
@for file in $(ALL_FILES_LIST); do \
|
2002-01-24 17:32:12 +00:00
|
|
|
echo $$file >> $@; \
|
|
|
|
done;
|
2005-03-25 18:07:50 +00:00
|
|
|
else
|
|
|
|
build-local: build-dir $(SO_VERSION_DATA) $(OUTTMPDIR)/icudata.lst $(OS390LIST)
|
2005-03-30 06:04:37 +00:00
|
|
|
$(OUTTMPDIR)/icudata.lst: $(SRCLISTDEPS) $(ICUDATA_SOURCE_ARCHIVE) $(MAINBUILDDIR)
|
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) $@
|
2006-01-03 17:59:44 +00:00
|
|
|
$(INVOKE) $(BINDIR)/icupkg -d $(BUILDDIR) --list -x \* $(ICUDATA_SOURCE_ARCHIVE) > $@
|
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
|
|
|
|
|
|
|
|
2004-08-06 06:18:13 +00:00
|
|
|
build-dir: $(BUILD_DIRS)
|
|
|
|
$(BUILD_DIRS):
|
|
|
|
-$(MKINSTALLDIRS) $(BUILD_DIRS)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Now, sections for building each kind of data.
|
|
|
|
|
|
|
|
#################################################### DAT
|
|
|
|
# DAT FILES
|
|
|
|
|
2002-07-17 23:43:23 +00:00
|
|
|
# uprops.icu
|
2004-04-14 19:37:00 +00:00
|
|
|
$(BUILDDIR)/uprops.icu: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/BidiMirroring.txt $(BINDIR)/genprops$(EXEEXT) $(BUILDDIR)/$(ICUDT)pnames.icu
|
2004-03-26 01:22:25 +00:00
|
|
|
$(INVOKE) $(BINDIR)/genprops -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(BUILDDIR) -u $(UNICODE_VERSION)
|
2005-05-05 17:43:10 +00:00
|
|
|
$(INVOKE) $(BINDIR)/genprops --csource -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2004-12-31 13:28:06 +00:00
|
|
|
# ubidi.icu
|
|
|
|
$(BUILDDIR)/ubidi.icu: $(UNICODEDATADIR)/UnicodeData.txt $(BINDIR)/genbidi$(EXEEXT)
|
|
|
|
$(INVOKE) $(BINDIR)/genbidi -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(BUILDDIR) -u $(UNICODE_VERSION)
|
2005-05-05 17:43:10 +00:00
|
|
|
$(INVOKE) $(BINDIR)/genbidi --csource -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
|
2004-12-31 13:28:06 +00:00
|
|
|
|
2004-09-06 16:04:26 +00:00
|
|
|
# ucase.icu
|
|
|
|
$(BUILDDIR)/ucase.icu: $(UNICODEDATADIR)/UnicodeData.txt $(BINDIR)/gencase$(EXEEXT)
|
|
|
|
$(INVOKE) $(BINDIR)/gencase -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(BUILDDIR) -u $(UNICODE_VERSION)
|
2005-05-05 17:43:10 +00:00
|
|
|
$(INVOKE) $(BINDIR)/gencase --csource -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
|
2004-09-06 16:04:26 +00:00
|
|
|
|
2002-10-30 22:39:56 +00:00
|
|
|
# pnames.icu
|
2004-04-14 19:37:00 +00:00
|
|
|
$(BUILDDIR)/pnames.icu: $(UNICODEDATADIR)/PropertyAliases.txt $(UNICODEDATADIR)/PropertyValueAliases.txt $(UNICODEDATADIR)/Blocks.txt $(COMINCDIR)/uscript.h $(COMINCDIR)/uchar.h $(BINDIR)/genpname$(EXEEXT)
|
2004-03-26 01:22:25 +00:00
|
|
|
$(INVOKE) $(BINDIR)/genpname -d $(BUILDDIR)
|
2002-10-30 22:39:56 +00:00
|
|
|
|
2002-07-17 23:43:23 +00:00
|
|
|
# unorm.icu
|
2004-09-13 23:11:38 +00:00
|
|
|
$(BUILDDIR)/unorm.icu: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/DerivedNormalizationProps.txt $(UNICODEDATADIR)/BidiMirroring.txt $(BINDIR)/gennorm$(EXEEXT) $(BUILDDIR)/$(ICUDT)pnames.icu $(BUILDDIR)/$(ICUDT)uprops.icu $(BUILDDIR)/$(ICUDT)ucase.icu
|
|
|
|
$(INVOKE) $(BINDIR)/gennorm -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(BUILDDIR) -u $(UNICODE_VERSION)
|
2005-05-05 17:43:10 +00:00
|
|
|
$(INVOKE) $(BINDIR)/gennorm --csource -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2002-07-17 23:43:23 +00:00
|
|
|
# ucadata.icu
|
2005-05-05 17:43:10 +00:00
|
|
|
# used to depend on $(BUILDDIR)/$(ICUDT)unorm.icu $(BUILDDIR)/$(ICUDT)ucase.icu
|
|
|
|
# see Jitterbug 4497
|
|
|
|
$(BUILDDIR)/ucadata.icu $(BUILDDIR)/$(ICUDT)invuca.icu: $(UNICODEDATADIR)/FractionalUCA.txt $(BINDIR)/genuca$(EXEEXT)
|
2004-03-26 01:22:25 +00:00
|
|
|
$(INVOKE) $(BINDIR)/genuca -s $(UNICODEDATADIR) -d $(BUILDDIR) -i $(BUILDDIR)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2002-07-17 23:43:23 +00:00
|
|
|
# unames.icu
|
2004-04-14 19:37:00 +00:00
|
|
|
$(BUILDDIR)/unames.icu: $(UNICODEDATADIR)/UnicodeData.txt $(BINDIR)/gennames$(EXEEXT)
|
2004-03-26 01:22:25 +00:00
|
|
|
$(INVOKE) $(BINDIR)/gennames -1 -d $(BUILDDIR) $(UNICODEDATADIR)/UnicodeData.txt -u $(UNICODE_VERSION)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2002-06-28 23:59:22 +00:00
|
|
|
# cnvalias.icu
|
2004-04-14 19:37:00 +00:00
|
|
|
$(BUILDDIR)/cnvalias.icu: $(UCMSRCDIR)/convrtrs.txt $(BINDIR)/gencnval$(EXEEXT)
|
2004-03-26 01:22:25 +00:00
|
|
|
$(INVOKE) $(BINDIR)/gencnval -d $(BUILDDIR) $(UCMSRCDIR)/convrtrs.txt
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2003-07-24 23:23:19 +00:00
|
|
|
# uidna.spp
|
2005-06-24 07:11:14 +00:00
|
|
|
$(BUILDDIR)/uidna.spp: $(MISCSRCDIR)/NamePrepProfile.txt $(BINDIR)/gensprep$(EXEEXT) $(BUILDDIR)/unames.icu $(BUILDDIR)/pnames.icu
|
2004-03-26 01:22:25 +00:00
|
|
|
$(INVOKE) $(BINDIR)/gensprep -d $(BUILDDIR) -i $(BUILDDIR) -s $(MISCSRCDIR) -b uidna -n $(UNICODEDATADIR) -u 3.2.0 -k NamePrepProfile.txt
|
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) $@
|
2002-07-10 23:45:51 +00:00
|
|
|
|
2006-03-23 00:54:12 +00:00
|
|
|
$(BRKBLDDIR)/%.brk: $(BRKSRCDIR)/%.txt $(BINDIR)/genbrk$(EXEEXT) $(DAT_FILES)
|
2004-03-26 01:22:25 +00:00
|
|
|
$(INVOKE) $(BINDIR)/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
|
|
|
|
|
|
|
|
$(BRKBLDDIR)/%.ctd: $(BRKSRCDIR)/%.txt $(BINDIR)/genctd$(EXEEXT) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(BINDIR)/genctd -c -i $(BUILDDIR) -o $@ $<
|
|
|
|
|
2002-07-17 15:13:08 +00:00
|
|
|
#################################################### CNV
|
|
|
|
# CNV FILES
|
2004-04-14 19:37:00 +00:00
|
|
|
$(BUILDDIR)/%.cnv: $(UCMSRCDIR)/%.ucm $(BINDIR)/makeconv$(EXEEXT)
|
|
|
|
$(INVOKE) $(BINDIR)/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
|
|
|
|
|
2004-04-14 19:37:00 +00:00
|
|
|
### collation res
|
|
|
|
$(COLBLDDIR)/%.res: $(COLSRCDIR)/%.txt $(BINDIR)/genrb$(EXEEXT) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(COLSRCDIR) -d $(COLBLDDIR) $(<F)
|
|
|
|
|
|
|
|
$(COLBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(COLLATION_TREE)/$(INDEX_NAME).txt $(BINDIR)/genrb$(EXEEXT)
|
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(COLLATION_TREE) -d $(COLBLDDIR) $(INDEX_NAME).txt
|
|
|
|
|
|
|
|
$(OUTTMPDIR)/$(COLLATION_TREE)/$(INDEX_NAME).txt: $(SRCLISTDEPS)
|
|
|
|
@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
|
|
|
|
$(BRKBLDDIR)/%.res: $(BRKSRCDIR)/%.txt $(BINDIR)/genrb$(EXEEXT) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(BRKSRCDIR) -d $(BRKBLDDIR) $(<F)
|
|
|
|
|
|
|
|
$(BRKBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(BREAK_TREE)/$(INDEX_NAME).txt $(BINDIR)/genrb$(EXEEXT)
|
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(BREAK_TREE) -d $(BRKBLDDIR) $(INDEX_NAME).txt
|
|
|
|
|
|
|
|
$(OUTTMPDIR)/$(BREAK_TREE)/$(INDEX_NAME).txt: $(SRCLISTDEPS)
|
|
|
|
@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
|
|
|
|
$(RBNFBLDDIR)/%.res: $(RBNFSRCDIR)/%.txt $(BINDIR)/genrb$(EXEEXT) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(RBNFSRCDIR) -d $(RBNFBLDDIR) $(<F)
|
|
|
|
|
|
|
|
$(RBNFBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(RBNF_TREE)/$(INDEX_NAME).txt $(BINDIR)/genrb$(EXEEXT)
|
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(RBNF_TREE) -d $(RBNFBLDDIR) $(INDEX_NAME).txt
|
2004-04-14 19:37:00 +00:00
|
|
|
|
2004-07-14 18:35:16 +00:00
|
|
|
$(OUTTMPDIR)/$(RBNF_TREE)/$(INDEX_NAME).txt: $(SRCLISTDEPS)
|
|
|
|
@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
|
|
|
|
$(TRANSLITBLDDIR)/%.res: $(TRANSLITSRCDIR)/%.txt $(BINDIR)/genrb$(EXEEXT) $(DAT_FILES)
|
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(TRANSLITSRCDIR) -d $(TRANSLITBLDDIR) $(<F)
|
|
|
|
|
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
|
|
|
|
2004-04-14 19:37:00 +00:00
|
|
|
$(BUILDDIR)/%.res: $(LOCSRCDIR)/%.txt $(BINDIR)/genrb$(EXEEXT) $(DAT_FILES)
|
2004-07-18 23:09:17 +00:00
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(LOCSRCDIR) -d $(BUILDDIR) $(<F)
|
2002-01-24 17:32:12 +00:00
|
|
|
|
2006-08-04 01:18:19 +00:00
|
|
|
# if the 'in' directory contains a new tzdata*.tar.gz file, use it for zoneinfo.txt
|
2006-08-05 03:29:17 +00:00
|
|
|
TZDATA = $(firstword $(wildcard ./in/tzdata*.tar.gz) $(wildcard $(srcdir)/in/tzdata*.tar.gz))
|
|
|
|
|
2006-08-04 01:18:19 +00:00
|
|
|
ifneq ($(TZDATA),)
|
2006-08-05 03:29:17 +00:00
|
|
|
|
|
|
|
OUTMISC=$(OUTDIR)/misc
|
|
|
|
ZONEINFO=$(OUTMISC)/zoneinfo.txt
|
|
|
|
TZCODE=$(OUTTMPDIR)/tzcode
|
|
|
|
|
|
|
|
# Override the normal genrb for zoneinfo.txt to always pull from out/zoneinfo.txt
|
|
|
|
$(BUILDDIR)/zoneinfo.res: $(ZONEINFO) $(BINDIR)/genrb$(EXEEXT)
|
|
|
|
@echo Note: $(MISCSRCDIR)/zoneinfo.txt is IGNORED because $(TZDATA) is present.
|
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -q -i $(BUILDDIR) -s $(OUTMISC) -d $(BUILDDIR) $(<F)
|
|
|
|
|
|
|
|
# create the out/tmp/tzcode directory from source/tools/tzcode
|
|
|
|
$(TZCODE):
|
|
|
|
-$(MKINSTALLDIRS) $(TZCODE)
|
|
|
|
-$(MKINSTALLDIRS)
|
|
|
|
(cd $(top_srcdir)/tools/ ; tar cf - tzcode ) | (cd $(OUTTMPDIR) ; tar xf -)
|
2006-08-04 01:18:19 +00:00
|
|
|
cd $(top_builddir) \
|
2006-08-05 03:29:17 +00:00
|
|
|
&& CONFIG_FILES=$(subdir)/out/tmp/tzcode/Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
|
|
|
$(OUTMISC):
|
|
|
|
-$(MKINSTALLDIRS) $@
|
|
|
|
|
|
|
|
# perform the actual build.
|
|
|
|
$(ZONEINFO): $(OUTMISC) $(TZCODE) $(TZDATA)
|
|
|
|
@echo "******* Updating $(ZONEINFO) from $(TZDATA) ..."
|
|
|
|
cp $(TZDATA) $(TZCODE)
|
|
|
|
gunzip -d < $(TZDATA) | ( cd $(TZCODE) ; tar xf - )
|
|
|
|
$(MAKE) -C $(TZCODE) icu_data
|
|
|
|
mv $(TZCODE)/zoneinfo.txt $@
|
|
|
|
# $(MAKE) -C $(TZCODE) dataclean
|
|
|
|
# $(RMV) $(top_builddir)/tools/tzcode/tzdata*.tar.gz
|
2006-08-04 01:18:19 +00:00
|
|
|
@echo "******* Done building $@ from $< **********"
|
2006-08-05 03:29:17 +00:00
|
|
|
|
|
|
|
# end of zoneinfo.txt-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
|
|
|
|
$(BUILDDIR)/%.res: $(MISCSRCDIR)/%.txt $(BINDIR)/genrb$(EXEEXT)
|
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -q -i $(BUILDDIR) -s $(MISCSRCDIR) -d $(BUILDDIR) $(<F)
|
|
|
|
|
|
|
|
|
2006-08-04 01:18:19 +00:00
|
|
|
|
2004-04-14 19:37:00 +00:00
|
|
|
$(OUTTMPDIR)/$(INDEX_NAME).txt: $(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) {" >> $@; \
|
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:
|
2004-04-14 19:37:00 +00:00
|
|
|
-$(RMV) $(BUILDDIR)/$(INDEX_NAME).txt $(OUTTMPDIR)/icudata.lst
|
2003-09-25 00:18:15 +00:00
|
|
|
|
2004-04-14 19:37:00 +00:00
|
|
|
$(INDEX_RES_FILE): $(INDEX_FILE) $(BINDIR)/genrb$(EXEEXT)
|
2004-07-18 23:09:17 +00:00
|
|
|
$(INVOKE) $(BINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -d $(BUILDDIR) $(INDEX_FILE)
|
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
|
|
|
|
|
|
|
|
icupkg.inc: $(srcdir)/icupkg.inc.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
|
|
|
###########
|
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
|
2005-05-05 17:43:10 +00:00
|
|
|
# used to depend on uprops.icu ucase.icu ubidi.icu unorm.icu
|
|
|
|
# see Jitterbug 4497
|
|
|
|
ALLFILES390=pnames.icu 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
|
|
|
|