michael@0: ## Makefile.in for ICU data michael@0: ## Copyright (c) 1999-2013, International Business Machines Corporation and michael@0: ## others. All Rights Reserved. michael@0: michael@0: ## Source directory information michael@0: srcdir = @srcdir@ michael@0: top_srcdir = @top_srcdir@ michael@0: michael@0: # So that you have $(top_builddir)/config.status michael@0: top_builddir = .. michael@0: michael@0: ## All the flags and other definitions are included here. michael@0: include $(top_builddir)/icudefs.mk michael@0: michael@0: ## Build directory information michael@0: # So that $(top_builddir)/$(subdir) ~= "here" michael@0: subdir = data michael@0: michael@0: #lib icu data for link michael@0: LIB_ICUDATA_NAME=$(LIBICU)$(DATA_STUBNAME)$(ICULIBSUFFIX) michael@0: LIB_STATIC_ICUDATA_NAME=$(LIBSICU)$(DATA_STUBNAME)$(ICULIBSUFFIX) michael@0: michael@0: # Allow Windows to override these options michael@0: ifeq ($(PKGDATA_OPTS),) michael@0: PKGDATA_OPTS = -O $(top_builddir)/data/icupkg.inc michael@0: endif michael@0: ifeq ($(PKGDATA_VERSIONING),) michael@0: PKGDATA_VERSIONING = -r $(SO_TARGET_VERSION) michael@0: endif michael@0: michael@0: # This allows all the data to be in one directory michael@0: ifeq ($(PKGDATA_MODE),dll) michael@0: ICUPKGDATA_OUTDIR = $(LIBDIR) michael@0: else michael@0: ifeq ($(PKGDATA_MODE),static) michael@0: ICUPKGDATA_OUTDIR = $(LIBDIR) michael@0: else michael@0: ICUPKGDATA_OUTDIR = $(OUTDIR) michael@0: endif michael@0: endif michael@0: michael@0: CURDIR:=$(CURR_FULL_DIR) michael@0: # current directory should not be blank michael@0: ifeq ($(CURDIR),) michael@0: CURDIR=. michael@0: endif michael@0: PKGDATA = $(TOOLBINDIR)/pkgdata $(PKGDATA_OPTS) -q -c -s $(CURDIR)/out/build/$(ICUDATA_PLATFORM_NAME) -d $(ICUPKGDATA_OUTDIR) michael@0: OS390_PDS_NAME = -z -L $(BATCH_STUB_TARGET) michael@0: michael@0: ifeq ($(OS390_STUBDATA),1) michael@0: OS390PKG=package390 michael@0: OS390INSTALL=install390 michael@0: michael@0: # Additional data for 390 michael@0: OS390LIST=$(OUTTMPDIR)/icudata390.lst michael@0: OUTTMPDIR_390STUB=$(top_builddir)/data/out/tmp_390stub michael@0: endif michael@0: michael@0: ifeq ($(OS390BATCH),1) michael@0: CPPFLAGS += -Wc,'ros,roc' michael@0: endif michael@0: michael@0: # OBJDATADIR must be a short path (with ..'s) to the data. michael@0: michael@0: ifeq ($(top_srcdir),..) michael@0: SRCDATADIR=. michael@0: else michael@0: SRCDATADIR=$(top_srcdir)/data michael@0: endif michael@0: ifeq ($(top_builddir),..) michael@0: OUTDIR=./out michael@0: else michael@0: OUTDIR=$(top_builddir)/data/out michael@0: endif michael@0: michael@0: OUTTMPDIR=$(OUTDIR)/tmp michael@0: MAINBUILDDIR=$(OUTDIR)/build michael@0: BUILDDIR=$(MAINBUILDDIR)/$(ICUDATA_PLATFORM_NAME) michael@0: UNICODEDATADIR=$(SRCDATADIR)/unidata michael@0: LOCSRCDIR=$(SRCDATADIR)/locales michael@0: CURRSRCDIR=$(SRCDATADIR)/curr michael@0: CURRBLDDIR=$(BUILDDIR)/curr michael@0: LANGSRCDIR=$(SRCDATADIR)/lang michael@0: LANGBLDDIR=$(BUILDDIR)/lang michael@0: REGIONSRCDIR=$(SRCDATADIR)/region michael@0: REGIONBLDDIR=$(BUILDDIR)/region michael@0: ZONESRCDIR=$(SRCDATADIR)/zone michael@0: ZONEBLDDIR=$(BUILDDIR)/zone michael@0: COLSRCDIR=$(SRCDATADIR)/coll michael@0: COLBLDDIR=$(BUILDDIR)/coll michael@0: RBNFSRCDIR=$(SRCDATADIR)/rbnf michael@0: RBNFBLDDIR=$(BUILDDIR)/rbnf michael@0: TRANSLITSRCDIR=$(SRCDATADIR)/translit michael@0: TRANSLITBLDDIR=$(BUILDDIR)/translit michael@0: MISCSRCDIR=$(SRCDATADIR)/misc michael@0: BRKSRCDIR=$(SRCDATADIR)/brkitr michael@0: BRKBLDDIR=$(BUILDDIR)/brkitr michael@0: MISCSRCDIR=$(SRCDATADIR)/misc michael@0: UCMSRCDIR=$(SRCDATADIR)/mappings michael@0: SPREPSRCDIR=$(SRCDATADIR)/sprep michael@0: COMINCDIR=$(top_srcdir)/common/unicode michael@0: SRCLISTDEPS=Makefile $(srcdir)/Makefile.in michael@0: 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) michael@0: michael@0: # relative lib links from pkgdata are the same as for tmp michael@0: TOOLDIR=$(top_builddir)/tools michael@0: michael@0: ## List of phony targets michael@0: .PHONY : all all-local all-recursive install install-local install-files \ michael@0: install-recursive clean clean-local clean-recursive distclean \ michael@0: distclean-local distclean-recursive dist dist-local dist-recursive \ michael@0: check check-local check-recursive build-local clean-resindex build-dir icudata.jar \ michael@0: check-exhaustive michael@0: michael@0: ## Clear suffix list michael@0: .SUFFIXES : michael@0: michael@0: ## List of standard targets michael@0: all: all-local michael@0: install: all-local install-local michael@0: clean: clean-local michael@0: distclean : distclean-local michael@0: dist: michael@0: check: all michael@0: michael@0: check-exhaustive: check michael@0: michael@0: -include Makefile.local michael@0: michael@0: michael@0: distclean-local: clean michael@0: $(RMV) Makefile michael@0: michael@0: all-local: build-dir icupkg.inc build-local packagedata $(POST_DATA_BUILD) $(OS390PKG) michael@0: michael@0: dist-local: michael@0: michael@0: clean-map: michael@0: -test -z *.map || $(RMV) *.map michael@0: michael@0: clean-local: cleanpackage cleanfiles clean-map michael@0: michael@0: cleanfiles: michael@0: test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) michael@0: michael@0: cleanpackage: michael@0: $(RMV) $(OUTDIR) michael@0: $(RMV) $(LIBDIR)/$(LIB_ICUDATA_NAME)*.$(SO)* $(LIBDIR)/$(LIB_STATIC_ICUDATA_NAME).$(A) michael@0: michael@0: check-local: michael@0: michael@0: # Find out if we have a source archive. michael@0: # If we have that, then use that instead of building everything from scratch. michael@0: ICUDATA_SOURCE_ARCHIVE = $(wildcard $(srcdir)/in/$(ICUDATA_PLATFORM_NAME).dat) michael@0: ifeq ($(ICUDATA_SOURCE_ARCHIVE),) michael@0: ICUDATA_ARCHIVE = $(firstword $(wildcard $(srcdir)/in/$(ICUDATA_BASENAME_VERSION)*.dat)) michael@0: # We don't have the data in the current endianess or charset. michael@0: # See if we can find data of any archive type, michael@0: # and convert it to the current type. michael@0: ifneq ($(ICUDATA_ARCHIVE),) michael@0: ICUDATA_SOURCE_ARCHIVE = $(OUTDIR)/$(ICUDATA_PLATFORM_NAME).dat michael@0: $(ICUDATA_SOURCE_ARCHIVE): $(ICUDATA_ARCHIVE) $(OUTDIR) michael@0: $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(ICUDATA_ARCHIVE) $(ICUDATA_SOURCE_ARCHIVE) michael@0: endif michael@0: else michael@0: ifneq ($(ENABLE_STATIC),YES) michael@0: ifeq ($(PKGDATA_MODE),common) michael@0: # We have a source data common archive in the native endianess, michael@0: # and it's what we want to build. Try to not run any of ICU's tools. michael@0: ICUDATA_SOURCE_IS_NATIVE_TARGET=YES michael@0: endif michael@0: endif michael@0: endif michael@0: michael@0: packagedata: icupkg.inc $(PKGDATA_LIST) build-local michael@0: ifneq ($(ENABLE_STATIC),) michael@0: ifeq ($(PKGDATA_MODE),dll) michael@0: $(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) -m static $(PKGDATA_VERSIONING) $(PKGDATA_LIST) michael@0: endif michael@0: endif michael@0: ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES) michael@0: $(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) $(PKGDATA_LIBNAME) $(PKGDATA_LIST) michael@0: ifeq ($(OS390BATCH),1) michael@0: $(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) $(OS390_PDS_NAME) $(PKGDATA_LIST) michael@0: endif michael@0: else michael@0: $(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(OUTDIR) michael@0: endif michael@0: michael@0: ## Install ICU data. michael@0: install-local: $(PKGDATA_LIST) ./icupkg.inc packagedata $(OS390INSTALL) michael@0: $(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(ICUPKGDATA_DIR) michael@0: ifeq ($(PKGDATA_MODE),files) michael@0: $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME) michael@0: $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(CURR_TREE) michael@0: $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(LANG_TREE) michael@0: $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(REGION_TREE) michael@0: $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(ZONE_TREE) michael@0: $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(BREAK_TREE) michael@0: $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(COLLATION_TREE) michael@0: $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(RBNF_TREE) michael@0: $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(TRANSLIT_TREE) michael@0: endif michael@0: ifneq ($(ENABLE_STATIC),) michael@0: ifeq ($(PKGDATA_MODE),dll) michael@0: $(PKGDATA_INVOKE) $(PKGDATA) -m static -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_LIBDIR) michael@0: endif michael@0: endif michael@0: ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES) michael@0: $(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) michael@0: else michael@0: $(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(DESTDIR)$(ICUPKGDATA_DIR) michael@0: endif michael@0: michael@0: michael@0: #### michael@0: #### michael@0: #### 390 support michael@0: install390: package390 michael@0: $(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(libdir) michael@0: $(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) michael@0: ifeq ($(PKGDATA_MODE),dll) michael@0: $(INSTALL-L) $(ICUPKGDATA_OUTDIR)/$(FINAL_IMPORT_LIB) $(DESTDIR)$(ICUPKGDATA_DIR)/$(FINAL_IMPORT_LIB) michael@0: endif michael@0: michael@0: #### $(LIB_ICUDATA_NAME)$(STUB_SUFFIX) is the subset data for batch mode michael@0: package390: $(OUTTMPDIR)/icudata390.lst $(PKGDATA_LIST) ./icupkg.inc packagedata michael@0: ln -s $(ICUDATA_NAME) $(OUTDIR)/build/$(ICUDATA_NAME)$(STUB_SUFFIX) michael@0: $(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) michael@0: cp $(ICUPKGDATA_OUTDIR)/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO) $(top_builddir)/stubdata/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO) michael@0: michael@0: michael@0: ##### Define all the data files. the build rule that depends on them is below. michael@0: # X_FILES_SHORT = just the base names (for lists) michael@0: # X_FILES = full paths (for dependency) michael@0: michael@0: ## DAT files - Misc. data files. michael@0: # 2005-may-05 Removed Unicode properties files (unorm.icu, uprops.icu, ucase.icu, ubidi.icu) michael@0: # from data build. See Jitterbug 4497. (makedata.mak revision 1.117) michael@0: # 2010-dec Removed pnames.icu. michael@0: # These are now hardcoded in ICU4C and only loaded in ICU4J. michael@0: # michael@0: DAT_FILES_SHORT=unames.icu cnvalias.icu coll/ucadata.icu coll/invuca.icu nfc.nrm nfkc.nrm nfkc_cf.nrm uts46.nrm michael@0: DAT_FILES=$(DAT_FILES_SHORT:%=$(BUILDDIR)/%) michael@0: michael@0: ## BRK files michael@0: BREAK_TREE=brkitr michael@0: -include $(BRKSRCDIR)/brkfiles.mk michael@0: -include $(BRKSRCDIR)/brklocal.mk michael@0: ALL_BRK_SOURCE= $(BRK_SOURCE) $(BRK_SOURCE_LOCAL) michael@0: BRK_FILES_SHORT=$(ALL_BRK_SOURCE:%.txt=$(BREAK_TREE)/%.brk) michael@0: BRK_FILES=$(ALL_BRK_SOURCE:%.txt=$(BRKBLDDIR)/%.brk) michael@0: ifdef BRK_DICT_SOURCE michael@0: ALL_DICT_SOURCE=$(BRK_DICT_SOURCE) $(BRK_DICT_SOURCE_LOCAL) michael@0: DICT_FILES_SHORT=$(ALL_DICT_SOURCE:%.txt=$(BREAK_TREE)/%.dict) michael@0: DICT_FILES=$(ALL_DICT_SOURCE:%.txt=$(BRKBLDDIR)/%.dict) michael@0: endif michael@0: ifdef BRK_RES_SOURCE michael@0: BRS_SRC= root.txt $(BRK_RES_SOURCE) $(BRK_RES_SOURCE_LOCAL) michael@0: BRS_SRC_FILES = $(BRS_SRC:%=$(BRKSRCDIR)/%) michael@0: INSTALLED_BRS_FILES = $(BRK_RES_SOURCE:%.txt=%) $(BRK_RES_SOURCE_LOCAL:%.txt=%) michael@0: endif michael@0: michael@0: ## Confusables (Spoofing) files michael@0: ALL_CFU_SOURCE=$(UNICODEDATADIR)/confusables.txt $(UNICODEDATADIR)/confusablesWholeScript.txt michael@0: CFU_FILES_SHORT=confusables.cfu michael@0: CFU_FILES=$(BUILDDIR)/$(CFU_FILES_SHORT) michael@0: michael@0: ## UCM files michael@0: -include $(UCMSRCDIR)/ucmcore.mk michael@0: -include $(UCMSRCDIR)/ucmfiles.mk michael@0: -include $(UCMSRCDIR)/ucmebcdic.mk michael@0: -include $(UCMSRCDIR)/ucmlocal.mk michael@0: 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) michael@0: UCM_FILES = $(ALL_UCM_SOURCE:%=$(SRCDATADIR)/%) michael@0: CNV_FILES = $(ALL_UCM_SOURCE:%.ucm=$(BUILDDIR)/%.cnv) michael@0: CNV_FILES_SHORT = $(ALL_UCM_SOURCE:%.ucm=%.cnv) michael@0: UCM_SOURCE_SPECIAL=$(UCM_SOURCE_EBCDIC_IGNORE_SISO) $(UCM_SOURCE_EBCDIC_IGNORE_SISO_LOCAL) michael@0: UCM_FILES_SPECIAL=$(UCM_SOURCE_SPECIAL:%=$(UCMSRCDIR)/%) michael@0: CNV_FILES_SPECIAL=$(UCM_SOURCE_SPECIAL:%.ucm=$(BUILDDIR)/%.cnv) michael@0: CNV_FILES_SHORT_SPECIAL=$(UCM_SOURCE_SPECIAL:%.ucm=%.cnv) michael@0: michael@0: ## RES files michael@0: -include $(LOCSRCDIR)/resfiles.mk michael@0: -include $(CURRSRCDIR)/resfiles.mk michael@0: -include $(LANGSRCDIR)/resfiles.mk michael@0: -include $(REGIONSRCDIR)/resfiles.mk michael@0: -include $(ZONESRCDIR)/resfiles.mk michael@0: -include $(COLSRCDIR)/colfiles.mk michael@0: -include $(RBNFSRCDIR)/rbnffiles.mk michael@0: -include $(TRANSLITSRCDIR)/trnsfiles.mk michael@0: -include $(LOCSRCDIR)/reslocal.mk michael@0: -include $(CURRSRCDIR)/reslocal.mk michael@0: -include $(LANGSRCDIR)/reslocal.mk michael@0: -include $(REGIONSRCDIR)/reslocal.mk michael@0: -include $(ZONESRCDIR)/reslocal.mk michael@0: -include $(COLSRCDIR)/collocal.mk michael@0: -include $(BRKSRCDIR)/brslocal.mk michael@0: -include $(RBNFSRCDIR)/rbnflocal.mk michael@0: -include $(TRANSLITSRCDIR)/trnslocal.mk michael@0: ifdef GENRB_SOURCE michael@0: RES_SRC= root.txt $(GENRB_SOURCE) $(GENRB_ALIAS_SOURCE) $(GENRB_SOURCE_LOCAL) $(GENRB_ALIAS_SOURCE_LOCAL) michael@0: RES_SRC_FILES = $(RES_SRC:%=$(LOCSRCDIR)/%) michael@0: INSTALLED_RB_FILES = $(GENRB_SOURCE:%.txt=%) $(GENRB_SOURCE_LOCAL:%.txt=%) michael@0: endif michael@0: ifdef CURR_SOURCE michael@0: CURR_SRC= root.txt supplementalData.txt $(CURR_SOURCE) $(CURR_ALIAS_SOURCE) $(CURR_SOURCE_LOCAL) michael@0: CURR_SRC_FILES = $(CURR_SRC:%=$(CURRSRCDIR)/%) michael@0: INSTALLED_CURR_FILES = $(CURR_SOURCE:%.txt=%) $(CURR_SOURCE_LOCAL:%.txt=%) michael@0: endif michael@0: ifdef LANG_SOURCE michael@0: LANG_SRC= root.txt $(LANG_SOURCE) $(LANG_ALIAS_SOURCE) $(LANG_SOURCE_LOCAL) michael@0: LANG_SRC_FILES = $(LANG_SRC:%=$(LANGSRCDIR)/%) michael@0: INSTALLED_LANG_FILES = $(LANG_SOURCE:%.txt=%) $(LANG_SOURCE_LOCAL:%.txt=%) michael@0: endif michael@0: ifdef REGION_SOURCE michael@0: REGION_SRC= root.txt $(REGION_SOURCE) $(REGION_ALIAS_SOURCE) $(REGION_SOURCE_LOCAL) michael@0: REGION_SRC_FILES = $(REGION_SRC:%=$(REGIONSRCDIR)/%) michael@0: INSTALLED_REGION_FILES = $(REGION_SOURCE:%.txt=%) $(REGION_SOURCE_LOCAL:%.txt=%) michael@0: endif michael@0: ifdef ZONE_SOURCE michael@0: ZONE_SRC= root.txt $(ZONE_SOURCE) $(ZONE_ALIAS_SOURCE) $(ZONE_SOURCE_LOCAL) michael@0: ZONE_SRC_FILES = $(ZONE_SRC:%=$(ZONESRCDIR)/%) michael@0: INSTALLED_ZONE_FILES = $(ZONE_SOURCE:%.txt=%) $(ZONE_SOURCE_LOCAL:%.txt=%) michael@0: endif michael@0: ifdef COLLATION_SOURCE michael@0: COL_SRC= root.txt $(COLLATION_SOURCE) $(COLLATION_ALIAS_SOURCE) $(COLLATION_SOURCE_LOCAL) michael@0: COL_SRC_FILES = $(COL_SRC:%=$(COLSRCDIR)/%) michael@0: INSTALLED_COL_FILES = $(COLLATION_SOURCE:%.txt=%) $(COLLATION_SOURCE_LOCAL:%.txt=%) michael@0: endif michael@0: ifdef RBNF_SOURCE michael@0: RBNF_SRC= root.txt $(RBNF_SOURCE) $(RBNF_ALIAS_SOURCE) $(RBNF_SOURCE_LOCAL) michael@0: RBNF_SRC_FILES = $(RBNF_SRC:%=$(RBNFSRCDIR)/%) michael@0: INSTALLED_RBNF_FILES = $(RBNF_SOURCE:%.txt=%) $(RBNF_SOURCE_LOCAL:%.txt=%) michael@0: endif michael@0: ifdef TRANSLIT_SOURCE michael@0: TRANSLIT_SRC= $(TRANSLIT_SOURCE) $(TRANSLIT_ALIAS_SOURCE) $(TRANSLIT_SOURCE_LOCAL) michael@0: TRANSLIT_SRC_FILES = $(TRANSLIT_SRC:%=$(TRANSLITSRCDIR)/%) michael@0: INSTALLED_TRANSLIT_FILES = $(TRANSLIT_SOURCE:%.txt=%) $(TRANSLIT_SOURCE_LOCAL:%.txt=%) michael@0: endif michael@0: GENRBOPTS=-k michael@0: michael@0: ## MISC files michael@0: -include $(MISCSRCDIR)/miscfiles.mk michael@0: -include $(MISCSRCDIR)/misclocal.mk michael@0: MSC_SOURCE= $(MISC_SOURCE) $(MISC_SOURCE_LOCAL) michael@0: MSC_SRC_FILES=$(MSC_SOURCE:%=$(MISCSRCDIR)/%) michael@0: michael@0: ifeq ($(ENABLE_SO_VERSION_DATA),1) michael@0: ifeq ($(PKGDATA_MODE),dll) michael@0: SO_VERSION_DATA = $(OUTTMPDIR)/icudata.res michael@0: $(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc michael@0: # fixme: need to tell whether to use - or /, $(SOURCEFILE) or $< michael@0: rc.exe -i$(srcdir)/../common -i$(top_builddir)/common -fo$@ $(CPPFLAGS) $< michael@0: endif michael@0: endif michael@0: michael@0: INDEX_NAME=res_index michael@0: INDEX_FILE=$(OUTTMPDIR)/$(INDEX_NAME).txt michael@0: michael@0: ALL_RES_SRC= $(RES_SRC) $(TRNS_SOURCE) $(MSC_SOURCE) michael@0: RES_FILES = $(ALL_RES_SRC:%.txt=$(BUILDDIR)/%.res) $(BUILDDIR)/$(INDEX_NAME).res $(BUILDDIR)/pool.res michael@0: RES_FILES_SHORT = $(ALL_RES_SRC:%.txt=%.res) $(INDEX_NAME).res pool.res michael@0: PKGDATA_LIST = $(OUTTMPDIR)/icudata.lst michael@0: michael@0: CURR_TREE=curr michael@0: CURR_INDEX_FILE=$(OUTTMPDIR)/$(CURR_TREE)/$(INDEX_NAME).txt michael@0: CURR_FILES = $(CURR_SRC:%.txt=$(CURRBLDDIR)/%.res) $(CURRBLDDIR)/$(INDEX_NAME).res $(CURRBLDDIR)/pool.res michael@0: CURR_FILES_SHORT = $(CURR_SRC:%.txt=$(CURR_TREE)/%.res) $(CURR_TREE)/$(INDEX_NAME).res $(CURR_TREE)/pool.res michael@0: michael@0: LANG_TREE=lang michael@0: LANG_INDEX_FILE=$(OUTTMPDIR)/$(LANG_TREE)/$(INDEX_NAME).txt michael@0: LANG_FILES = $(LANG_SRC:%.txt=$(LANGBLDDIR)/%.res) $(LANGBLDDIR)/$(INDEX_NAME).res $(LANGBLDDIR)/pool.res michael@0: LANG_FILES_SHORT = $(LANG_SRC:%.txt=$(LANG_TREE)/%.res) $(LANG_TREE)/$(INDEX_NAME).res $(LANG_TREE)/pool.res michael@0: michael@0: REGION_TREE=region michael@0: REGION_INDEX_FILE=$(OUTTMPDIR)/$(REGION_TREE)/$(INDEX_NAME).txt michael@0: REGION_FILES = $(REGION_SRC:%.txt=$(REGIONBLDDIR)/%.res) $(REGIONBLDDIR)/$(INDEX_NAME).res $(REGIONBLDDIR)/pool.res michael@0: REGION_FILES_SHORT = $(REGION_SRC:%.txt=$(REGION_TREE)/%.res) $(REGION_TREE)/$(INDEX_NAME).res $(REGION_TREE)/pool.res michael@0: michael@0: ZONE_TREE=zone michael@0: ZONE_INDEX_FILE=$(OUTTMPDIR)/$(ZONE_TREE)/$(INDEX_NAME).txt michael@0: ZONE_FILES = $(ZONE_SRC:%.txt=$(ZONEBLDDIR)/%.res) $(ZONEBLDDIR)/$(INDEX_NAME).res $(ZONEBLDDIR)/pool.res michael@0: ZONE_FILES_SHORT = $(ZONE_SRC:%.txt=$(ZONE_TREE)/%.res) $(ZONE_TREE)/$(INDEX_NAME).res $(ZONE_TREE)/pool.res michael@0: michael@0: COLLATION_TREE=coll michael@0: COLLATION_INDEX_FILE=$(OUTTMPDIR)/$(COLLATION_TREE)/$(INDEX_NAME).txt michael@0: COLLATION_INDEX_RES=$(COLBLDDIR)/$(INDEX_NAME).res michael@0: COLLATION_INDEX_RES_SHORT=$(COLLATION_TREE)/$(INDEX_NAME).res michael@0: COLLATION_FILES = $(COL_SRC:%.txt=$(COLBLDDIR)/%.res) $(COLLATION_INDEX_RES) michael@0: COLLATION_FILES_SHORT = $(COL_SRC:%.txt=$(COLLATION_TREE)/%.res) michael@0: michael@0: BRK_RES_INDEX_FILE=$(OUTTMPDIR)/$(BREAK_TREE)/$(INDEX_NAME).txt michael@0: BRK_RES_INDEX_RES=$(BRKBLDDIR)/$(INDEX_NAME).res michael@0: BRK_RES_INDEX_RES_SHORT=$(BREAK_TREE)/$(INDEX_NAME).res michael@0: BRK_RES_FILES = $(BRS_SRC:%.txt=$(BRKBLDDIR)/%.res) $(BRK_RES_INDEX_RES) michael@0: BRK_RES_FILES_SHORT = $(BRS_SRC:%.txt=$(BREAK_TREE)/%.res) michael@0: michael@0: RBNF_TREE=rbnf michael@0: RBNF_INDEX_FILE=$(OUTTMPDIR)/$(RBNF_TREE)/$(INDEX_NAME).txt michael@0: RBNF_INDEX_RES=$(RBNFBLDDIR)/$(INDEX_NAME).res michael@0: RBNF_INDEX_RES_SHORT=$(RBNF_TREE)/$(INDEX_NAME).res michael@0: RBNF_FILES = $(RBNF_SRC:%.txt=$(RBNFBLDDIR)/%.res) $(RBNF_INDEX_RES) michael@0: RBNF_FILES_SHORT = $(RBNF_SRC:%.txt=$(RBNF_TREE)/%.res) michael@0: michael@0: TRANSLIT_TREE=translit michael@0: #TRANSLIT_INDEX_FILE=$(OUTTMPDIR)/$(TRANSLIT_TREE)/$(INDEX_NAME).txt michael@0: #TRANSLIT_INDEX_RES=$(TRANSLITBLDDIR)/$(INDEX_NAME).res michael@0: #TRANSLIT_INDEX_RES_SHORT=$(TRANSLIT_TREE)/$(INDEX_NAME).res michael@0: TRANSLIT_FILES = $(TRANSLIT_SRC:%.txt=$(TRANSLITBLDDIR)/%.res) michael@0: TRANSLIT_FILES_SHORT = $(TRANSLIT_SRC:%.txt=$(TRANSLIT_TREE)/%.res) michael@0: michael@0: ## SPP files michael@0: -include $(SPREPSRCDIR)/sprepfiles.mk michael@0: -include $(SPREPSRCDIR)/spreplocal.mk michael@0: ALL_SPREP_SOURCE=$(SPREP_SOURCE) $(SPREP_SOURCE_LOCAL) michael@0: SPREP_FILES = $(ALL_SPREP_SOURCE:%.txt=$(BUILDDIR)/%.spp) michael@0: SPREP_FILES_SHORT = $(ALL_SPREP_SOURCE:%.txt=%.spp) michael@0: michael@0: ## All generated files michael@0: ALL_FILES = $(DAT_FILES) $(CNV_FILES) $(CNV_FILES_SPECIAL) $(BRK_FILES) $(DICT_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) michael@0: 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) michael@0: # a list to use in the .lst files (package-relative) michael@0: COLL_FILES_LIST=$(COLLATION_FILES_SHORT) $(COLLATION_INDEX_RES_SHORT) michael@0: BRK_FILES_LIST=$(BRK_FILES_SHORT) $(BRK_RES_FILES_SHORT) $(BRK_RES_INDEX_RES_SHORT) $(DICT_FILES_SHORT) michael@0: LOCALE_FILES_LIST= $(RES_FILES_SHORT) $(LANG_FILES_SHORT) $(REGION_FILES_SHORT) $(ZONE_FILES_SHORT) michael@0: 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) michael@0: UNI_CORE_DATA=pnames.icu uprops.icu ucase.icu ubidi.icu michael@0: UNI_CORE_TARGET_DATA=$(UNI_CORE_DATA:%=$(BUILDDIR)/%) michael@0: michael@0: ifneq ($(INCLUDE_UNI_CORE_DATA),) michael@0: MISC_FILES_LIST+=$(UNI_CORE_DATA) michael@0: build-local: uni-core-data michael@0: endif michael@0: michael@0: ##################################################### michael@0: # General data build rules michael@0: michael@0: ## Files to remove for 'make clean' michael@0: CLEANFILES = *~ icupkg.inc michael@0: michael@0: ifeq ($(ICUDATA_SOURCE_ARCHIVE),) michael@0: build-local: build-dir $(SO_VERSION_DATA) $(ALL_FILES) $(PKGDATA_LIST) $(OS390LIST) michael@0: $(PKGDATA_LIST): $(SRCLISTDEPS) michael@0: @echo "generating $@ (list of data files)" michael@0: @-$(RMV) $@ michael@0: @for file in $(COLL_FILES_LIST); do \ michael@0: echo $$file >> $@; \ michael@0: done; michael@0: @for file in $(BRK_FILES_LIST); do \ michael@0: echo $$file >> $@; \ michael@0: done; michael@0: @for file in $(LOCALE_FILES_LIST); do \ michael@0: echo $$file >> $@; \ michael@0: done; michael@0: @for file in $(MISC_FILES_LIST); do \ michael@0: echo $$file >> $@; \ michael@0: done; michael@0: else michael@0: build-local: build-dir $(SO_VERSION_DATA) $(PKGDATA_LIST) $(OS390LIST) michael@0: $(PKGDATA_LIST): $(SRCLISTDEPS) $(ICUDATA_SOURCE_ARCHIVE) michael@0: ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES) michael@0: @echo "Unpacking $(ICUDATA_SOURCE_ARCHIVE) and generating $@ (list of data files)" michael@0: @-$(RMV) $@ michael@0: $(INVOKE) $(TOOLBINDIR)/icupkg -d $(BUILDDIR) --list -x \* $(ICUDATA_SOURCE_ARCHIVE) -o $@ michael@0: else michael@0: @echo "$@" > $@ michael@0: endif michael@0: endif michael@0: michael@0: michael@0: $(BUILD_DIRS): build-dir michael@0: michael@0: build-dir: michael@0: @list='$(BUILD_DIRS)'; \ michael@0: for dir in $$list; do \ michael@0: if ! test -d $$dir; then \ michael@0: echo $(MKINSTALLDIRS) $(BUILD_DIRS); \ michael@0: $(MKINSTALLDIRS) $(BUILD_DIRS); \ michael@0: fi; \ michael@0: done michael@0: michael@0: # The | is an order-only prerequisite. This helps when the -j option is used, michael@0: # and we don't want the files to be built before the directories are built. michael@0: ifneq ($(filter order-only,$(.FEATURES)),) michael@0: $(ALL_FILES) $(ALL_INDEX_SRC_FILES): | build-dir michael@0: endif michael@0: michael@0: # Now, sections for building each kind of data. michael@0: michael@0: #################################################### DAT michael@0: # DAT FILES michael@0: michael@0: # cnvalias.icu michael@0: $(BUILDDIR)/cnvalias.icu: $(UCMSRCDIR)/convrtrs.txt $(TOOLBINDIR)/gencnval$(TOOLEXEEXT) michael@0: $(INVOKE) $(TOOLBINDIR)/gencnval -d $(BUILDDIR) $(UCMSRCDIR)/convrtrs.txt michael@0: michael@0: # Targets for prebuilt Unicode data michael@0: $(BUILDDIR)/%.icu: $(SRCDATADIR)/in/%.icu michael@0: $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@ michael@0: michael@0: $(BUILDDIR)/%.nrm: $(SRCDATADIR)/in/%.nrm michael@0: $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@ michael@0: michael@0: $(BUILDDIR)/coll/%.icu: $(SRCDATADIR)/in/coll/%.icu michael@0: $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@ michael@0: michael@0: #################################################### SPP michael@0: # SPP FILES michael@0: michael@0: $(BUILDDIR)/%.spp: $(SPREPSRCDIR)/%.txt $(TOOLBINDIR)/gensprep$(TOOLEXEEXT) $(BUILDDIR)/unames.icu michael@0: $(INVOKE) $(TOOLBINDIR)/gensprep -d $(BUILDDIR) -i $(BUILDDIR) -s $(SPREPSRCDIR) -b $(@F:%.spp=%) -m $(UNICODEDATADIR) -u 3.2.0 $( $@; \ michael@0: echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ michael@0: echo " InstalledLocales {" >> $@; \ michael@0: for file in $(INSTALLED_CURR_FILES); do \ michael@0: echo " $$file {\"\"}" >> $@; \ michael@0: done; \ michael@0: echo " }" >> $@; \ michael@0: echo "}" >> $@; michael@0: michael@0: ### lang res michael@0: $(LANGBLDDIR)/%.res: $(LANGSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) michael@0: $(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(LANGSRCDIR) -d $(LANGBLDDIR) $( $@; \ michael@0: echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ michael@0: echo " InstalledLocales {" >> $@; \ michael@0: for file in $(INSTALLED_LANG_FILES); do \ michael@0: echo " $$file {\"\"}" >> $@; \ michael@0: done; \ michael@0: echo " }" >> $@; \ michael@0: echo "}" >> $@; michael@0: michael@0: ### region res michael@0: $(REGIONBLDDIR)/%.res: $(REGIONSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) michael@0: $(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(REGIONSRCDIR) -d $(REGIONBLDDIR) $( $@; \ michael@0: echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ michael@0: echo " InstalledLocales {" >> $@; \ michael@0: for file in $(INSTALLED_REGION_FILES); do \ michael@0: echo " $$file {\"\"}" >> $@; \ michael@0: done; \ michael@0: echo " }" >> $@; \ michael@0: echo "}" >> $@; michael@0: michael@0: ### zone res michael@0: $(ZONEBLDDIR)/%.res: $(ZONESRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) michael@0: $(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(ZONESRCDIR) -d $(ZONEBLDDIR) $( $@; \ michael@0: echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ michael@0: echo " InstalledLocales {" >> $@; \ michael@0: for file in $(INSTALLED_ZONE_FILES); do \ michael@0: echo " $$file {\"\"}" >> $@; \ michael@0: done; \ michael@0: echo " }" >> $@; \ michael@0: echo "}" >> $@; michael@0: michael@0: ### collation res michael@0: $(COLBLDDIR)/%.res: $(COLSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) michael@0: $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(COLSRCDIR) -d $(COLBLDDIR) $( $@; \ michael@0: echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ michael@0: echo " InstalledLocales {" >> $@; \ michael@0: for file in $(INSTALLED_COL_FILES); do \ michael@0: echo " $$file {\"\"}" >> $@; \ michael@0: done; \ michael@0: echo " }" >> $@; \ michael@0: echo "}" >> $@; michael@0: michael@0: ### brk res michael@0: $(BRKBLDDIR)/%.res: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(BRK_FILES) $(DICT_FILES) $(DAT_FILES) michael@0: $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(BRKSRCDIR) -d $(BRKBLDDIR) $( $@; \ michael@0: echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ michael@0: echo " InstalledLocales {" >> $@; \ michael@0: for file in $(INSTALLED_BRS_FILES); do \ michael@0: echo " $$file {\"\"}" >> $@; \ michael@0: done; \ michael@0: echo " }" >> $@; \ michael@0: echo "}" >> $@; michael@0: michael@0: ### RBNF res michael@0: $(RBNFBLDDIR)/%.res: $(RBNFSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) michael@0: $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(RBNFSRCDIR) -d $(RBNFBLDDIR) $( $@; \ michael@0: echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ michael@0: echo " InstalledLocales {" >> $@; \ michael@0: for file in $(INSTALLED_RBNF_FILES); do \ michael@0: echo " $$file {\"\"}" >> $@; \ michael@0: done; \ michael@0: echo " }" >> $@; \ michael@0: echo "}" >> $@; michael@0: michael@0: ### TRANSLIT res michael@0: $(TRANSLITBLDDIR)/%.res: $(TRANSLITSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) michael@0: $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(TRANSLITSRCDIR) -d $(TRANSLITBLDDIR) $( $@; \ michael@0: echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ michael@0: echo " CLDRVersion { \"$(GENRB_CLDR_VERSION)\" }" >> $@; \ michael@0: echo " InstalledLocales {" >> $@; \ michael@0: for file in $(INSTALLED_RB_FILES); do \ michael@0: echo " $$file {\"\"}" >> $@; \ michael@0: done; \ michael@0: echo " }" >> $@; \ michael@0: echo "}" >> $@; michael@0: michael@0: clean-resindex: michael@0: -$(RMV) $(BUILDDIR)/$(INDEX_NAME).txt $(PKGDATA_LIST) michael@0: michael@0: $(BUILDDIR)/$(INDEX_NAME).res: $(INDEX_FILE) $(TOOLBINDIR)/genrb$(TOOLEXEEXT) michael@0: $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -d $(BUILDDIR) $(INDEX_FILE) michael@0: michael@0: # The core Unicode properties files (pnames.icu, uprops.icu, ucase.icu, ubidi.icu) michael@0: # are hardcoded in the common DLL and therefore not included in the data package any more. michael@0: # They are not built by default but need to be built for ICU4J data and for getting the .c source files michael@0: # when updating the Unicode data. michael@0: uni-core-data: build-dir $(UNI_CORE_TARGET_DATA) michael@0: @echo Unicode .icu files built to $(BUILDDIR) michael@0: michael@0: # Build the ICU4J icudata.jar. michael@0: # Command line: michael@0: # (Run this from the output data folder which may not be .../source/data in an out-of-source build.) michael@0: # ~/svn.icu/trunk/source/data> make JAR=jar ICU4J_ROOT=~/svn.icu4j/trunk icudata.jar michael@0: # You can omit the ICU4J_ROOT for just building the .jar files without copying them. michael@0: # You can omit the JAR if it's just jar. michael@0: JAR=jar michael@0: michael@0: # For building the testdata.jar see ../test/testdata/Makefile. michael@0: michael@0: ICU4J_TZDATA=$(OUTDIR)/icu4j/icutzdata.jar michael@0: ICU4J_TZDATA_FILES=zoneinfo64 metaZones timezoneTypes windowsZones michael@0: ICU4J_DATA_DIRNAME=com/ibm/icu/impl/data/$(ICUDATA_BASENAME_VERSION)b michael@0: ICU4J_TZDATA_PATHS=$(ICU4J_TZDATA_FILES:%="$(ICU4J_DATA_DIRNAME)/%.res") michael@0: michael@0: # generate icu4j-related data to $(OUTDIR)/icu4j/com/ibm/icu/impl/data/... michael@0: generate-data: build-dir packagedata $(OUTTMPDIR)/$(ICUDATA_PLATFORM_NAME).dat uni-core-data michael@0: mkdir -p $(OUTDIR)/icu4j/$(ICU4J_DATA_DIRNAME) michael@0: mkdir -p $(OUTDIR)/icu4j/tzdata/$(ICU4J_DATA_DIRNAME) michael@0: echo pnames.icu ubidi.icu ucase.icu uprops.icu > $(OUTDIR)/icu4j/add.txt michael@0: $(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/$(ICU4J_DATA_DIRNAME) michael@0: mv $(ICU4J_TZDATA_PATHS:%=$(OUTDIR)/icu4j/%) "$(OUTDIR)/icu4j/tzdata/$(ICU4J_DATA_DIRNAME)" michael@0: michael@0: $(OUTDIR)/icu4j/icutzdata.jar: generate-data michael@0: $(JAR) cf $(OUTDIR)/icu4j/icutzdata.jar -C $(OUTDIR)/icu4j/tzdata $(ICU4J_DATA_DIRNAME)/ michael@0: michael@0: # Build icudata.jar: michael@0: # - add the uni-core-data to the ICU package michael@0: # - swap the ICU data michael@0: # - extract all data items michael@0: # - package them into the .jar file michael@0: $(OUTDIR)/icu4j/icudata.jar: generate-data michael@0: $(JAR) cf $(OUTDIR)/icu4j/icudata.jar -C $(OUTDIR)/icu4j $(ICU4J_DATA_DIRNAME)/ michael@0: michael@0: ICU4J_DATA=$(OUTDIR)/icu4j/icudata.jar michael@0: michael@0: ifdef ICU4J_ROOT michael@0: michael@0: ICU4J_DATA_INSTALLED=$(ICU4J_ROOT)/main/shared/data/icudata.jar $(ICU4J_ROOT)/main/shared/data/icutzdata.jar michael@0: michael@0: $(ICU4J_ROOT)/main/shared/data/icudata.jar: $(OUTDIR)/icu4j/icudata.jar michael@0: mkdir -p $(ICU4J_ROOT)/main/shared/data michael@0: cp $(OUTDIR)/icu4j/icudata.jar $(ICU4J_ROOT)/main/shared/data michael@0: michael@0: $(ICU4J_ROOT)/main/shared/data/icutzdata.jar: $(OUTDIR)/icu4j/icutzdata.jar michael@0: mkdir -p $(ICU4J_ROOT)/main/shared/data michael@0: cp $(OUTDIR)/icu4j/icutzdata.jar $(ICU4J_ROOT)/main/shared/data michael@0: michael@0: icu4j-data-install: $(ICU4J_DATA_INSTALLED) michael@0: michael@0: else michael@0: michael@0: icu4j-data-install: icu4j-data michael@0: @echo data is built into $(OUTDIR)/icu4j michael@0: @echo '** Error:' ICU4J_ROOT was not set, could not install michael@0: exit 1 michael@0: michael@0: endif michael@0: michael@0: icu4j-data: $(ICU4J_DATA) $(ICU4J_TZDATA) michael@0: michael@0: michael@0: ################################################################### michael@0: Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status michael@0: cd $(top_builddir) \ michael@0: && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status michael@0: michael@0: icupkg.inc: pkgdataMakefile michael@0: $(MAKE) -f pkgdataMakefile michael@0: michael@0: pkgdataMakefile: michael@0: cd $(top_builddir) \ michael@0: && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status michael@0: michael@0: ########### michael@0: ########### 390 (z/OS) support michael@0: UCMFILES390=ebcdic-xml-us.ucm ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm ibm-4909_P100-1999.ucm michael@0: # used to depend on pnames.icu uprops.icu ucase.icu ubidi.icu michael@0: # These are now hardcoded in ICU4C and only loaded in ICU4J. michael@0: ALLFILES390=cnvalias.icu $(UCMFILES390:.ucm=.cnv) michael@0: michael@0: $(OUTTMPDIR)/icudata390.lst: $(SRCLISTDEPS) michael@0: @echo "generating $@ (list of 390 data files)" michael@0: @-$(RMV) $@ michael@0: @for file in $(ALLFILES390); do \ michael@0: echo $$file >> $@; \ michael@0: done; michael@0: michael@0: ifeq ($(POST_DATA_BUILD), os400-data-rebind) michael@0: os400-data-rebind: $(LIBICUUC) michael@0: michael@0: $(LIBICUUC): $(LIBICUDT) michael@0: $(RMV) $(LIBICUUC) michael@0: (cd ../common && $(MAKE) RECURSIVE=YES) || exit; michael@0: endif michael@0: