2002-01-24 17:32:12 +00:00
## Makefile.in for ICU data
2004-03-26 01:22:25 +00:00
## Copyright (c) 1999-2004, 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
i n c l u d e $( top_builddir ) / i c u d e f s . m k
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-04-28 05:24:57 +00:00
LIB_ICUDATA_NAME = $( LIBPREFIX) $( ICUDATA_NAME)
LIB_STATIC_ICUDATA_NAME = $( LIBPREFIX) $( STATIC_PREFIX) $( ICUDATA_NAME)
2002-01-24 17:32:12 +00:00
2003-09-23 00:29:28 +00:00
# Allow Windows to override these options
i f e q ( $( PKGDATA_OPTS ) , )
PKGDATA_OPTS = -O $( top_builddir) /data/icupkg.inc
e n d i f
2004-03-31 22:33:46 +00:00
i f e q ( $( PKGDATA_VERSIONING ) , )
PKGDATA_VERSIONING = -r $( SO_TARGET_VERSION)
e n d i f
2003-09-23 00:29:28 +00:00
2000-12-01 17:20:26 +00:00
top_builddir_from_tmp = $( patsubst ..%,../..%,$( top_builddir) )
2004-03-31 22:33:46 +00:00
CURDIR := $( CURR_FULL_DIR)
2004-04-14 19:37:00 +00:00
PKGDATA = $( BINDIR) /pkgdata $( PKGDATA_OPTS) -c -s $( CURDIR) /out/build/$( ICUDATA_PLATFORM_NAME) -d $( OUTDIR)
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.
SRCDATADIR = $( top_srcdir) /data
OUTDIR = $( top_builddir) /data/out
2004-04-14 19:37:00 +00:00
OUTTMPDIR = $( top_builddir) /data/out/tmp
BUILDDIR = $( OUTDIR) /build/$( 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
2002-01-24 17:32:12 +00:00
TRNSSRCDIR = $( SRCDATADIR) /translit
2003-08-15 18:18:46 +00:00
MISCSRCDIR = $( SRCDATADIR) /misc
2002-01-24 17:32:12 +00:00
BRKSRCDIR = $( SRCDATADIR) /brkitr
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
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
2002-01-24 17:32:12 +00:00
.PHONY : all all -local all -recursive install install -local install -files install -dlls build -cmnfile build -dll \
2000-08-29 07:28:22 +00:00
i n s t a l l - r e c u r s i v e c l e a n c l e a n - l o c a l c l e a n - r e c u r s i v e d i s t c l e a n \
2002-01-24 17:32:12 +00:00
d i s t c l e a n - l o c a l d i s t c l e a n - r e c u r s i v e d i s t d i s t - l o c a l d i s t - r e c u r s i v e \
2003-09-25 00:18:15 +00:00
c h e c k c h e c k - l o c a l c h e c k - r e c u r s i v e b u i l d - t e s t d l l s b u i l d - b a s e t e s t d a t a b u i l d - l o c a l c l e a n - r e s i n d e x
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
2002-05-23 23:23:46 +00:00
i f e q ( $( OS 390_STUBDATA ) , 1 )
OS390PKG = package390
OS390INSTALL = install390
# Additional data for 390
2004-04-14 19:37:00 +00:00
OS390LIST = $( OUTTMPDIR) /icudata390.lst
2000-12-05 18:33:14 +00:00
e n d i f
2004-04-12 23:20:23 +00:00
all-local : icupkg .inc build -local packagedata testdata $( POST_DATA_BUILD ) packagetest $( OS 390PKG )
2000-12-01 17:20:26 +00:00
2000-08-29 07:28:22 +00:00
dist-local :
2002-07-31 20:28:32 +00:00
clean-map :
-test -z *.map || $( RMV) *.map
clean-local : cleanpackage cleanfiles clean -map
2002-03-15 18:17:14 +00:00
$( RMV) $( TESTOUTDIR) /testdata.dat
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)
$( RMV) $( TESTOUTDIR)
2000-12-01 17:20:26 +00:00
2000-08-29 07:28:22 +00:00
check-local :
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.
2003-09-23 00:29:28 +00:00
PKGDATA_INVOKE := $( subst :$( top_builddir) /data/out,,$( 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
i f n e q ( $( ENABLE_STATIC ) , )
2004-01-12 17:51:52 +00:00
# Move the shared library out of the way while creating the static library
# to prevent name collisions.
i f e q ( $( wildcard $ ( OUTDIR ) /$ ( LIB_ICUDATA_NAME ) .$ ( SO ) ) , $( OUTDIR ) / $( LIB_ICUDATA_NAME ) . $( SO ) )
mv -f $( OUTDIR) /$( LIB_ICUDATA_NAME) .$( SO) $( OUTDIR) /$( LIB_ICUDATA_NAME) -temp.$( SO)
e n d i f
i f e q ( $( wildcard $ ( OUTDIR ) /$ ( LIB_STATIC_ICUDATA_NAME ) .$ ( A ) ) , $( OUTDIR ) / $( LIB_STATIC_ICUDATA_NAME ) . $( A ) )
mv -f $( OUTDIR) /$( LIB_STATIC_ICUDATA_NAME) .$( A) $( OUTDIR) /$( LIB_ICUDATA_NAME) .$( A)
e n d i f
2004-04-14 19:37:00 +00:00
$( PKGDATA_INVOKE) $( PKGDATA) -e $( ICUDATA_ENTRY_POINT) -T $( OUTTMPDIR) -p $( ICUDATA_NAME) $( PKGDATA_LIBNAME) -m static $( OUTTMPDIR) /icudata.lst
2004-01-07 07:07:17 +00:00
mv -f $( OUTDIR) /$( LIB_ICUDATA_NAME) .$( A) $( OUTDIR) /$( LIB_STATIC_ICUDATA_NAME) .$( A)
2004-01-12 17:51:52 +00:00
i f e q ( $( wildcard $ ( OUTDIR ) /$ ( LIB_ICUDATA_NAME ) -temp .$ ( SO ) ) , $( OUTDIR ) / $( LIB_ICUDATA_NAME ) - t e m p . $( SO ) )
mv -f $( OUTDIR) /$( LIB_ICUDATA_NAME) -temp.$( SO) $( OUTDIR) /$( LIB_ICUDATA_NAME) .$( SO)
e n d i f
2003-04-13 16:18:04 +00:00
e n d i f
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
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 $( OS 390INSTALL )
2001-11-10 02:09:59 +00:00
$( MKINSTALLDIRS) $( TMPDATADIR) $( DESTDIR) $( ICUPKGDATA_DIR)
2003-04-13 16:18:04 +00:00
i f n e q ( $( ENABLE_STATIC ) , )
2004-01-12 17:51:52 +00:00
# It is done this way just in case the $(SO) == $(A)
mv -f $( OUTDIR) /$( LIB_ICUDATA_NAME) .$( SO) $( OUTDIR) /$( LIB_ICUDATA_NAME) -temp.$( SO)
mv -f $( OUTDIR) /$( LIB_STATIC_ICUDATA_NAME) .$( A) $( OUTDIR) /$( LIB_ICUDATA_NAME) .$( A)
2004-04-14 19:37:00 +00:00
$( PKGDATA_INVOKE) $( PKGDATA) -m static -e $( ICUDATA_ENTRY_POINT) -T $( OUTTMPDIR) -p $( ICUDATA_NAME) $( PKGDATA_LIBNAME) $( OUTTMPDIR) /icudata.lst
2004-01-07 07:07:17 +00:00
mv -f $( OUTDIR) /$( LIB_ICUDATA_NAME) .$( A) $( OUTDIR) /$( LIB_STATIC_ICUDATA_NAME) .$( A)
2004-01-12 17:51:52 +00:00
mv -f $( OUTDIR) /$( LIB_ICUDATA_NAME) -temp.$( SO) $( OUTDIR) /$( LIB_ICUDATA_NAME) .$( SO)
2004-01-07 07:07:17 +00:00
$( INSTALL-L) $( OUTDIR) /$( LIB_STATIC_ICUDATA_NAME) .$( A) $( DESTDIR) $( ICUPKGDATA_DIR) /$( LIB_STATIC_ICUDATA_NAME) .$( A)
2003-04-13 16:18:04 +00:00
e n d i f
2004-04-14 19:37:00 +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 $( DESTDIR) $( ICUPKGDATA_DIR)
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-04-14 19:37:00 +00:00
install390 : $( OUTTMPDIR ) /icudata 390.lst ./icupkg .inc
2001-11-09 02:24:19 +00:00
$( MKINSTALLDIRS) $( TMPDATADIR) $( DESTDIR) $( libdir)
2004-04-14 19:37:00 +00:00
$( INVOKE) $( PKGDATA) -s $( BUILDDIR) -T $( OUTTMPDIR) /tmp3901 -p $( ICUDATA_NAME) $( STUB_SUFFIX) -e $( ICUDATA_ENTRY_POINT) $( OUTTMPDIR) /icudata390.lst -m dll $( PKGDATA_VERSIONING) -I $( DESTDIR) $( ICUPKGDATA_DIR)
2003-03-19 01:56:39 +00:00
i f e q ( $( PKGDATA_MODE ) , d l l )
2003-12-19 00:08:47 +00:00
$( INSTALL-L) $( 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
e n d i f
2001-11-09 02:24:19 +00:00
2001-11-06 22:19:17 +00:00
#### $(LIB_ICUDATA_NAME)$(BATCH_SUFFIX) is the subset data for batch mode
2004-04-14 19:37:00 +00:00
package390 : $( OUTTMPDIR ) /icudata 390.lst $( OUTTMPDIR ) /icudata .lst ./icupkg .inc
2002-05-23 23:23:46 +00:00
@$( MKINSTALLDIRS) $( BUILDDIR) /tmp3901
2004-04-14 19:37:00 +00:00
$( INVOKE) $( PKGDATA) -s $( BUILDDIR) -T $( OUTTMPDIR) /tmp3901 -p $( ICUDATA_NAME) $( STUB_SUFFIX) -e $( ICUDATA_ENTRY_POINT) $( BUILDDIR) /icudata390.lst -m dll $( PKGDATA_VERSIONING)
2002-05-23 23:23:46 +00:00
cp $( 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.
2003-08-21 00:21:31 +00:00
DAT_FILES_SHORT = uprops.icu pnames.icu unames.icu unorm.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
# ALL of these files can be deleted (the following BRK files) - they are copied
2002-07-17 15:13:08 +00:00
BRK_FILES_SHORT = char.brk line.brk line_th.brk sent.brk word.brk title.brk word_th.brk
2004-04-14 19:37:00 +00:00
BRK_FILES = $( BRK_FILES_SHORT:%= $( BUILDDIR) /%)
2002-01-24 17:32:12 +00:00
# don't include thaidict.brk - it goes into a resource bundle - plus it isn't deleted
## UCM files
- i n c l u d e $( UCMSRCDIR ) / u c m c o r e . m k
- i n c l u d e $( UCMSRCDIR ) / u c m f i l e s . m k
- i n c l u d e $( UCMSRCDIR ) / u c m e b c d i c . m k
- i n c l u d e $( UCMSRCDIR ) / u c m l o c a l . m k
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
- i n c l u d e $( LOCSRCDIR ) / r e s f i l e s . m k
2004-04-14 19:37:00 +00:00
- i n c l u d e $( COLSRCDIR ) / c o l f i l e s . m k
2002-01-24 17:32:12 +00:00
- i n c l u d e $( LOCSRCDIR ) / r e s l o c a l . m k
2004-04-14 19:37:00 +00:00
- i n c l u d e $( COLSRCDIR ) / c o l l o c a l . m k
2002-07-30 08:00:51 +00:00
RES_SOURCE = root.txt $( GENRB_SOURCE) $( GENRB_ALIAS_SOURCE) $( GENRB_SOURCE_LOCAL)
2002-01-24 17:32:12 +00:00
RES_SRC_FILES = $( RES_SOURCE:%= $( LOCSRCDIR) /%)
2003-02-25 01:49:34 +00:00
INSTALLED_RB_FILES = $( GENRB_SOURCE:%.txt= %) $( GENRB_SOURCE_LOCAL:%.txt= %)
2004-04-14 19:37:00 +00:00
COL_SOURCE = root.txt $( COLLATION_SOURCE) $( COLLATION_ALIAS_SOURCE) $( COLLATION_SOURCE_LOCAL)
COL_SRC_FILES = $( COL_SOURCE:%= $( COLSRCDIR) /%)
INSTALLED_COL_FILES = $( COLLATION_SOURCE:%.txt= %) $( COLLATION_SOURCE_LOCAL:%.txt= %)
2002-11-15 22:20:33 +00:00
GENRBOPTS = -k -q
2002-01-24 17:32:12 +00:00
## TRNS files
2003-05-07 01:37:01 +00:00
- i n c l u d e $( TRNSSRCDIR ) / t r n s f i l e s . m k
2002-01-24 17:32:12 +00:00
- i n c l u d e $( TRNSSRCDIR ) / t r n s l o c a l . m k
TRNS_SOURCE = $( TRANSLIT_SOURCE) $( TRANSLIT_SOURCE_LOCAL)
TRNS_SRC_FILES = $( TRNS_SOURCE:%= $( TRNSSRCDIR) /%)
2003-08-15 18:18:46 +00:00
## MISC files
- i n c l u d e $( MISCSRCDIR ) / m i s c f i l e s . m k
- i n c l u d e $( MISCSRCDIR ) / m i s c l o c a l . m k
MSC_SOURCE = $( MISC_SOURCE) $( MISC_SOURCE_LOCAL)
MSC_SRC_FILES = $( MSC_SOURCE:%= $( MISCSRCDIR) /%)
ALL_RES_SOURCE = $( RES_SOURCE) $( TRNS_SOURCE) $( MSC_SOURCE)
2004-04-14 19:37:00 +00:00
RES_FILES = $( ALL_RES_SOURCE:%.txt= $( BUILDDIR) /%.res)
RES_FILES_SHORT = $( ALL_RES_SOURCE:%.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
COLLATION_FILES = $( COL_SOURCE:%.txt= $( COLBLDDIR) /%.res) $( COLLATION_INDEX_RES)
COLLATION_FILES_SHORT = $( COL_SOURCE:%.txt= $( COLLATION_TREE) /%.res)
2002-05-13 17:26:51 +00:00
2002-01-24 17:32:12 +00:00
## All generated files
2004-04-14 19:37:00 +00:00
ALL_FILES = $( DAT_FILES) $( CNV_FILES) $( BRK_FILES) $( RES_FILES) $( INDEX_RES_FILE) $( COLLATION_FILES)
# a list to use in the .lst files (package-relative)
ALL_FILES_LIST = $( DAT_FILES_SHORT) $( CNV_FILES_SHORT) $( BRK_FILES_SHORT) $( RES_FILES_SHORT) $( INDEX_RES_FILE_SHORT) $( COLLATION_FILES_SHORT) $( COLLATION_INDEX_RES_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
2004-04-14 19:37:00 +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 ;
2004-03-10 05:58:49 +00:00
build-local : build -dir build -data build -testdata
2002-01-24 17:32:12 +00:00
2004-04-14 19:37:00 +00:00
build-data : build -dir $( ALL_FILES ) $( OUTTMPDIR ) /icudata .lst $( OS 390LIST )
2002-01-24 17:32:12 +00:00
build-dir :
2004-04-14 19:37:00 +00:00
-$( MKINSTALLDIRS) $( OUTDIR) $( BUILDDIR) $( COLBLDDIR) $( TESTOUTDIR) $( TESTBUILDDIR) $( OUTTMPDIR) $( OUTTMPDIR) /$( COLLATION_TREE)
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)
2002-01-24 17:32:12 +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-04-14 19:37:00 +00:00
$(BUILDDIR)/unorm.icu : $( UNICODEDATADIR ) /UnicodeData .txt $( UNICODEDATADIR ) /DerivedNormalizationProps .txt $( UNICODEDATADIR ) /BidiMirroring .txt $( BINDIR ) /gennorm $( EXEEXT ) $( BUILDDIR ) /$( ICUDT ) uprops .icu
2004-03-26 01:22:25 +00:00
$( INVOKE) $( BINDIR) /gennorm -s $( UNICODEDATADIR) -d $( BUILDDIR) -u $( UNICODE_VERSION)
2002-01-24 17:32:12 +00:00
2002-07-17 23:43:23 +00:00
# ucadata.icu
2004-04-14 19:37:00 +00:00
$(BUILDDIR)/ucadata.icu $(BUILDDIR)/$(ICUDT)invuca.icu : $( UNICODEDATADIR ) /FractionalUCA .txt $( BINDIR ) /genuca $( EXEEXT ) $( BUILDDIR ) /$( ICUDT ) unorm .icu
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
2004-04-14 19:37:00 +00:00
$(BUILDDIR)/uidna.spp : $( MISCSRCDIR ) /NamePrepProfile .txt $( BINDIR ) /gensprep $( EXEEXT ) $( BUILDDIR ) /uprops .icu $( 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
thaidict.brk : $( SRCDATADIR ) /thaidict .brk
$( RMV) $@ && ln -s $( BUILDDIR) $@
2004-04-14 19:37:00 +00:00
$(BUILDDIR)/%.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
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" > $@ ; \
echo " $( INDEX_NAME) { " >> $@ ; \
echo " InstalledLocales {" >> $@ ; \
for file in $( INSTALLED_COL_FILES) ; do \
echo " $$ file {\"\"} " >> $@ ; \
done ; \
echo " }" >> $@ ; \
echo "}" >> $@ ;
### 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 )
$( INVOKE) $( BINDIR) /genrb $( GENRBOPTS) -i $( BUILDDIR) -s $( LOCSRCDIR) -d $( BUILDDIR) $( <F)
2002-01-24 17:32:12 +00:00
2004-04-14 19:37:00 +00:00
$(BUILDDIR)/%.res : $( TRNSSRCDIR ) /%.txt $( BINDIR ) /genrb $( EXEEXT ) $( DAT_FILES )
$( INVOKE) $( BINDIR) /genrb $( GENRBOPTS) -i $( BUILDDIR) -s $( TRNSSRCDIR) -d $( BUILDDIR) $( <F)
2002-01-24 17:32:12 +00:00
2004-04-14 19:37:00 +00:00
$(BUILDDIR)/%.res : $( MISCSRCDIR ) /%.txt $( BINDIR ) /genrb $( EXEEXT )
$( INVOKE) $( BINDIR) /genrb $( GENRBOPTS) -i $( BUILDDIR) -s $( MISCSRCDIR) -d $( BUILDDIR) $( <F)
2003-08-15 18:18:46 +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" > $@ ; \
2004-04-14 19:37:00 +00:00
echo " $( INDEX_NAME) { " >> $@ ; \
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 )
$( 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
2002-10-30 22:39:56 +00:00
ALLFILES390 = uprops.icu pnames.icu unorm.icu cnvalias.icu $( UCMFILES390:.ucm= .cnv)
2002-01-24 17:32:12 +00:00
2004-04-14 19:37:00 +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-04-14 19:37:00 +00:00
echo $( BUILDDIR) /$$ file >> $@ ; \
2002-01-24 17:32:12 +00:00
done ;
2002-05-23 23:23:46 +00:00
2002-07-17 15:13:08 +00:00
#########################################################################
############################## Test ## stuff ############################
TESTSRCDATADIR = $( top_srcdir) /test/testdata
TESTOUTDIR = $( top_builddir) /test/testdata/out
# Contains all 'intermediate' files (and temp files) except for 'unpackaged data' below
TESTBUILDDIR = $( TESTOUTDIR) /build
# unpackaged files - live in 'out' so that the path can find them as part of the pkg
UNPACKAGEDTESTDATA = $( TESTOUTDIR) /$( TESTDT) nam.typ
# pkg name for testdata
TESTDATA = testdata
# prefix for files that are testdata
TESTDT = $( TESTDATA) _
# File definitions
2003-07-24 23:23:19 +00:00
TEST_DAT_FILES = $( TESTBUILDDIR) /$( TESTDT) test.icu $( TESTBUILDDIR) /$( TESTDT) nfscsi.spp $( TESTBUILDDIR) /$( TESTDT) nfscss.spp $( TESTBUILDDIR) /$( TESTDT) nfscis.spp $( TESTBUILDDIR) /$( TESTDT) nfsmxs.spp $( TESTBUILDDIR) /$( TESTDT) nfsmxp.spp
2002-07-17 15:13:08 +00:00
2003-11-19 18:43:30 +00:00
TEST_UCM_SOURCE = test1.ucm test3.ucm test4.ucm test4x.ucm ibm9027.ucm
2002-07-17 15:13:08 +00:00
TEST_UCM_FILES = $( TEST_UCM_SOURCE:%= $( TESTSRCDATADIR) /data/%)
TEST_CNV_FILES = $( TEST_UCM_SOURCE:%.ucm= $( TESTBUILDDIR) /$( TESTDT) %.cnv)
2004-04-08 20:24:06 +00:00
TEST_RES = casing.txt mc.txt root.txt te.txt te_IN.txt testtypes.txt testaliases.txt testempty.txt DataDrivenCollationTest.txt idna_rules.txt conversion.txt icuio.txt testtable32.txt
2003-11-21 18:31:20 +00:00
TEST_RES_FILES = $( TEST_RES:%.txt= $( TESTBUILDDIR) /$( TESTDT) %.res) $( TESTBUILDDIR) /$( TESTDT) iscii.res $( TESTSRCDATADIR) /$( TESTDT) icu26_testtypes.res $( TESTSRCDATADIR) /$( TESTDT) icu26e_testtypes.res
2002-07-17 15:13:08 +00:00
ALL_TEST_FILES = $( TEST_DAT_FILES) $( TEST_BRK_FILES) $( TEST_CNV_FILES) $( TEST_RES_FILES) $( TESTOUTDIR) /$( TESTDT) nam.typ
# list
$(TESTBUILDDIR)/testdata.lst : $( SRCLISTDEPS )
@echo " generating $@ (list of data files) "
@-$( RMV) $@
@for file in $( TEST_RES_FILES) $( TEST_DAT_FILES) $( TEST_CNV_FILES) ; do \
echo $$ file >> $@ ; \
done ;
2002-09-18 21:23:46 +00:00
build-testdata : $( ALL_TEST_FILES ) $( TESTBUILDDIR ) /testdata .lst $( TESTBUILDDIR ) /$( TESTDT ) iscii .res
2002-07-17 15:13:08 +00:00
2002-07-17 23:43:23 +00:00
# test.icu
$(TESTBUILDDIR)/$(TESTDT)test.icu : $( TOOLDIR ) /gentest /gentest $( EXEEXT )
2003-09-17 02:41:45 +00:00
$( INVOKE) $( TOOLDIR) /gentest/gentest -d $( TESTBUILDDIR)
2002-07-17 15:13:08 +00:00
2003-09-25 00:18:15 +00:00
$(TESTBUILDDIR)/testtable32.txt : $( TOOLDIR ) /gentest /gentest $( EXEEXT )
$( INVOKE) $( TOOLDIR) /gentest/gentest -r -d $( TESTBUILDDIR)
2004-03-26 01:22:25 +00:00
$(TESTBUILDDIR)/$(TESTDT)testtable32.res : $( TESTBUILDDIR ) /testtable 32.txt $( BINDIR ) /genrb $( EXEEXT )
$( INVOKE) $( BINDIR) /genrb $( GENRBOPTS) -p $( TESTDATA) -q -s $( TESTBUILDDIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) $( <F)
2003-09-25 00:18:15 +00:00
2003-09-17 02:41:45 +00:00
# Targets for nfscsi.spp
2004-03-26 01:22:25 +00:00
$(TESTBUILDDIR)/$(TESTDT)nfscsi.spp : $( BINDIR ) /gensprep $( EXEEXT ) $( TESTSRCDATADIR ) /nfs 4_cs_prep_ci .txt
2003-07-24 23:23:19 +00:00
@echo Building nfscsi.icu
2004-03-26 01:22:25 +00:00
$( INVOKE) $( BINDIR) /gensprep -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) -b nfscsi -p $( TESTDATA) -u 3.2.0 nfs4_cs_prep_ci.txt
2003-07-24 23:23:19 +00:00
2003-09-17 02:41:45 +00:00
# Targets for nfscss.spp
2004-03-26 01:22:25 +00:00
$(TESTBUILDDIR)/$(TESTDT)nfscss.spp : $( BINDIR ) /gensprep $( EXEEXT ) $( TESTSRCDATADIR ) /nfs 4_cs_prep_cs .txt
2003-07-24 23:23:19 +00:00
@echo Building nfscss.icu
2004-03-26 01:22:25 +00:00
$( INVOKE) $( BINDIR) /gensprep -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) -b nfscss -p $( TESTDATA) -u 3.2.0 nfs4_cs_prep_cs.txt
2003-07-24 23:23:19 +00:00
# Targets for nfscis.spp
2004-03-26 01:22:25 +00:00
$(TESTBUILDDIR)/$(TESTDT)nfscis.spp : $( BINDIR ) /gensprep $( EXEEXT ) $( TESTSRCDATADIR ) /nfs 4_cis_prep .txt
2003-07-24 23:23:19 +00:00
@echo Building nfscis.spp
2004-03-26 01:22:25 +00:00
$( INVOKE) $( BINDIR) /gensprep -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) -b nfscis -p $( TESTDATA) -k -n $( UNICODEDATADIR) -u 3.2.0 nfs4_cis_prep.txt
2003-07-24 23:23:19 +00:00
# Targets for nfsmxs.spp
2004-03-26 01:22:25 +00:00
$(TESTBUILDDIR)/$(TESTDT)nfsmxs.spp : $( BINDIR ) /gensprep $( EXEEXT ) $( TESTSRCDATADIR ) /nfs 4_mixed_prep_s .txt
2003-07-24 23:23:19 +00:00
@echo Building nfsmxs.spp
2004-03-26 01:22:25 +00:00
$( INVOKE) $( BINDIR) /gensprep -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) -b nfsmxs -p $( TESTDATA) -k -n $( UNICODEDATADIR) -u 3.2.0 nfs4_mixed_prep_s.txt
2003-07-24 23:23:19 +00:00
# Targets for nfsmxp.spp
2004-03-26 01:22:25 +00:00
$(TESTBUILDDIR)/$(TESTDT)nfsmxp.spp : $( BINDIR ) /gensprep $( EXEEXT ) $( TESTSRCDATADIR ) /nfs 4_mixed_prep_p .txt
2003-07-24 23:23:19 +00:00
@echo Building nfsmxp.spp
2004-03-26 01:22:25 +00:00
$( INVOKE) $( BINDIR) /gensprep -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) -b nfsmxp -p $( TESTDATA) -k -n $( UNICODEDATADIR) -u 3.2.0 nfs4_mixed_prep_p.txt
2003-07-24 23:23:19 +00:00
2004-03-26 01:22:25 +00:00
$(TESTBUILDDIR)/$(TESTDT)%.cnv : $( TESTSRCDATADIR ) /%.ucm $( BINDIR ) /makeconv $( EXEEXT )
$( INVOKE) $( BINDIR) /makeconv -p $( TESTDATA) -c -d $( TESTBUILDDIR) $( TESTSRCDATADIR) /$( <F)
2002-07-17 15:13:08 +00:00
2004-03-26 01:22:25 +00:00
$(TESTBUILDDIR)/$(TESTDT)%.res : $( TESTSRCDATADIR ) /%.txt $( BINDIR ) /genrb $( EXEEXT ) $( DAT_FILES )
$( INVOKE) $( BINDIR) /genrb $( GENRBOPTS) -p $( TESTDATA) -q -s $( TESTSRCDATADIR) -i $( BUILDDIR) -d $( TESTBUILDDIR) $( <F)
2002-07-17 15:13:08 +00:00
2004-03-26 01:22:25 +00:00
$(TESTBUILDDIR)/$(TESTDT)iscii.res : $( TESTSRCDATADIR ) /iscii .bin $( BINDIR ) /genrb $( EXEEXT )
2003-06-02 23:26:20 +00:00
@echo Testing genrb -e option
2004-03-26 01:22:25 +00:00
@ICU_DATA= $( BUILDDIR) $( INVOKE) $( BINDIR) /genrb $( GENRBOPTS) -s $( TESTSRCDATADIR) -p $( TESTDATA) -eISCII,version= 0 -d $( TESTBUILDDIR) $( <F) >/dev/null || ( echo "WARNING: could not open ISCII - it may have been disabled." | tee $@ )
2003-06-02 23:26:20 +00:00
@echo Finished testing genrb -e option
2002-07-17 15:13:08 +00:00
################################################################### TYP
# TYP FILES
$(TESTOUTDIR)/$(TESTDT)nam.typ : $( TESTBUILDDIR ) /$( TESTDT ) te_IN .res
cp $< $@
2003-07-28 15:47:39 +00:00
testdata : packagedata $( ALL_TEST_FILES ) $( UNPACKAGEDTESTDATA )
2002-07-17 15:13:08 +00:00
packagetest : testdata icupkg .inc $( TESTBUILDDIR ) /testdata .lst
2003-09-23 00:29:28 +00:00
$( PKGDATA_INVOKE) $( PKGDATA) -T $( TESTBUILDDIR) -d $( TESTOUTDIR) -s $( TESTBUILDDIR) -p $( TESTDATA) -m common $( TESTBUILDDIR) /testdata.lst
2002-07-17 15:13:08 +00:00
2004-04-27 19:04:53 +00:00
i f e q ( $( POST_DATA_BUILD ) , o s 4 0 0 - d a t a - r e b i n d )
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
e n d i f
2002-07-17 15:13:08 +00:00