2000-12-03 04:09:23 +00:00
|
|
|
#**********************************************************************
|
2001-03-21 20:31:13 +00:00
|
|
|
#* Copyright (C) 1999-2001, International Business Machines Corporation
|
2000-12-03 04:09:23 +00:00
|
|
|
#* and others. All Rights Reserved.
|
|
|
|
#**********************************************************************
|
|
|
|
# nmake file for creating data files on win32
|
|
|
|
# invoke with
|
2001-07-26 21:55:49 +00:00
|
|
|
# nmake /f makedata.mak [Debug|Release]
|
2000-12-03 04:09:23 +00:00
|
|
|
#
|
|
|
|
# 12/10/1999 weiv Created
|
|
|
|
|
2002-03-19 01:43:19 +00:00
|
|
|
##############################################################################
|
|
|
|
# Keep the following in sync with the version - see common/unicode/uversion.h
|
|
|
|
U_ICUDATA_NAME=icudt21
|
|
|
|
##############################################################################
|
2001-07-26 21:55:49 +00:00
|
|
|
U_ICUDATA_ENDIAN_SUFFIX=l
|
2001-10-20 00:30:31 +00:00
|
|
|
UNICODE_VERSION=3.1.1
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
# ICUMAKE
|
2001-07-26 21:55:49 +00:00
|
|
|
# Must be provided by whoever runs this makefile.
|
|
|
|
# Is the directory containing this file (makedata.mak)
|
|
|
|
# Is the directory into which most data is built (prior to packaging)
|
|
|
|
# Is icu\source\data\build
|
|
|
|
#
|
2002-01-24 02:28:22 +00:00
|
|
|
!IF "$(ICUMAKE)"==""
|
|
|
|
!ERROR Can't find ICUMAKE (ICU Data Make dir, should point to icu\source\data\ )!
|
2000-12-03 04:09:23 +00:00
|
|
|
!ENDIF
|
2002-01-24 02:28:22 +00:00
|
|
|
!MESSAGE ICU data make path is $(ICUMAKE)
|
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
ICUBLD=$(ICUMAKE)\out\build
|
2002-01-24 02:28:22 +00:00
|
|
|
ICUOUT=$(ICUMAKE)\out
|
2000-12-03 04:09:23 +00:00
|
|
|
|
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
# ICUP
|
|
|
|
# The root of the ICU source directory tree
|
|
|
|
#
|
2002-01-24 02:28:22 +00:00
|
|
|
ICUP=$(ICUMAKE)\..\..
|
|
|
|
ICUP=$(ICUP:\source\data\..\..=)
|
|
|
|
!MESSAGE ICU root path is $(ICUP)
|
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
# ICUSRCDATA
|
|
|
|
# The data directory in source
|
|
|
|
#
|
|
|
|
ICUSRCDATA=$(ICUP)\source\data
|
2002-03-08 01:57:46 +00:00
|
|
|
ICUSRCDATA_RELATIVE_PATH=..\..\
|
2002-01-24 02:28:22 +00:00
|
|
|
|
|
|
|
# ICUUCM
|
|
|
|
# The directory that contains ucmcore.mk files along with *.ucm files
|
|
|
|
#
|
2002-03-08 01:57:46 +00:00
|
|
|
ICUUCM=mappings
|
2002-01-24 02:28:22 +00:00
|
|
|
|
|
|
|
# ICULOC
|
|
|
|
# The directory that contains resfiles.mk files along with *.txt locale data files
|
|
|
|
#
|
2002-03-08 01:57:46 +00:00
|
|
|
ICULOC=locales
|
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
# ICUTRANSLIT
|
|
|
|
# The directory that contains trfiles.mk files along with *.txt transliterator files
|
|
|
|
#
|
2002-03-08 01:57:46 +00:00
|
|
|
ICUTRNS=translit
|
2002-01-24 02:28:22 +00:00
|
|
|
|
|
|
|
# ICUBRK
|
|
|
|
# The directory that contains resfiles.mk files along with *.txt break iterator files
|
|
|
|
#
|
|
|
|
ICUBRK=$(ICUP)\source\data\brkitr
|
|
|
|
|
|
|
|
# ICUUNIDATA
|
|
|
|
# The directory that contains Unicode data files
|
|
|
|
#
|
|
|
|
ICUUNIDATA=$(ICUP)\source\data\unidata
|
|
|
|
|
|
|
|
|
|
|
|
# ICUMISC
|
|
|
|
# The directory that contains files that are miscelleneous data
|
|
|
|
#
|
|
|
|
ICUMISC=$(ICUP)\source\data\misc
|
2001-07-26 21:55:49 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# ICUDATA
|
|
|
|
# The source directory. Contains the source files for the common data to be built.
|
|
|
|
# WARNING: NOT THE SAME AS ICU_DATA environment variable. Confusing.
|
2002-01-24 02:28:22 +00:00
|
|
|
ICUDATA=$(ICUP)\source\data
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
# DLL_OUTPUT
|
|
|
|
# Destination directory for the common data DLL file.
|
|
|
|
# This is the same place that all of the other ICU DLLs go (the code-containing DLLs)
|
|
|
|
# The lib file for the data DLL goes in $(DLL_OUTPUT)/../lib/
|
|
|
|
#
|
|
|
|
DLL_OUTPUT=$(ICUP)\bin
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
# TESTDATA
|
|
|
|
# The source directory for data needed for test programs.
|
2000-12-03 04:09:23 +00:00
|
|
|
TESTDATA=$(ICUP)\source\test\testdata
|
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
# TESTDATAOUT
|
|
|
|
# The destination directory for the built test data .dat file
|
|
|
|
# When running the tests, ICU_DATA environment variable is set to here
|
|
|
|
# so that test data files can be loaded. (Tests are NOT run from this makefile,
|
|
|
|
# only the data is put in place.)
|
2002-01-24 02:28:22 +00:00
|
|
|
TESTDATAOUT=$(ICUP)\source\test\testdata\out\
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
#
|
|
|
|
# TESTDATABLD
|
|
|
|
# The build directory for test data intermidiate files
|
|
|
|
# (Tests are NOT run from this makefile,
|
|
|
|
# only the data is put in place.)
|
|
|
|
TESTDATABLD=$(ICUP)\source\test\testdata\out\build
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
# ICUTOOLS
|
|
|
|
# Directory under which all of the ICU data building tools live.
|
|
|
|
#
|
2000-12-03 04:09:23 +00:00
|
|
|
ICUTOOLS=$(ICUP)\source\tools
|
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
|
|
|
|
PATH = $(PATH);$(ICUP)\bin
|
|
|
|
|
2000-12-03 04:09:23 +00:00
|
|
|
|
|
|
|
# We have to prepare params for pkgdata - to help it find the tools
|
|
|
|
!IF "$(CFG)" == "Debug" || "$(CFG)" == "debug"
|
2001-07-26 21:55:49 +00:00
|
|
|
!MESSAGE makedata.mak: doing a Debug build.
|
2000-12-03 04:09:23 +00:00
|
|
|
PKGOPT=D:$(ICUP)
|
|
|
|
!ELSE
|
2001-07-26 21:55:49 +00:00
|
|
|
!MESSAGE makedata.mak: doing a Release build.
|
2000-12-03 04:09:23 +00:00
|
|
|
PKGOPT=R:$(ICUP)
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
|
|
|
|
# Suffixes for data files
|
|
|
|
.SUFFIXES : .ucm .cnv .dll .dat .res .txt .c
|
|
|
|
|
2001-11-15 21:47:41 +00:00
|
|
|
# We're including a list of .ucm files.
|
|
|
|
# There are several lists, they are all optional.
|
|
|
|
|
|
|
|
# Always build the mapping files for the EBCDIC fallback codepages
|
|
|
|
# They are necessary on EBCDIC machines, and
|
|
|
|
# the following logic is much easier if UCM_SOURCE is never empty.
|
|
|
|
# (They are small.)
|
|
|
|
UCM_SOURCE=ibm-37.ucm ibm-1047-s390.ucm
|
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmcore.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmcore.mk"
|
2001-11-15 21:47:41 +00:00
|
|
|
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_CORE)
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Warning: cannot find "ucmcore.mk". Not building core MIME/Unix/Windows converter files.
|
|
|
|
!ENDIF
|
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmfiles.mk"
|
2001-11-15 21:47:41 +00:00
|
|
|
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_FILES)
|
2001-10-13 00:32:53 +00:00
|
|
|
!ELSE
|
2001-11-15 21:47:41 +00:00
|
|
|
!MESSAGE Warning: cannot find "ucmfiles.mk". Not building many converter files.
|
2001-10-13 00:32:53 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmebcdic.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmebcdic.mk"
|
2001-11-15 21:47:41 +00:00
|
|
|
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_EBCDIC)
|
2001-10-13 00:32:53 +00:00
|
|
|
!ELSE
|
2001-11-15 21:47:41 +00:00
|
|
|
!MESSAGE Warning: cannot find "ucmebcdic.mk". Not building EBCDIC converter files.
|
2001-10-13 00:32:53 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmlocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmlocal.mk"
|
2001-10-13 00:32:53 +00:00
|
|
|
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_LOCAL)
|
2000-12-03 04:09:23 +00:00
|
|
|
!ELSE
|
2001-11-15 21:47:41 +00:00
|
|
|
!MESSAGE Information: cannot find "ucmlocal.mk". Not building user-additional converter files.
|
2000-12-03 04:09:23 +00:00
|
|
|
!ENDIF
|
2001-10-13 00:32:53 +00:00
|
|
|
|
2000-12-03 04:09:23 +00:00
|
|
|
CNV_FILES=$(UCM_SOURCE:.ucm=.cnv)
|
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
# Read list of locale resource bundle files
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICULOC)\resfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICULOC)\resfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICULOC)\reslocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICULOC)\reslocal.mk"
|
2000-12-03 04:09:23 +00:00
|
|
|
GENRB_SOURCE=$(GENRB_SOURCE) $(GENRB_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
2002-01-24 02:28:22 +00:00
|
|
|
!MESSAGE Information: cannot find "reslocal.mk". Not building user-additional resource bundle files.
|
2000-12-03 04:09:23 +00:00
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!ERROR ERROR: cannot find "resfiles.mk"
|
|
|
|
!ENDIF
|
2002-01-24 02:28:22 +00:00
|
|
|
|
2000-12-03 04:09:23 +00:00
|
|
|
RB_FILES = $(GENRB_SOURCE:.txt=.res)
|
2002-01-24 02:28:22 +00:00
|
|
|
|
|
|
|
# Read list of transliterator resource bundle files
|
2002-03-08 01:57:46 +00:00
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUTRNS)\trnsfiles.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUTRNS)\trnsfiles.mk"
|
|
|
|
!IF EXISTS("$(ICUSRCDATA)\$(ICUTRNS)\trnslocal.mk")
|
|
|
|
!INCLUDE "$(ICUSRCDATA)\$(ICUTRNS)\trnslocal.mk"
|
2002-01-24 02:28:22 +00:00
|
|
|
TRANLIT_SOURCE=$(TRANSLIT_SOURCE) $(TRANSLIT_SOURCE_LOCAL)
|
|
|
|
!ELSE
|
|
|
|
!MESSAGE Information: cannot find "trnslocal.mk". Not building user-additional transliterator files.
|
|
|
|
!ENDIF
|
|
|
|
!ELSE
|
|
|
|
!ERROR ERROR: cannot find "trnsfiles.mk"
|
|
|
|
!ENDIF
|
|
|
|
|
2000-12-03 04:09:23 +00:00
|
|
|
TRANSLIT_FILES = $(TRANSLIT_SOURCE:.txt=.res)
|
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
ALL_RES = $(RB_FILES) $(TRANSLIT_FILES)
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#############################################################################
|
|
|
|
#
|
|
|
|
# ALL
|
|
|
|
# This target builds all the data files. The world starts here.
|
2002-03-08 01:57:46 +00:00
|
|
|
# Note: we really want the common data dll to go to $(DLL_OUTPUT), not $(ICUBLD). But specifying
|
2001-08-01 20:15:06 +00:00
|
|
|
# that here seems to cause confusion with the building of the stub library of the same name.
|
2002-03-08 01:57:46 +00:00
|
|
|
# Building the common dll in $(ICUBLD) unconditionally copies it to $(DLL_OUTPUT) too.
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
#############################################################################
|
2002-03-08 01:57:46 +00:00
|
|
|
ALL : GODATA "$(DLL_OUTPUT)\$(U_ICUDATA_NAME).dll" "$(TESTDATAOUT)\testdata.dat" "$(TESTDATAOUT)\test1.cnv" "$(TESTDATAOUT)\test3.cnv" "$(TESTDATAOUT)\test4.cnv"
|
2000-12-03 04:09:23 +00:00
|
|
|
@echo All targets are up to date
|
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
|
|
|
# testdata - nmake will invoke pkgdata, which will create testdata.dat
|
|
|
|
#
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(TESTDATAOUT)\testdata.dat": ucadata.dat $(TRANSLIT_FILES) $(RB_FILES) {"$(ICUTOOLS)\genrb\$(CFG)"}genrb.exe
|
2001-03-19 22:35:36 +00:00
|
|
|
@cd "$(TESTDATA)"
|
2001-10-31 23:57:05 +00:00
|
|
|
@echo building testdata...
|
2002-01-24 02:28:22 +00:00
|
|
|
nmake /nologo /f "$(TESTDATA)\testdata.mk" TESTDATA=. ICUTOOLS="$(ICUTOOLS)" PKGOPT="$(PKGOPT)" CFG=$(CFG) TESTDATAOUT="$(TESTDATAOUT)" ICUDATA="$(ICUDATA)" TESTDATABLD="$(TESTDATABLD)"
|
2001-03-19 22:35:36 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
BRK_FILES = "$(ICUBLD)\sent.brk" "$(ICUBLD)\char.brk" "$(ICUBLD)\line.brk" "$(ICUBLD)\word.brk" "$(ICUBLD)\title.brk" "$(ICUBLD)\line_th.brk" "$(ICUBLD)\word_th.brk"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
#invoke pkgdata for ICU common data
|
2002-03-08 01:57:46 +00:00
|
|
|
# pkgdata will drop all output files (.dat, .dll, .lib) into the target (ICUBLD) directory.
|
2001-07-26 21:55:49 +00:00
|
|
|
# move the .dll and .lib files to their final destination afterwards.
|
2002-03-08 01:57:46 +00:00
|
|
|
# The $(U_ICUDATA_NAME).lib and $(U_ICUDATA_NAME).exp should already be in the right place due to stubdata.
|
2001-07-26 21:55:49 +00:00
|
|
|
#
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(DLL_OUTPUT)\$(U_ICUDATA_NAME).dll" : "$(ICUTOOLS)\pkgdata\$(CFG)\pkgdata.exe" $(CNV_FILES) $(BRK_FILES) "$(ICUBLD)\uprops.dat" "$(ICUBLD)\unames.dat" "$(ICUBLD)\unorm.dat" "$(ICUBLD)\cnvalias.dat" "$(ICUBLD)\tz.dat" "$(ICUBLD)\ucadata.dat" "$(ICUBLD)\invuca.dat" $(ALL_RES) "$(ICUBLD)\icudata.res" "$(ICUP)\source\stubdata\stubdatabuilt.txt"
|
2000-12-03 04:09:23 +00:00
|
|
|
@echo Building icu data
|
2002-03-08 01:57:46 +00:00
|
|
|
@cd "$(ICUBLD)"
|
|
|
|
"$(ICUTOOLS)\pkgdata\$(CFG)\pkgdata" -e $(U_ICUDATA_NAME) -v -m dll -c -p $(U_ICUDATA_NAME) -O "$(PKGOPT)" -d "$(ICUBLD)" -s . <<pkgdatain.txt
|
2000-12-03 04:09:23 +00:00
|
|
|
uprops.dat
|
|
|
|
unames.dat
|
2001-06-20 22:24:42 +00:00
|
|
|
unorm.dat
|
2000-12-03 04:09:23 +00:00
|
|
|
cnvalias.dat
|
|
|
|
tz.dat
|
2001-02-23 04:57:47 +00:00
|
|
|
ucadata.dat
|
|
|
|
invuca.dat
|
2000-12-03 04:09:23 +00:00
|
|
|
$(CNV_FILES:.cnv =.cnv
|
|
|
|
)
|
|
|
|
$(RB_FILES:.res =.res
|
|
|
|
)
|
|
|
|
$(TRANSLIT_FILES:.res =.res
|
|
|
|
)
|
|
|
|
$(BRK_FILES:.brk" =.brk"
|
|
|
|
)
|
|
|
|
<<KEEP
|
2001-09-18 00:02:52 +00:00
|
|
|
copy "$(U_ICUDATA_NAME).dll" "$(DLL_OUTPUT)"
|
|
|
|
-@erase "$(U_ICUDATA_NAME).dll"
|
2002-01-24 02:28:22 +00:00
|
|
|
copy "$(U_ICUDATA_NAME).dat" "$(ICUOUT)\$(U_ICUDATA_NAME)$(U_ICUDATA_ENDIAN_SUFFIX).dat"
|
2001-09-18 00:02:52 +00:00
|
|
|
-@erase "$(U_ICUDATA_NAME).dat"
|
2001-07-26 21:55:49 +00:00
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\sent.brk" : "$(ICUBRK)\sentLE.brk"
|
|
|
|
copy "$(ICUBRK)\sentLE.brk" "$(ICUBLD)\sent.brk"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\char.brk" : "$(ICUBRK)\charLE.brk"
|
|
|
|
copy "$(ICUBRK)\charLE.brk" "$(ICUBLD)\char.brk"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\line.brk" : "$(ICUBRK)\lineLE.brk"
|
|
|
|
copy "$(ICUBRK)\lineLE.brk" "$(ICUBLD)\line.brk"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\word.brk" : "$(ICUBRK)\wordLE.brk"
|
|
|
|
copy "$(ICUBRK)\wordLE.brk" "$(ICUBLD)\word.brk"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\title.brk" : "$(ICUBRK)\titleLE.brk"
|
|
|
|
copy "$(ICUBRK)\titleLE.brk" "$(ICUBLD)\title.brk"
|
2002-02-28 01:28:04 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\line_th.brk" : "$(ICUBRK)\line_thLE.brk"
|
|
|
|
copy "$(ICUBRK)\line_thLE.brk" "$(ICUBLD)\line_th.brk"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\word_th.brk" : "$(ICUBRK)\word_thLE.brk"
|
|
|
|
copy "$(ICUBRK)\word_thLE.brk" "$(ICUBLD)\word_th.brk"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
# utility target to send us to the right dir
|
2000-12-03 04:09:23 +00:00
|
|
|
GODATA :
|
2002-01-24 02:28:22 +00:00
|
|
|
@if not exist "$(ICUOUT)\$(NULL)" mkdir "$(ICUOUT)"
|
2002-03-08 01:57:46 +00:00
|
|
|
@if not exist "$(ICUBLD)\$(NULL)" mkdir "$(ICUBLD)"
|
2002-01-24 02:28:22 +00:00
|
|
|
@if not exist "$(TESTDATAOUT)\$(NULL)" mkdir "$(TESTDATAOUT)"
|
2002-02-19 23:23:17 +00:00
|
|
|
@if not exist "$(TESTDATABLD)\$(NULL)" mkdir "$(TESTDATABLD)"
|
2002-03-08 01:57:46 +00:00
|
|
|
@cd "$(ICUBLD)"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
|
|
|
# This is to remove all the data files
|
2002-02-05 19:04:56 +00:00
|
|
|
CLEAN : GODATA
|
2001-09-18 00:02:52 +00:00
|
|
|
@echo Cleaning up the data files.
|
2002-03-08 01:57:46 +00:00
|
|
|
@cd "$(ICUBLD)"
|
|
|
|
-@erase "*.brk"
|
2000-12-03 04:09:23 +00:00
|
|
|
-@erase "*.cnv"
|
2002-03-08 01:57:46 +00:00
|
|
|
-@erase "*.dat"
|
|
|
|
-@erase "*.exp"
|
2000-12-03 04:09:23 +00:00
|
|
|
-@erase "*.obj"
|
2002-03-08 01:57:46 +00:00
|
|
|
-@erase "*.lib"
|
|
|
|
-@erase "*.mak"
|
|
|
|
-@erase "*.res"
|
|
|
|
-@erase "*.txt"
|
|
|
|
@cd "$(ICUOUT)"
|
|
|
|
-@erase "*.dat"
|
|
|
|
@cd "$(TESTDATABLD)"
|
|
|
|
-@erase "*.res"
|
2001-09-18 00:02:52 +00:00
|
|
|
-@erase "*.dat"
|
2002-03-08 01:57:46 +00:00
|
|
|
-@erase "*.mak"
|
2001-09-18 00:02:52 +00:00
|
|
|
@cd "$(TESTDATAOUT)"
|
|
|
|
-@erase "*.dat"
|
2001-03-03 00:08:03 +00:00
|
|
|
-@erase "*.cnv"
|
2002-03-08 01:57:46 +00:00
|
|
|
@cd "$(ICUBLD)"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2000-12-04 21:51:29 +00:00
|
|
|
|
2000-12-03 04:09:23 +00:00
|
|
|
|
|
|
|
# Targets for test converter data
|
2001-11-16 18:38:11 +00:00
|
|
|
"$(TESTDATAOUT)\test1.cnv": "$(TESTDATA)\test1.ucm"
|
2000-12-03 04:09:23 +00:00
|
|
|
@cd "$(ICUDATA)"
|
2001-07-26 21:55:49 +00:00
|
|
|
@set ICU_DATA=$(TESTDATAOUT)
|
2000-12-03 04:09:23 +00:00
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" $**
|
|
|
|
|
2001-11-16 18:38:11 +00:00
|
|
|
"$(TESTDATAOUT)\test3.cnv": "$(TESTDATA)\test3.ucm"
|
2000-12-03 04:09:23 +00:00
|
|
|
@cd "$(ICUDATA)"
|
2001-07-26 21:55:49 +00:00
|
|
|
@set ICU_DATA=$(TESTDATAOUT)
|
2000-12-03 04:09:23 +00:00
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" $**
|
|
|
|
|
2001-11-16 18:38:11 +00:00
|
|
|
"$(TESTDATAOUT)\test4.cnv": "$(TESTDATA)\test4.ucm"
|
2000-12-03 04:09:23 +00:00
|
|
|
@cd "$(ICUDATA)"
|
2001-07-26 21:55:49 +00:00
|
|
|
@set ICU_DATA=$(TESTDATAOUT)
|
2000-12-03 04:09:23 +00:00
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" $**
|
|
|
|
|
2001-11-16 18:38:11 +00:00
|
|
|
# Batch inference rule for creating converters
|
2002-03-08 01:57:46 +00:00
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICUUCM)}.ucm.cnv::
|
2001-11-16 18:52:45 +00:00
|
|
|
@echo Generating converters
|
2002-03-08 01:57:46 +00:00
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(ICUBLD)" $<
|
2002-01-24 02:28:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Batch infrence rule for creating transliterator resource files
|
2002-03-08 01:57:46 +00:00
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICUTRNS)}.txt.res::
|
2002-01-24 02:28:22 +00:00
|
|
|
@echo Making Transliterator Resource Bundle files
|
2002-03-08 01:57:46 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -d"$(ICUBLD)" $<
|
2001-11-16 18:38:11 +00:00
|
|
|
|
2002-01-24 02:28:22 +00:00
|
|
|
# Inference rule for creating resource bundle files
|
2002-03-08 01:57:46 +00:00
|
|
|
{$(ICUSRCDATA_RELATIVE_PATH)\$(ICULOC)}.txt.res::
|
2002-01-24 02:28:22 +00:00
|
|
|
@echo Making Locale Resource Bundle files
|
2002-03-08 01:57:46 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -d"$(ICUBLD)" $<
|
2001-11-02 01:25:04 +00:00
|
|
|
|
2001-05-10 23:16:00 +00:00
|
|
|
# DLL version information
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\icudata.res": "$(ICUMISC)\icudata.rc"
|
2001-05-10 23:16:00 +00:00
|
|
|
@echo Creating data DLL version information from $**
|
2002-03-08 01:57:46 +00:00
|
|
|
@rc.exe /i "..\..\..\..\include" /r /fo $@ $**
|
2001-05-10 23:16:00 +00:00
|
|
|
|
2000-12-03 04:09:23 +00:00
|
|
|
# Targets for unames.dat
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\unames.dat": "$(ICUUNIDATA)\*.txt" "$(ICUTOOLS)\gennames\$(CFG)\gennames.exe"
|
2000-12-03 04:09:23 +00:00
|
|
|
@echo Creating data file for Unicode Names
|
2002-03-08 01:57:46 +00:00
|
|
|
@set ICU_DATA=$(ICUBLD)
|
2002-01-24 02:28:22 +00:00
|
|
|
@"$(ICUTOOLS)\gennames\$(CFG)\gennames" -1 -u $(UNICODE_VERSION) "$(ICUUNIDATA)\UnicodeData.txt"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
|
|
|
# Targets for uprops.dat
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\uprops.dat": "$(ICUUNIDATA)\*.txt" "$(ICUTOOLS)\genprops\$(CFG)\genprops.exe"
|
2000-12-03 04:09:23 +00:00
|
|
|
@echo Creating data file for Unicode Character Properties
|
2002-03-08 01:57:46 +00:00
|
|
|
@set ICU_DATA=$(ICUBLD)
|
2002-01-24 02:28:22 +00:00
|
|
|
@"$(ICUTOOLS)\genprops\$(CFG)\genprops" -u $(UNICODE_VERSION) -s "$(ICUUNIDATA)"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-06-20 22:24:42 +00:00
|
|
|
# Targets for unorm.dat
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\unorm.dat": "$(ICUUNIDATA)\*.txt" "$(ICUTOOLS)\gennorm\$(CFG)\gennorm.exe"
|
2001-06-20 22:24:42 +00:00
|
|
|
@echo Creating data file for Unicode Normalization
|
2002-03-08 01:57:46 +00:00
|
|
|
@set ICU_DATA=$(ICUBLD)
|
2002-01-24 02:28:22 +00:00
|
|
|
@"$(ICUTOOLS)\gennorm\$(CFG)\gennorm" -u $(UNICODE_VERSION) -s "$(ICUUNIDATA)"
|
2001-06-20 22:24:42 +00:00
|
|
|
|
2000-12-03 04:09:23 +00:00
|
|
|
# Targets for converters
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\cnvalias.dat" : {"$(ICUSRCDATA)\$(ICUUCM)"}\convrtrs.txt "$(ICUTOOLS)\gencnval\$(CFG)\gencnval.exe"
|
2000-12-03 04:09:23 +00:00
|
|
|
@echo Creating data file for Converter Aliases
|
2002-03-08 01:57:46 +00:00
|
|
|
@set ICU_DATA=$(ICUBLD)
|
|
|
|
@"$(ICUTOOLS)\gencnval\$(CFG)\gencnval" "$(ICUSRCDATA)\$(ICUUCM)\convrtrs.txt"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
|
|
|
# Targets for tz
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\tz.dat" : {"$(ICUMISC)"}timezone.txt {"$(ICUTOOLS)\gentz\$(CFG)"}gentz.exe
|
2000-12-03 04:09:23 +00:00
|
|
|
@echo Creating data file for Timezones
|
2002-03-08 01:57:46 +00:00
|
|
|
@set ICU_DATA=$(ICUBLD)
|
2002-01-24 02:28:22 +00:00
|
|
|
@"$(ICUTOOLS)\gentz\$(CFG)\gentz" "$(ICUMISC)\timezone.txt"
|
2000-12-03 04:09:23 +00:00
|
|
|
|
2001-02-23 04:57:47 +00:00
|
|
|
# Targets for ucadata.dat & invuca.dat
|
2002-03-08 01:57:46 +00:00
|
|
|
"$(ICUBLD)\invuca.dat" "$(ICUBLD)\ucadata.dat": "$(ICUUNIDATA)\FractionalUCA.txt" "$(ICUTOOLS)\genuca\$(CFG)\genuca.exe" uprops.dat unorm.dat
|
2001-02-23 04:57:47 +00:00
|
|
|
@echo Creating UCA data files
|
2002-03-08 01:57:46 +00:00
|
|
|
@set ICU_DATA=$(ICUBLD)
|
2002-01-24 02:28:22 +00:00
|
|
|
@"$(ICUTOOLS)\genuca\$(CFG)\genuca" -s "$(ICUUNIDATA)"
|
2001-02-23 04:57:47 +00:00
|
|
|
|
2002-03-08 01:57:46 +00:00
|
|
|
# Dependencies on the tools for the batch inference rules
|
2001-02-23 04:57:47 +00:00
|
|
|
|
2001-11-16 18:38:11 +00:00
|
|
|
$(UCM_SOURCE) : {"$(ICUTOOLS)\makeconv\$(CFG)"}makeconv.exe
|
2001-11-02 01:25:04 +00:00
|
|
|
|
2001-11-16 20:12:38 +00:00
|
|
|
$(TRANSLIT_SOURCE) $(GENRB_SOURCE) : {"$(ICUTOOLS)\genrb\$(CFG)"}genrb.exe ucadata.dat uprops.dat unorm.dat
|
2000-12-03 04:09:23 +00:00
|
|
|
|