1 diff -ruN icu/source/common/Makefile.in icu.aros/source/common/Makefile.in
2 --- icu/source/common/Makefile.in 2009-07-01 19:50:38.000000000 +0100
3 +++ icu.aros/source/common/Makefile.in 2013-04-09 21:16:17.787473921 +0100
5 TARGET_STUBNAME=$(COMMON_STUBNAME)
7 ifneq ($(ENABLE_STATIC),)
8 -TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
9 +COMMONTARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
12 ifneq ($(ENABLE_SHARED),)
17 -ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
18 +ALL_TARGETS = $(COMMONTARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
20 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
21 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
23 install-library: all-local
24 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
25 ifneq ($(ENABLE_STATIC),)
26 - $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
27 + $(INSTALL-L) $(COMMONTARGET) $(DESTDIR)$(libdir)
29 ifneq ($(ENABLE_SHARED),)
30 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
32 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
34 ifneq ($(ENABLE_STATIC),)
35 -$(TARGET): $(STATIC_OBJECTS)
36 +$(COMMONTARGET): $(STATIC_OBJECTS)
37 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
40 diff -ruN icu/source/common/unicode/umachine.h icu.aros/source/common/unicode/umachine.h
41 --- icu/source/common/unicode/umachine.h 2009-07-01 19:50:34.000000000 +0100
42 +++ icu.aros/source/common/unicode/umachine.h 2013-04-09 21:17:06.520139711 +0100
45 # elif defined(U_WINDOWS)
46 # define U_WCHAR_IS_UTF16
47 +# elif defined(__AROS__)
48 +# if (U_SIZEOF_WCHAR_T==4)
49 +# define U_WCHAR_IS_UTF32
54 diff -ruN icu/source/config/mh-aros icu.aros/source/config/mh-aros
55 --- icu/source/config/mh-aros 1970-01-01 01:00:00.000000000 +0100
56 +++ icu.aros/source/config/mh-aros 2013-04-09 21:11:20.927496769 +0100
58 +## AROS-specific setup
60 +## Commands to generate dependency files
61 +GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
62 +GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
64 +## Flags for position independent code
69 +## Additional flags when building libraries and with threads
70 +THREADSCPPFLAGS = -D_REENTRANT
73 +## Compiler switch to embed a runtime search path
75 +LD_RPATH_PRE = -Wl,-rpath,
77 +## These are the library specific LDFLAGS
78 +LDFLAGSICUDT=-nodefaultlibs -nostdlib
80 +## Compiler switch to embed a library name
81 +LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
83 +## Shared object suffix
85 +## Non-shared intermediate object suffix
89 +%.$(STATIC_O): $(srcdir)/%.c
90 + $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
92 + $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
94 +%.$(STATIC_O): $(srcdir)/%.cpp
95 + $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
97 + $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
102 + @echo "generating dependency information for $<"
103 + @$(SHELL) -ec '$(GEN_DEPS.c) $< \
104 + | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
105 + [ -s $@ ] || rm -f $@'
107 +%.d: $(srcdir)/%.cpp
108 + @echo "generating dependency information for $<"
109 + @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
110 + | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
111 + [ -s $@ ] || rm -f $@'
113 +## Versioned libraries rules
115 +%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
116 + $(RM) $@ && ln -s ${<F} $@
117 +%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
118 + $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
120 +## Bind internal references
122 +# LDflags that pkgdata will use
123 +BIR_LDFLAGS= -Wl,-Bsymbolic
125 +# Dependencies [i.e. map files] for the final library
128 +## Remove shared library 's'
129 +STATIC_PREFIX_WHEN_USED =
132 +## End AROS-specific setup
134 diff -ruN icu/source/configure icu.aros/source/configure
135 --- icu/source/configure 2009-07-01 19:51:26.000000000 +0100
136 +++ icu.aros/source/configure 2013-04-09 21:17:15.022255807 +0100
137 @@ -4110,19 +4110,16 @@
140 elif test "$DEFAULT_64BIT" = "unknown"; then
141 - { { $as_echo "$as_me:$LINENO: error: Unable to determine binary format." >&5
142 -$as_echo "$as_me: error: Unable to determine binary format." >&2;}
143 - { (exit 1); exit 1; }; }
146 - #case "$BITS_REQ" in
147 - # 64|64else32) BITS_OK=no
148 - # BITS_CHECK_32=yes
149 - # BITS_CHECK_64=yes
156 + case "$BITS_REQ" in
157 + 64|64else32) BITS_OK=no
159 + BITS_CHECK_64=yes ;;
166 { $as_echo "$as_me:$LINENO: result: $DEFAULT_64BIT" >&5
167 @@ -4780,6 +4777,7 @@
168 *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
169 *-*-nto*) icu_cv_host_frag=mh-qnx ;;
170 *-ncr-*) icu_cv_host_frag=mh-mpras ;;
171 +*-*-aros) icu_cv_host_frag=mh-aros ;;
172 *) icu_cv_host_frag=mh-unknown ;;
175 @@ -10237,9 +10235,11 @@
177 datapackaging_howfound="$datapackaging_msg_set"
180 -# DATA_PACKAGING_MODE=static
183 + DATA_PACKAGING_MODE=static
184 + datapackaging_msg="ICU data will be stored in a static library."
185 + datapackaging_howfound="$datapackaging_msg_set"
190 diff -ruN icu/source/data/Makefile.in icu.aros/source/data/Makefile.in
191 --- icu/source/data/Makefile.in 2009-07-01 19:51:20.000000000 +0100
192 +++ icu.aros/source/data/Makefile.in 2013-04-09 21:17:15.023255820 +0100
194 ifeq ($(PKGDATA_MODE),dll)
195 ICUPKGDATA_OUTDIR = $(LIBDIR)
197 +ifeq ($(PKGDATA_MODE),static)
198 +ICUPKGDATA_OUTDIR = $(LIBDIR)
200 ICUPKGDATA_OUTDIR = $(OUTDIR)
204 -CURDIR:=$(CURR_FULL_DIR)
205 -PKGDATA = $(TOOLBINDIR)/pkgdata $(PKGDATA_OPTS) -q -c -s $(CURDIR)/out/build/$(ICUDATA_PLATFORM_NAME) -d $(ICUPKGDATA_OUTDIR)
206 +PKGDATA = $(TOOLBINDIR)/pkgdata $(PKGDATA_OPTS) -q -c -s $(CURR_FULL_DIR)/out/build/$(ICUDATA_PLATFORM_NAME) -d $(ICUPKGDATA_OUTDIR)
208 ifeq ($(OS390_STUBDATA),1)
212 OUTTMPDIR=$(OUTDIR)/tmp
213 MAINBUILDDIR=$(OUTDIR)/build
214 -BUILDDIR=$(MAINBUILDDIR)/$(ICUDATA_PLATFORM_NAME)
215 +DATABUILDDIR=$(MAINBUILDDIR)/$(ICUDATA_PLATFORM_NAME)
216 UNICODEDATADIR=$(SRCDATADIR)/unidata
217 LOCSRCDIR=$(SRCDATADIR)/locales
218 COLSRCDIR=$(SRCDATADIR)/coll
219 -COLBLDDIR=$(BUILDDIR)/coll
220 +COLBLDDIR=$(DATABUILDDIR)/coll
221 RBNFSRCDIR=$(SRCDATADIR)/rbnf
222 -RBNFBLDDIR=$(BUILDDIR)/rbnf
223 +RBNFBLDDIR=$(DATABUILDDIR)/rbnf
224 TRANSLITSRCDIR=$(SRCDATADIR)/translit
225 -TRANSLITBLDDIR=$(BUILDDIR)/translit
226 +TRANSLITBLDDIR=$(DATABUILDDIR)/translit
227 MISCSRCDIR=$(SRCDATADIR)/misc
228 BRKSRCDIR=$(SRCDATADIR)/brkitr
229 -BRKBLDDIR=$(BUILDDIR)/brkitr
230 +BRKBLDDIR=$(DATABUILDDIR)/brkitr
231 MISCSRCDIR=$(SRCDATADIR)/misc
232 UCMSRCDIR=$(SRCDATADIR)/mappings
233 SPREPSRCDIR=$(SRCDATADIR)/sprep
234 COMINCDIR=$(top_srcdir)/common/unicode
235 SRCLISTDEPS=Makefile $(srcdir)/Makefile.in
236 -BUILD_DIRS=$(OUTDIR) $(MAINBUILDDIR) $(BUILDDIR) $(BRKBLDDIR) $(COLBLDDIR) $(RBNFBLDDIR) $(TRANSLITBLDDIR) $(OUTTMPDIR) $(OUTTMPDIR_390STUB) $(OUTTMPDIR)/$(COLLATION_TREE) $(OUTTMPDIR)/$(RBNF_TREE) $(OUTTMPDIR)/$(TRANSLIT_TREE) $(OUTTMPDIR)/$(BREAK_TREE)
237 +BUILD_DIRS=$(OUTDIR) $(MAINBUILDDIR) $(DATABUILDDIR) $(BRKBLDDIR) $(COLBLDDIR) $(RBNFBLDDIR) $(TRANSLITBLDDIR) $(OUTTMPDIR) $(OUTTMPDIR_390STUB) $(OUTTMPDIR)/$(COLLATION_TREE) $(OUTTMPDIR)/$(RBNF_TREE) $(OUTTMPDIR)/$(TRANSLIT_TREE) $(OUTTMPDIR)/$(BREAK_TREE)
239 # relative lib links from pkgdata are the same as for tmp
240 TOOLDIR=$(top_builddir)/tools
241 @@ -172,11 +175,11 @@
243 ifneq ($(ENABLE_STATIC),)
244 ifeq ($(PKGDATA_MODE),dll)
245 - $(PKGDATA_INVOKE) $(PKGDATA) -m static -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_LIBDIR)
246 + $(PKGDATA_INVOKE) $(PKGDATA) -m static -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(DATABUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_LIBDIR)
249 ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES)
250 - $(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)
251 + $(PKGDATA_INVOKE) $(PKGDATA) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(DATABUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_DIR)
253 $(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(DESTDIR)$(ICUPKGDATA_DIR)
257 install390: package390
258 $(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(libdir)
259 - $(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)
260 + $(INVOKE) $(PKGDATA) -s $(DATABUILDDIR)$(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)
261 ifeq ($(PKGDATA_MODE),dll)
262 $(INSTALL-L) $(ICUPKGDATA_OUTDIR)/$(FINAL_IMPORT_LIB) $(DESTDIR)$(ICUPKGDATA_DIR)/$(FINAL_IMPORT_LIB)
265 #### $(LIB_ICUDATA_NAME)$(STUB_SUFFIX) is the subset data for batch mode
266 package390: $(OUTTMPDIR)/icudata390.lst $(PKGDATA_LIST) ./icupkg.inc packagedata
267 ln -s $(ICUDATA_NAME) $(OUTDIR)/build/$(ICUDATA_NAME)$(STUB_SUFFIX)
268 - $(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)
269 + $(INVOKE) $(PKGDATA) -s $(DATABUILDDIR)$(STUB_SUFFIX) -T $(OUTTMPDIR_390STUB) -p $(ICUDATA_NAME)$(STUB_SUFFIX) $(PKGDATA_LIBNAME)$(STUB_SUFFIX) -e $(ICUDATA_ENTRY_POINT) $(OS390LIST) -m dll $(PKGDATA_VERSIONING)
270 cp $(ICUPKGDATA_OUTDIR)/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO) $(top_builddir)/stubdata/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO)
274 # from data build. See Jitterbug 4497. (makedata.mak revision 1.117)
276 DAT_FILES_SHORT=pnames.icu unames.icu cnvalias.icu coll/ucadata.icu coll/invuca.icu
277 -DAT_FILES=$(DAT_FILES_SHORT:%=$(BUILDDIR)/%)
278 +DAT_FILES=$(DAT_FILES_SHORT:%=$(DATABUILDDIR)/%)
283 ## Confusables (Spoofing) files
284 ALL_CFU_SOURCE=$(UNICODEDATADIR)/confusables.txt $(UNICODEDATADIR)/confusablesWholeScript.txt
285 CFU_FILES_SHORT=confusables.cfu
286 -CFU_FILES=$(BUILDDIR)/$(CFU_FILES_SHORT)
287 +CFU_FILES=$(DATABUILDDIR)/$(CFU_FILES_SHORT)
290 -include $(UCMSRCDIR)/ucmcore.mk
292 -include $(UCMSRCDIR)/ucmlocal.mk
293 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)
294 UCM_FILES = $(ALL_UCM_SOURCE:%=$(SRCDATADIR)/%)
295 -CNV_FILES = $(ALL_UCM_SOURCE:%.ucm=$(BUILDDIR)/%.cnv)
296 +CNV_FILES = $(ALL_UCM_SOURCE:%.ucm=$(DATABUILDDIR)/%.cnv)
297 CNV_FILES_SHORT = $(ALL_UCM_SOURCE:%.ucm=%.cnv)
300 @@ -290,13 +293,13 @@
303 ALL_RES_SRC= $(RES_SRC) $(TRNS_SOURCE) $(MSC_SOURCE)
304 -RES_FILES = $(ALL_RES_SRC:%.txt=$(BUILDDIR)/%.res)
305 +RES_FILES = $(ALL_RES_SRC:%.txt=$(DATABUILDDIR)/%.res)
306 RES_FILES_SHORT = $(ALL_RES_SRC:%.txt=%.res)
307 PKGDATA_LIST = $(OUTTMPDIR)/icudata.lst
310 INDEX_FILE=$(OUTTMPDIR)/$(INDEX_NAME).txt
311 -INDEX_RES_FILE=$(INDEX_FILE:$(OUTTMPDIR)/%.txt=$(BUILDDIR)/%.res)
312 +INDEX_RES_FILE=$(INDEX_FILE:$(OUTTMPDIR)/%.txt=$(DATABUILDDIR)/%.res)
313 INDEX_RES_FILE_SHORT=$(INDEX_FILE:$(OUTTMPDIR)/%.txt=%.res)
317 -include $(SPREPSRCDIR)/sprepfiles.mk
318 -include $(SPREPSRCDIR)/spreplocal.mk
319 ALL_SPREP_SOURCE=$(SPREP_SOURCE) $(SPREP_SOURCE_LOCAL)
320 -SPREP_FILES = $(ALL_SPREP_SOURCE:%.txt=$(BUILDDIR)/%.spp)
321 +SPREP_FILES = $(ALL_SPREP_SOURCE:%.txt=$(DATABUILDDIR)/%.spp)
322 SPREP_FILES_SHORT = $(ALL_SPREP_SOURCE:%.txt=%.spp)
324 ## All generated files
326 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) $(SPREP_FILES_SHORT) $(CFU_FILES_SHORT)
328 UNI_CORE_DATA=uprops.icu ucase.icu ubidi.icu unorm.icu
329 -UNI_CORE_TARGET_DATA=$(UNI_CORE_DATA:%=$(BUILDDIR)/%)
330 +UNI_CORE_TARGET_DATA=$(UNI_CORE_DATA:%=$(DATABUILDDIR)/%)
332 ifneq ($(INCLUDE_UNI_CORE_DATA),)
333 ALL_FILES_LIST+=$(UNI_CORE_DATA)
335 ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES)
336 @echo "Unpacking $(ICUDATA_SOURCE_ARCHIVE) and generating $@ (list of data files)"
338 - $(INVOKE) $(TOOLBINDIR)/icupkg -d $(BUILDDIR) --list -x \* $(ICUDATA_SOURCE_ARCHIVE) -o $@
339 + $(INVOKE) $(TOOLBINDIR)/icupkg -d $(DATABUILDDIR) --list -x \* $(ICUDATA_SOURCE_ARCHIVE) -o $@
343 @@ -397,63 +400,63 @@
347 -$(BUILDDIR)/uprops.icu: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLBINDIR)/genprops$(TOOLEXEEXT) $(BUILDDIR)/$(ICUDT)pnames.icu
348 - $(INVOKE) $(TOOLBINDIR)/genprops -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(BUILDDIR) -u $(UNICODE_VERSION)
349 - $(INVOKE) $(TOOLBINDIR)/genprops --csource -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
350 +$(DATABUILDDIR)/uprops.icu: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLBINDIR)/genprops$(TOOLEXEEXT) $(DATABUILDDIR)/$(ICUDT)pnames.icu
351 + $(INVOKE) $(TOOLBINDIR)/genprops -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(DATABUILDDIR) -u $(UNICODE_VERSION)
352 + $(INVOKE) $(TOOLBINDIR)/genprops --csource -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
355 -$(BUILDDIR)/ubidi.icu: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLBINDIR)/genbidi$(TOOLEXEEXT)
356 - $(INVOKE) $(TOOLBINDIR)/genbidi -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(BUILDDIR) -u $(UNICODE_VERSION)
357 - $(INVOKE) $(TOOLBINDIR)/genbidi --csource -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
358 +$(DATABUILDDIR)/ubidi.icu: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLBINDIR)/genbidi$(TOOLEXEEXT)
359 + $(INVOKE) $(TOOLBINDIR)/genbidi -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(DATABUILDDIR) -u $(UNICODE_VERSION)
360 + $(INVOKE) $(TOOLBINDIR)/genbidi --csource -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
363 -$(BUILDDIR)/ucase.icu: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLBINDIR)/gencase$(TOOLEXEEXT)
364 - $(INVOKE) $(TOOLBINDIR)/gencase -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(BUILDDIR) -u $(UNICODE_VERSION)
365 - $(INVOKE) $(TOOLBINDIR)/gencase --csource -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
366 +$(DATABUILDDIR)/ucase.icu: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLBINDIR)/gencase$(TOOLEXEEXT)
367 + $(INVOKE) $(TOOLBINDIR)/gencase -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(DATABUILDDIR) -u $(UNICODE_VERSION)
368 + $(INVOKE) $(TOOLBINDIR)/gencase --csource -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
371 -$(BUILDDIR)/pnames.icu: $(UNICODEDATADIR)/PropertyAliases.txt $(UNICODEDATADIR)/PropertyValueAliases.txt $(UNICODEDATADIR)/Blocks.txt $(COMINCDIR)/uscript.h $(COMINCDIR)/uchar.h $(TOOLBINDIR)/genpname$(TOOLEXEEXT)
372 - $(INVOKE) $(TOOLBINDIR)/genpname -d $(BUILDDIR)
373 +$(DATABUILDDIR)/pnames.icu: $(UNICODEDATADIR)/PropertyAliases.txt $(UNICODEDATADIR)/PropertyValueAliases.txt $(UNICODEDATADIR)/Blocks.txt $(COMINCDIR)/uscript.h $(COMINCDIR)/uchar.h $(TOOLBINDIR)/genpname$(TOOLEXEEXT)
374 + $(INVOKE) $(TOOLBINDIR)/genpname -d $(DATABUILDDIR)
377 -$(BUILDDIR)/unorm.icu: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/DerivedNormalizationProps.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLBINDIR)/gennorm$(TOOLEXEEXT) $(BUILDDIR)/$(ICUDT)pnames.icu $(BUILDDIR)/$(ICUDT)uprops.icu $(BUILDDIR)/$(ICUDT)ucase.icu
378 - $(INVOKE) $(TOOLBINDIR)/gennorm -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(BUILDDIR) -u $(UNICODE_VERSION)
379 - $(INVOKE) $(TOOLBINDIR)/gennorm --csource -s $(UNICODEDATADIR) -i $(BUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
380 +$(DATABUILDDIR)/unorm.icu: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/DerivedNormalizationProps.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLBINDIR)/gennorm$(TOOLEXEEXT) $(DATABUILDDIR)/$(ICUDT)pnames.icu $(DATABUILDDIR)/$(ICUDT)uprops.icu $(DATABUILDDIR)/$(ICUDT)ucase.icu
381 + $(INVOKE) $(TOOLBINDIR)/gennorm -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(DATABUILDDIR) -u $(UNICODE_VERSION)
382 + $(INVOKE) $(TOOLBINDIR)/gennorm --csource -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
385 -# used to depend on $(BUILDDIR)/$(ICUDT)unorm.icu $(BUILDDIR)/$(ICUDT)ucase.icu
386 +# used to depend on $(DATABUILDDIR)/$(ICUDT)unorm.icu $(DATABUILDDIR)/$(ICUDT)ucase.icu
388 $(COLBLDDIR)/ucadata.icu $(COLBLDDIR)/invuca.icu: $(UNICODEDATADIR)/FractionalUCA.txt $(TOOLBINDIR)/genuca$(TOOLEXEEXT)
389 - $(INVOKE) $(TOOLBINDIR)/genuca -s $(UNICODEDATADIR) -d $(COLBLDDIR) -i $(BUILDDIR)
390 + $(INVOKE) $(TOOLBINDIR)/genuca -s $(UNICODEDATADIR) -d $(COLBLDDIR) -i $(DATABUILDDIR)
393 -$(BUILDDIR)/unames.icu: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLBINDIR)/gennames$(TOOLEXEEXT)
394 - $(INVOKE) $(TOOLBINDIR)/gennames -1 -d $(BUILDDIR) $(UNICODEDATADIR)/UnicodeData.txt -u $(UNICODE_VERSION)
395 +$(DATABUILDDIR)/unames.icu: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLBINDIR)/gennames$(TOOLEXEEXT)
396 + $(INVOKE) $(TOOLBINDIR)/gennames -1 -d $(DATABUILDDIR) $(UNICODEDATADIR)/UnicodeData.txt -u $(UNICODE_VERSION)
399 -$(BUILDDIR)/cnvalias.icu: $(UCMSRCDIR)/convrtrs.txt $(TOOLBINDIR)/gencnval$(TOOLEXEEXT)
400 - $(INVOKE) $(TOOLBINDIR)/gencnval -d $(BUILDDIR) $(UCMSRCDIR)/convrtrs.txt
401 +$(DATABUILDDIR)/cnvalias.icu: $(UCMSRCDIR)/convrtrs.txt $(TOOLBINDIR)/gencnval$(TOOLEXEEXT)
402 + $(INVOKE) $(TOOLBINDIR)/gencnval -d $(DATABUILDDIR) $(UCMSRCDIR)/convrtrs.txt
404 #################################################### SPP
407 -$(BUILDDIR)/%.spp: $(SPREPSRCDIR)/%.txt $(TOOLBINDIR)/gensprep$(TOOLEXEEXT) $(BUILDDIR)/unames.icu $(BUILDDIR)/pnames.icu
408 - $(INVOKE) $(TOOLBINDIR)/gensprep -d $(BUILDDIR) -i $(BUILDDIR) -s $(SPREPSRCDIR) -b $(@F:%.spp=%) -m $(UNICODEDATADIR) -u 3.2.0 $(<F)
409 +$(DATABUILDDIR)/%.spp: $(SPREPSRCDIR)/%.txt $(TOOLBINDIR)/gensprep$(TOOLEXEEXT) $(DATABUILDDIR)/unames.icu $(DATABUILDDIR)/pnames.icu
410 + $(INVOKE) $(TOOLBINDIR)/gensprep -d $(DATABUILDDIR) -i $(DATABUILDDIR) -s $(SPREPSRCDIR) -b $(@F:%.spp=%) -m $(UNICODEDATADIR) -u 3.2.0 $(<F)
412 #################################################### BRK
415 #thaidict.brk: $(SRCDATADIR)/thaidict.brk
416 -# $(RMV) $@ && ln -s $(BUILDDIR) $@
417 +# $(RMV) $@ && ln -s $(DATABUILDDIR) $@
419 $(BRKBLDDIR)/%.brk: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genbrk$(TOOLEXEEXT) $(DAT_FILES)
420 - $(INVOKE) $(TOOLBINDIR)/genbrk -c -i $(BUILDDIR) -r $< -o $@
421 + $(INVOKE) $(TOOLBINDIR)/genbrk -c -i $(DATABUILDDIR) -r $< -o $@
423 #################################################### CTD
426 $(BRKBLDDIR)/%.ctd: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genctd$(TOOLEXEEXT) $(DAT_FILES)
427 - $(INVOKE) $(TOOLBINDIR)/genctd -c -i $(BUILDDIR) -o $@ $<
428 + $(INVOKE) $(TOOLBINDIR)/genctd -c -i $(DATABUILDDIR) -o $@ $<
430 #################################################### CFU
432 @@ -466,23 +469,23 @@
433 $(INVOKE) echo ALL_CFU_SOURCE: $(ALL_CFU_SOURCE)
434 $(INVOKE) echo CFU_FILES: $(CFU_FILES)
435 $(INVOKE) echo CFU_FILES_SHORT: $(CFU_FILES_SHORT)
436 - $(INVOKE) $(TOOLBINDIR)/gencfu -c -i $(BUILDDIR) -r $(word 1,$(ALL_CFU_SOURCE)) -w $(word 2,$(ALL_CFU_SOURCE)) -o $@
437 + $(INVOKE) $(TOOLBINDIR)/gencfu -c -i $(DATABUILDDIR) -r $(word 1,$(ALL_CFU_SOURCE)) -w $(word 2,$(ALL_CFU_SOURCE)) -o $@
440 #################################################### CNV
442 -$(BUILDDIR)/%.cnv: $(UCMSRCDIR)/%.ucm $(TOOLBINDIR)/makeconv$(TOOLEXEEXT)
443 - $(INVOKE) $(TOOLBINDIR)/makeconv -c -d $(BUILDDIR) $(UCMSRCDIR)/$(<F)
444 +$(DATABUILDDIR)/%.cnv: $(UCMSRCDIR)/%.ucm $(TOOLBINDIR)/makeconv$(TOOLEXEEXT)
445 + $(INVOKE) $(TOOLBINDIR)/makeconv -c -d $(DATABUILDDIR) $(UCMSRCDIR)/$(<F)
447 #################################################### RES
451 $(COLBLDDIR)/%.res: $(COLSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
452 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(COLSRCDIR) -d $(COLBLDDIR) $(<F)
453 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(COLSRCDIR) -d $(COLBLDDIR) $(<F)
455 $(COLBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(COLLATION_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
456 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(COLLATION_TREE) -d $(COLBLDDIR) $(INDEX_NAME).txt
457 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(OUTTMPDIR)/$(COLLATION_TREE) -d $(COLBLDDIR) $(INDEX_NAME).txt
459 $(COLLATION_INDEX_FILE): $(SRCLISTDEPS)
460 @echo "generating $@ (list of installed collation locales)"; \
461 @@ -498,10 +501,10 @@
464 $(BRKBLDDIR)/%.res: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(BRK_FILES) $(DAT_FILES)
465 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(BRKSRCDIR) -d $(BRKBLDDIR) $(<F)
466 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(BRKSRCDIR) -d $(BRKBLDDIR) $(<F)
468 $(BRKBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(BREAK_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
469 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(BREAK_TREE) -d $(BRKBLDDIR) $(INDEX_NAME).txt
470 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(OUTTMPDIR)/$(BREAK_TREE) -d $(BRKBLDDIR) $(INDEX_NAME).txt
472 $(BRK_RES_INDEX_FILE): $(SRCLISTDEPS)
473 @echo "generating $@ (list of installed break locales)"; \
474 @@ -517,10 +520,10 @@
477 $(RBNFBLDDIR)/%.res: $(RBNFSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
478 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(RBNFSRCDIR) -d $(RBNFBLDDIR) $(<F)
479 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(RBNFSRCDIR) -d $(RBNFBLDDIR) $(<F)
481 $(RBNFBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(RBNF_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
482 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(RBNF_TREE) -d $(RBNFBLDDIR) $(INDEX_NAME).txt
483 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(OUTTMPDIR)/$(RBNF_TREE) -d $(RBNFBLDDIR) $(INDEX_NAME).txt
485 $(RBNF_INDEX_FILE): $(SRCLISTDEPS)
486 @echo "generating $@ (list of installed RBNF locales)"; \
487 @@ -536,13 +539,13 @@
490 $(TRANSLITBLDDIR)/%.res: $(TRANSLITSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
491 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(TRANSLITSRCDIR) -d $(TRANSLITBLDDIR) $(<F)
492 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(TRANSLITSRCDIR) -d $(TRANSLITBLDDIR) $(<F)
494 ### normal (locale) res
495 all-RES: $(RES_FILES)
497 -$(BUILDDIR)/%.res: $(LOCSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
498 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(LOCSRCDIR) -d $(BUILDDIR) $(<F)
499 +$(DATABUILDDIR)/%.res: $(LOCSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
500 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(LOCSRCDIR) -d $(DATABUILDDIR) $(<F)
502 # if the tzcode directory contains a new tzdata*.tar.gz file, use it for zoneinfo.txt
503 TZDATA = $(firstword $(wildcard $(top_builddir)/tools/tzcode/tzdata*.tar.gz) $(wildcard $(top_srcdir)/tools/tzcode/tzdata*.tar.gz))
506 # Override the normal genrb for zoneinfo.txt to always pull from
507 # icu/source/tools/tzcode/zoneinfo.txt
508 -$(BUILDDIR)/zoneinfo.res: $(ZONEINFO) $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
509 +$(DATABUILDDIR)/zoneinfo.res: $(ZONEINFO) $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
510 @echo Note: $(MISCSRCDIR)/zoneinfo.txt is IGNORED because $(TZDATA) is present.
511 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -q -i $(BUILDDIR) -d $(BUILDDIR) $(ZONEINFO)
512 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -q -i $(DATABUILDDIR) -d $(DATABUILDDIR) $(ZONEINFO)
514 # Create the tzcode tool and zoneinfo.txt as needed.
515 $(ZONEINFO): $(TZDATA)
519 # zoneinfo has some issues. Ignore some warnings with -q
520 -$(BUILDDIR)/%.res: $(MISCSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
521 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -q -i $(BUILDDIR) -s $(MISCSRCDIR) -d $(BUILDDIR) $(<F)
522 +$(DATABUILDDIR)/%.res: $(MISCSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
523 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -q -i $(DATABUILDDIR) -s $(MISCSRCDIR) -d $(DATABUILDDIR) $(<F)
527 @@ -586,10 +589,10 @@
531 - -$(RMV) $(BUILDDIR)/$(INDEX_NAME).txt $(PKGDATA_LIST)
532 + -$(RMV) $(DATABUILDDIR)/$(INDEX_NAME).txt $(PKGDATA_LIST)
534 $(INDEX_RES_FILE): $(INDEX_FILE) $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
535 - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -d $(BUILDDIR) $(INDEX_FILE)
536 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -d $(DATABUILDDIR) $(INDEX_FILE)
538 # Starting with ICU4C 3.4, the core Unicode properties files (uprops.icu, ucase.icu, ubidi.icu, unorm.icu)
539 # are hardcoded in the common DLL and therefore not included in the data package any more.
541 # when updating the Unicode data.
542 # Changed in Makefile.in revision 1.147. See Jitterbug 4497.
543 uni-core-data: build-dir $(UNI_CORE_TARGET_DATA)
544 - @echo Unicode .icu files built to $(BUILDDIR)
545 + @echo Unicode .icu files built to $(DATABUILDDIR)
546 @echo Unicode .c source files built to $(OUTTMPDIR)
549 diff -ruN icu/source/data/Makefile.in.orig icu.aros/source/data/Makefile.in.orig
550 --- icu/source/data/Makefile.in.orig 1970-01-01 01:00:00.000000000 +0100
551 +++ icu.aros/source/data/Makefile.in.orig 2013-04-09 21:16:22.756541836 +0100
553 +## Makefile.in for ICU data
554 +## Copyright (c) 1999-2009, International Business Machines Corporation and
555 +## others. All Rights Reserved.
557 +## Source directory information
559 +top_srcdir = @top_srcdir@
561 +# So that you have $(top_builddir)/config.status
564 +## All the flags and other definitions are included here.
565 +include $(top_builddir)/icudefs.mk
569 +## Build directory information
570 +# So that $(top_builddir)/$(subdir) ~= "here"
573 +#lib icu data for link
574 +LIB_ICUDATA_NAME=$(LIBICU)$(DATA_STUBNAME)$(ICULIBSUFFIX)
575 +LIB_STATIC_ICUDATA_NAME=$(LIBSICU)$(DATA_STUBNAME)$(ICULIBSUFFIX)
577 +# Allow Windows to override these options
578 +ifeq ($(PKGDATA_OPTS),)
579 +PKGDATA_OPTS = -O $(top_builddir)/data/icupkg.inc
581 +ifeq ($(PKGDATA_VERSIONING),)
582 +PKGDATA_VERSIONING = -r $(SO_TARGET_VERSION)
585 +# This allows all the data to be in one directory
586 +ifeq ($(PKGDATA_MODE),dll)
587 +ICUPKGDATA_OUTDIR = $(LIBDIR)
589 +ICUPKGDATA_OUTDIR = $(OUTDIR)
592 +PKGDATA = $(TOOLBINDIR)/pkgdata $(PKGDATA_OPTS) -q -c -s $(CURR_FULL_DIR)/out/build/$(ICUDATA_PLATFORM_NAME) -d $(ICUPKGDATA_OUTDIR)
594 +ifeq ($(OS390_STUBDATA),1)
596 +OS390INSTALL=install390
598 +# Additional data for 390
599 +OS390LIST=$(OUTTMPDIR)/icudata390.lst
600 +OUTTMPDIR_390STUB=$(top_builddir)/data/out/tmp_390stub
603 +# OBJDATADIR must be a short path (with ..'s) to the data.
605 +ifeq ($(top_srcdir),..)
608 +SRCDATADIR=$(top_srcdir)/data
610 +ifeq ($(top_builddir),..)
613 +OUTDIR=$(top_builddir)/data/out
616 +OUTTMPDIR=$(OUTDIR)/tmp
617 +MAINBUILDDIR=$(OUTDIR)/build
618 +DATABUILDDIR=$(MAINBUILDDIR)/$(ICUDATA_PLATFORM_NAME)
619 +UNICODEDATADIR=$(SRCDATADIR)/unidata
620 +LOCSRCDIR=$(SRCDATADIR)/locales
621 +COLSRCDIR=$(SRCDATADIR)/coll
622 +COLBLDDIR=$(DATABUILDDIR)/coll
623 +RBNFSRCDIR=$(SRCDATADIR)/rbnf
624 +RBNFBLDDIR=$(DATABUILDDIR)/rbnf
625 +TRANSLITSRCDIR=$(SRCDATADIR)/translit
626 +TRANSLITBLDDIR=$(DATABUILDDIR)/translit
627 +MISCSRCDIR=$(SRCDATADIR)/misc
628 +BRKSRCDIR=$(SRCDATADIR)/brkitr
629 +BRKBLDDIR=$(DATABUILDDIR)/brkitr
630 +MISCSRCDIR=$(SRCDATADIR)/misc
631 +UCMSRCDIR=$(SRCDATADIR)/mappings
632 +SPREPSRCDIR=$(SRCDATADIR)/sprep
633 +COMINCDIR=$(top_srcdir)/common/unicode
634 +SRCLISTDEPS=Makefile $(srcdir)/Makefile.in
635 +BUILD_DIRS=$(OUTDIR) $(MAINBUILDDIR) $(DATABUILDDIR) $(BRKBLDDIR) $(COLBLDDIR) $(RBNFBLDDIR) $(TRANSLITBLDDIR) $(OUTTMPDIR) $(OUTTMPDIR_390STUB) $(OUTTMPDIR)/$(COLLATION_TREE) $(OUTTMPDIR)/$(RBNF_TREE) $(OUTTMPDIR)/$(TRANSLIT_TREE) $(OUTTMPDIR)/$(BREAK_TREE)
637 +# relative lib links from pkgdata are the same as for tmp
638 +TOOLDIR=$(top_builddir)/tools
640 +## List of phony targets
641 +.PHONY : all all-local all-recursive install install-local install-files \
642 +install-recursive clean clean-local clean-recursive distclean \
643 +distclean-local distclean-recursive dist dist-local dist-recursive \
644 +check check-local check-recursive build-local clean-resindex build-dir
646 +## Clear suffix list
649 +## List of standard targets
651 +install: all-local install-local
653 +distclean : distclean-local
658 +distclean-local: clean
661 +all-local: build-dir icupkg.inc build-local packagedata $(POST_DATA_BUILD) $(OS390PKG)
666 + -test -z *.map || $(RMV) *.map
668 +clean-local: cleanpackage cleanfiles clean-map
671 + test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
675 + $(RMV) $(LIBDIR)/$(LIB_ICUDATA_NAME)*.$(SO)* $(LIBDIR)/$(LIB_STATIC_ICUDATA_NAME).$(A)
679 +# Find out if we have a source archive.
680 +# If we have that, then use that instead of building everything from scratch.
681 +ICUDATA_SOURCE_ARCHIVE = $(wildcard $(srcdir)/in/$(ICUDATA_PLATFORM_NAME).dat)
682 +ifeq ($(ICUDATA_SOURCE_ARCHIVE),)
683 +ICUDATA_ARCHIVE = $(firstword $(wildcard $(srcdir)/in/$(ICUDATA_BASENAME_VERSION)*.dat))
684 +# We don't have the data in the current endianess or charset.
685 +# See if we can find data of any archive type,
686 +# and convert it to the current type.
687 +ifneq ($(ICUDATA_ARCHIVE),)
688 +ICUDATA_SOURCE_ARCHIVE = $(OUTDIR)/$(ICUDATA_PLATFORM_NAME).dat
689 +$(ICUDATA_SOURCE_ARCHIVE): $(ICUDATA_ARCHIVE) $(OUTDIR)
690 + $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(ICUDATA_ARCHIVE) $(ICUDATA_SOURCE_ARCHIVE)
693 +ifneq ($(ENABLE_STATIC),YES)
694 +ifeq ($(PKGDATA_MODE),common)
695 +# We have a source data common archive in the native endianess,
696 +# and it's what we want to build. Try to not run any of ICU's tools.
697 +ICUDATA_SOURCE_IS_NATIVE_TARGET=YES
702 +packagedata: icupkg.inc $(PKGDATA_LIST) build-local
703 +ifneq ($(ENABLE_STATIC),)
704 +ifeq ($(PKGDATA_MODE),dll)
705 + $(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) -m static $(PKGDATA_LIST)
708 +ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES)
709 + $(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) $(PKGDATA_LIBNAME) $(PKGDATA_LIST)
711 + $(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(OUTDIR)
714 +## Install ICU data.
715 +install-local: $(PKGDATA_LIST) ./icupkg.inc packagedata $(OS390INSTALL)
716 + $(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(ICUPKGDATA_DIR)
717 +ifeq ($(PKGDATA_MODE),files)
718 + $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)
719 + $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(BREAK_TREE)
720 + $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(COLLATION_TREE)
721 + $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(RBNF_TREE)
722 + $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(TRANSLIT_TREE)
724 +ifneq ($(ENABLE_STATIC),)
725 +ifeq ($(PKGDATA_MODE),dll)
726 + $(PKGDATA_INVOKE) $(PKGDATA) -m static -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(DATABUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_LIBDIR)
729 +ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES)
730 + $(PKGDATA_INVOKE) $(PKGDATA) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(DATABUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_DIR)
732 + $(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(DESTDIR)$(ICUPKGDATA_DIR)
739 +install390: package390
740 + $(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(libdir)
741 + $(INVOKE) $(PKGDATA) -s $(DATABUILDDIR)$(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)
742 +ifeq ($(PKGDATA_MODE),dll)
743 + $(INSTALL-L) $(ICUPKGDATA_OUTDIR)/$(FINAL_IMPORT_LIB) $(DESTDIR)$(ICUPKGDATA_DIR)/$(FINAL_IMPORT_LIB)
746 +#### $(LIB_ICUDATA_NAME)$(STUB_SUFFIX) is the subset data for batch mode
747 +package390: $(OUTTMPDIR)/icudata390.lst $(PKGDATA_LIST) ./icupkg.inc packagedata
748 + ln -s $(ICUDATA_NAME) $(OUTDIR)/build/$(ICUDATA_NAME)$(STUB_SUFFIX)
749 + $(INVOKE) $(PKGDATA) -s $(DATABUILDDIR)$(STUB_SUFFIX) -T $(OUTTMPDIR_390STUB) -p $(ICUDATA_NAME)$(STUB_SUFFIX) $(PKGDATA_LIBNAME)$(STUB_SUFFIX) -e $(ICUDATA_ENTRY_POINT) $(OS390LIST) -m dll $(PKGDATA_VERSIONING)
750 + cp $(ICUPKGDATA_OUTDIR)/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO) $(top_builddir)/stubdata/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO)
753 +##### Define all the data files. the build rule that depends on them is below.
754 +# X_FILES_SHORT = just the base names (for lists)
755 +# X_FILES = full paths (for dependency)
757 +## DAT files - Misc. data files.
758 +# 2005-may-05 Removed Unicode properties files (unorm.icu, uprops.icu, ucase.icu, ubidi.icu)
759 +# from data build. See Jitterbug 4497. (makedata.mak revision 1.117)
761 +DAT_FILES_SHORT=pnames.icu unames.icu cnvalias.icu coll/ucadata.icu coll/invuca.icu
762 +DAT_FILES=$(DAT_FILES_SHORT:%=$(DATABUILDDIR)/%)
766 +-include $(BRKSRCDIR)/brkfiles.mk
767 +-include $(BRKSRCDIR)/brklocal.mk
768 +ALL_BRK_SOURCE= $(BRK_SOURCE) $(BRK_SOURCE_LOCAL)
769 +BRK_FILES_SHORT=$(ALL_BRK_SOURCE:%.txt=$(BREAK_TREE)/%.brk)
770 +BRK_FILES=$(ALL_BRK_SOURCE:%.txt=$(BRKBLDDIR)/%.brk)
771 +ifdef BRK_CTD_SOURCE
772 +ALL_CTD_SOURCE=$(BRK_CTD_SOURCE) $(BRK_CTD_SOURCE_LOCAL)
773 +CTD_FILES_SHORT=$(ALL_CTD_SOURCE:%.txt=$(BREAK_TREE)/%.ctd)
774 +CTD_FILES=$(ALL_CTD_SOURCE:%.txt=$(BRKBLDDIR)/%.ctd)
776 +ifdef BRK_RES_SOURCE
777 +BRS_SRC= root.txt $(BRK_RES_SOURCE) $(BRK_RES_SOURCE_LOCAL)
778 +BRS_SRC_FILES = $(BRS_SRC:%=$(BRKSRCDIR)/%)
779 +INSTALLED_BRS_FILES = $(BRK_RES_SOURCE:%.txt=%) $(BRK_RES_SOURCE_LOCAL:%.txt=%)
782 +## Confusables (Spoofing) files
783 +ALL_CFU_SOURCE=$(UNICODEDATADIR)/confusables.txt $(UNICODEDATADIR)/confusablesWholeScript.txt
784 +CFU_FILES_SHORT=confusables.cfu
785 +CFU_FILES=$(DATABUILDDIR)/$(CFU_FILES_SHORT)
788 +-include $(UCMSRCDIR)/ucmcore.mk
789 +-include $(UCMSRCDIR)/ucmfiles.mk
790 +-include $(UCMSRCDIR)/ucmebcdic.mk
791 +-include $(UCMSRCDIR)/ucmlocal.mk
792 +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)
793 +UCM_FILES = $(ALL_UCM_SOURCE:%=$(SRCDATADIR)/%)
794 +CNV_FILES = $(ALL_UCM_SOURCE:%.ucm=$(DATABUILDDIR)/%.cnv)
795 +CNV_FILES_SHORT = $(ALL_UCM_SOURCE:%.ucm=%.cnv)
798 +-include $(LOCSRCDIR)/resfiles.mk
799 +-include $(COLSRCDIR)/colfiles.mk
800 +-include $(RBNFSRCDIR)/rbnffiles.mk
801 +-include $(TRANSLITSRCDIR)/trnsfiles.mk
802 +-include $(LOCSRCDIR)/reslocal.mk
803 +-include $(COLSRCDIR)/collocal.mk
804 +-include $(BRKSRCDIR)/brslocal.mk
805 +-include $(RBNFSRCDIR)/rbnflocal.mk
806 +-include $(TRANSLITSRCDIR)/trnslocal.mk
808 +RES_SRC= root.txt $(GENRB_SOURCE) $(GENRB_ALIAS_SOURCE) $(GENRB_SOURCE_LOCAL) $(GENRB_ALIAS_SOURCE_LOCAL)
809 +RES_SRC_FILES = $(RES_SRC:%=$(LOCSRCDIR)/%)
810 +INSTALLED_RB_FILES = $(GENRB_SOURCE:%.txt=%) $(GENRB_SOURCE_LOCAL:%.txt=%)
812 +ifdef COLLATION_SOURCE
813 +COL_SRC= root.txt $(COLLATION_SOURCE) $(COLLATION_ALIAS_SOURCE) $(COLLATION_SOURCE_LOCAL)
814 +COL_SRC_FILES = $(COL_SRC:%=$(COLSRCDIR)/%)
815 +INSTALLED_COL_FILES = $(COLLATION_SOURCE:%.txt=%) $(COLLATION_SOURCE_LOCAL:%.txt=%)
818 +RBNF_SRC= root.txt $(RBNF_SOURCE) $(RBNF_ALIAS_SOURCE) $(RBNF_SOURCE_LOCAL)
819 +RBNF_SRC_FILES = $(RBNF_SRC:%=$(RBNFSRCDIR)/%)
820 +INSTALLED_RBNF_FILES = $(RBNF_SOURCE:%.txt=%) $(RBNF_SOURCE_LOCAL:%.txt=%)
822 +ifdef TRANSLIT_SOURCE
823 +TRANSLIT_SRC= $(TRANSLIT_SOURCE) $(TRANSLIT_ALIAS_SOURCE) $(TRANSLIT_SOURCE_LOCAL)
824 +TRANSLIT_SRC_FILES = $(TRANSLIT_SRC:%=$(TRANSLITSRCDIR)/%)
825 +INSTALLED_TRANSLIT_FILES = $(TRANSLIT_SOURCE:%.txt=%) $(TRANSLIT_SOURCE_LOCAL:%.txt=%)
830 +-include $(MISCSRCDIR)/miscfiles.mk
831 +-include $(MISCSRCDIR)/misclocal.mk
832 +MSC_SOURCE= $(MISC_SOURCE) $(MISC_SOURCE_LOCAL)
833 +MSC_SRC_FILES=$(MSC_SOURCE:%=$(MISCSRCDIR)/%)
835 +ifeq ($(ENABLE_SO_VERSION_DATA),1)
836 +ifeq ($(PKGDATA_MODE),dll)
837 +SO_VERSION_DATA = $(OUTTMPDIR)/icudata.res
838 +$(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc
839 + rc.exe /i$(srcdir)/../common /fo$@ $(CPPFLAGS) $(SOURCE_FILE)
843 +ALL_RES_SRC= $(RES_SRC) $(TRNS_SOURCE) $(MSC_SOURCE)
844 +RES_FILES = $(ALL_RES_SRC:%.txt=$(DATABUILDDIR)/%.res)
845 +RES_FILES_SHORT = $(ALL_RES_SRC:%.txt=%.res)
846 +PKGDATA_LIST = $(OUTTMPDIR)/icudata.lst
848 +INDEX_NAME=res_index
849 +INDEX_FILE=$(OUTTMPDIR)/$(INDEX_NAME).txt
850 +INDEX_RES_FILE=$(INDEX_FILE:$(OUTTMPDIR)/%.txt=$(DATABUILDDIR)/%.res)
851 +INDEX_RES_FILE_SHORT=$(INDEX_FILE:$(OUTTMPDIR)/%.txt=%.res)
854 +COLLATION_INDEX_FILE=$(OUTTMPDIR)/$(COLLATION_TREE)/$(INDEX_NAME).txt
855 +COLLATION_INDEX_RES=$(COLBLDDIR)/$(INDEX_NAME).res
856 +COLLATION_INDEX_RES_SHORT=$(COLLATION_TREE)/$(INDEX_NAME).res
857 +COLLATION_FILES = $(COL_SRC:%.txt=$(COLBLDDIR)/%.res) $(COLLATION_INDEX_RES)
858 +COLLATION_FILES_SHORT = $(COL_SRC:%.txt=$(COLLATION_TREE)/%.res)
860 +BRK_RES_INDEX_FILE=$(OUTTMPDIR)/$(BREAK_TREE)/$(INDEX_NAME).txt
861 +BRK_RES_INDEX_RES=$(BRKBLDDIR)/$(INDEX_NAME).res
862 +BRK_RES_INDEX_RES_SHORT=$(BREAK_TREE)/$(INDEX_NAME).res
863 +BRK_RES_FILES = $(BRS_SRC:%.txt=$(BRKBLDDIR)/%.res) $(BRK_RES_INDEX_RES)
864 +BRK_RES_FILES_SHORT = $(BRS_SRC:%.txt=$(BREAK_TREE)/%.res)
867 +RBNF_INDEX_FILE=$(OUTTMPDIR)/$(RBNF_TREE)/$(INDEX_NAME).txt
868 +RBNF_INDEX_RES=$(RBNFBLDDIR)/$(INDEX_NAME).res
869 +RBNF_INDEX_RES_SHORT=$(RBNF_TREE)/$(INDEX_NAME).res
870 +RBNF_FILES = $(RBNF_SRC:%.txt=$(RBNFBLDDIR)/%.res) $(RBNF_INDEX_RES)
871 +RBNF_FILES_SHORT = $(RBNF_SRC:%.txt=$(RBNF_TREE)/%.res)
873 +TRANSLIT_TREE=translit
874 +#TRANSLIT_INDEX_FILE=$(OUTTMPDIR)/$(TRANSLIT_TREE)/$(INDEX_NAME).txt
875 +#TRANSLIT_INDEX_RES=$(TRANSLITBLDDIR)/$(INDEX_NAME).res
876 +#TRANSLIT_INDEX_RES_SHORT=$(TRANSLIT_TREE)/$(INDEX_NAME).res
877 +TRANSLIT_FILES = $(TRANSLIT_SRC:%.txt=$(TRANSLITBLDDIR)/%.res)
878 +TRANSLIT_FILES_SHORT = $(TRANSLIT_SRC:%.txt=$(TRANSLIT_TREE)/%.res)
881 +-include $(SPREPSRCDIR)/sprepfiles.mk
882 +-include $(SPREPSRCDIR)/spreplocal.mk
883 +ALL_SPREP_SOURCE=$(SPREP_SOURCE) $(SPREP_SOURCE_LOCAL)
884 +SPREP_FILES = $(ALL_SPREP_SOURCE:%.txt=$(DATABUILDDIR)/%.spp)
885 +SPREP_FILES_SHORT = $(ALL_SPREP_SOURCE:%.txt=%.spp)
887 +## All generated files
888 +ALL_FILES = $(DAT_FILES) $(CNV_FILES) $(BRK_FILES) $(CTD_FILES) $(RES_FILES) $(INDEX_RES_FILE) $(COLLATION_FILES) $(BRK_RES_FILES) $(RBNF_FILES) $(TRANSLIT_FILES) $(SPREP_FILES) $(CFU_FILES)
889 +ALL_INDEX_SRC_FILES = $(PKGDATA_LIST) $(INDEX_FILE) $(COLLATION_INDEX_FILE) $(BRK_RES_INDEX_FILE) $(RBNF_INDEX_FILE)
890 +# a list to use in the .lst files (package-relative)
891 +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) $(SPREP_FILES_SHORT) $(CFU_FILES_SHORT)
893 +UNI_CORE_DATA=uprops.icu ucase.icu ubidi.icu unorm.icu
894 +UNI_CORE_TARGET_DATA=$(UNI_CORE_DATA:%=$(DATABUILDDIR)/%)
896 +ifneq ($(INCLUDE_UNI_CORE_DATA),)
897 +ALL_FILES_LIST+=$(UNI_CORE_DATA)
898 +build-local: uni-core-data
901 +#####################################################
902 +# General data build rules
904 +## Files to remove for 'make clean'
905 +CLEANFILES = *~ icupkg.inc
907 +ifeq ($(ICUDATA_SOURCE_ARCHIVE),)
908 +build-local: build-dir $(SO_VERSION_DATA) $(ALL_FILES) $(PKGDATA_LIST) $(OS390LIST)
909 +$(PKGDATA_LIST): $(SRCLISTDEPS)
910 + @echo "generating $@ (list of data files)"
912 + @for file in $(ALL_FILES_LIST); do \
913 + echo $$file >> $@; \
916 +build-local: build-dir $(SO_VERSION_DATA) $(PKGDATA_LIST) $(OS390LIST)
917 +$(PKGDATA_LIST): $(SRCLISTDEPS) $(ICUDATA_SOURCE_ARCHIVE)
918 +ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES)
919 + @echo "Unpacking $(ICUDATA_SOURCE_ARCHIVE) and generating $@ (list of data files)"
921 + $(INVOKE) $(TOOLBINDIR)/icupkg -d $(DATABUILDDIR) --list -x \* $(ICUDATA_SOURCE_ARCHIVE) -o $@
928 +$(BUILD_DIRS): build-dir
931 + @list='$(BUILD_DIRS)'; \
932 + for dir in $$list; do \
933 + if ! test -d $$dir; then \
934 + echo $(MKINSTALLDIRS) $(BUILD_DIRS); \
935 + $(MKINSTALLDIRS) $(BUILD_DIRS); \
939 +# The | is an order-only prerequisite. This helps when the -j option is used,
940 +# and we don't want the files to be built before the directories are built.
941 +ifneq ($(filter order-only,$(.FEATURES)),)
942 +$(ALL_FILES) $(ALL_INDEX_SRC_FILES): | build-dir
945 +# Now, sections for building each kind of data.
947 +#################################################### DAT
951 +$(DATABUILDDIR)/uprops.icu: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLBINDIR)/genprops$(TOOLEXEEXT) $(DATABUILDDIR)/$(ICUDT)pnames.icu
952 + $(INVOKE) $(TOOLBINDIR)/genprops -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(DATABUILDDIR) -u $(UNICODE_VERSION)
953 + $(INVOKE) $(TOOLBINDIR)/genprops --csource -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
956 +$(DATABUILDDIR)/ubidi.icu: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLBINDIR)/genbidi$(TOOLEXEEXT)
957 + $(INVOKE) $(TOOLBINDIR)/genbidi -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(DATABUILDDIR) -u $(UNICODE_VERSION)
958 + $(INVOKE) $(TOOLBINDIR)/genbidi --csource -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
961 +$(DATABUILDDIR)/ucase.icu: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLBINDIR)/gencase$(TOOLEXEEXT)
962 + $(INVOKE) $(TOOLBINDIR)/gencase -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(DATABUILDDIR) -u $(UNICODE_VERSION)
963 + $(INVOKE) $(TOOLBINDIR)/gencase --csource -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
966 +$(DATABUILDDIR)/pnames.icu: $(UNICODEDATADIR)/PropertyAliases.txt $(UNICODEDATADIR)/PropertyValueAliases.txt $(UNICODEDATADIR)/Blocks.txt $(COMINCDIR)/uscript.h $(COMINCDIR)/uchar.h $(TOOLBINDIR)/genpname$(TOOLEXEEXT)
967 + $(INVOKE) $(TOOLBINDIR)/genpname -d $(DATABUILDDIR)
970 +$(DATABUILDDIR)/unorm.icu: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/DerivedNormalizationProps.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLBINDIR)/gennorm$(TOOLEXEEXT) $(DATABUILDDIR)/$(ICUDT)pnames.icu $(DATABUILDDIR)/$(ICUDT)uprops.icu $(DATABUILDDIR)/$(ICUDT)ucase.icu
971 + $(INVOKE) $(TOOLBINDIR)/gennorm -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(DATABUILDDIR) -u $(UNICODE_VERSION)
972 + $(INVOKE) $(TOOLBINDIR)/gennorm --csource -s $(UNICODEDATADIR) -i $(DATABUILDDIR) -d $(OUTTMPDIR) -u $(UNICODE_VERSION)
975 +# used to depend on $(DATABUILDDIR)/$(ICUDT)unorm.icu $(DATABUILDDIR)/$(ICUDT)ucase.icu
976 +# see Jitterbug 4497
977 +$(COLBLDDIR)/ucadata.icu $(COLBLDDIR)/invuca.icu: $(UNICODEDATADIR)/FractionalUCA.txt $(TOOLBINDIR)/genuca$(TOOLEXEEXT)
978 + $(INVOKE) $(TOOLBINDIR)/genuca -s $(UNICODEDATADIR) -d $(COLBLDDIR) -i $(DATABUILDDIR)
981 +$(DATABUILDDIR)/unames.icu: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLBINDIR)/gennames$(TOOLEXEEXT)
982 + $(INVOKE) $(TOOLBINDIR)/gennames -1 -d $(DATABUILDDIR) $(UNICODEDATADIR)/UnicodeData.txt -u $(UNICODE_VERSION)
985 +$(DATABUILDDIR)/cnvalias.icu: $(UCMSRCDIR)/convrtrs.txt $(TOOLBINDIR)/gencnval$(TOOLEXEEXT)
986 + $(INVOKE) $(TOOLBINDIR)/gencnval -d $(DATABUILDDIR) $(UCMSRCDIR)/convrtrs.txt
988 +#################################################### SPP
991 +$(DATABUILDDIR)/%.spp: $(SPREPSRCDIR)/%.txt $(TOOLBINDIR)/gensprep$(TOOLEXEEXT) $(DATABUILDDIR)/unames.icu $(DATABUILDDIR)/pnames.icu
992 + $(INVOKE) $(TOOLBINDIR)/gensprep -d $(DATABUILDDIR) -i $(DATABUILDDIR) -s $(SPREPSRCDIR) -b $(@F:%.spp=%) -m $(UNICODEDATADIR) -u 3.2.0 $(<F)
994 +#################################################### BRK
997 +#thaidict.brk: $(SRCDATADIR)/thaidict.brk
998 +# $(RMV) $@ && ln -s $(DATABUILDDIR) $@
1000 +$(BRKBLDDIR)/%.brk: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genbrk$(TOOLEXEEXT) $(DAT_FILES)
1001 + $(INVOKE) $(TOOLBINDIR)/genbrk -c -i $(DATABUILDDIR) -r $< -o $@
1003 +#################################################### CTD
1006 +$(BRKBLDDIR)/%.ctd: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genctd$(TOOLEXEEXT) $(DAT_FILES)
1007 + $(INVOKE) $(TOOLBINDIR)/genctd -c -i $(DATABUILDDIR) -o $@ $<
1009 +#################################################### CFU
1011 +# Note: gencfu requires two input files to produce a single output file.
1012 +# There will be exactly one target file and two source files.
1013 +# The $(word n, ...) selects the nth word from the following stuff.
1014 +# There must be a nicer way to do this.
1016 +$(CFU_FILES): $(ALL_CFU_SOURCE) $(TOOLBINDIR)/gencfu$(EXEEXT) $(DAT_FILES)
1017 + $(INVOKE) echo ALL_CFU_SOURCE: $(ALL_CFU_SOURCE)
1018 + $(INVOKE) echo CFU_FILES: $(CFU_FILES)
1019 + $(INVOKE) echo CFU_FILES_SHORT: $(CFU_FILES_SHORT)
1020 + $(INVOKE) $(TOOLBINDIR)/gencfu -c -i $(DATABUILDDIR) -r $(word 1,$(ALL_CFU_SOURCE)) -w $(word 2,$(ALL_CFU_SOURCE)) -o $@
1023 +#################################################### CNV
1025 +$(DATABUILDDIR)/%.cnv: $(UCMSRCDIR)/%.ucm $(TOOLBINDIR)/makeconv$(TOOLEXEEXT)
1026 + $(INVOKE) $(TOOLBINDIR)/makeconv -c -d $(DATABUILDDIR) $(UCMSRCDIR)/$(<F)
1028 +#################################################### RES
1032 +$(COLBLDDIR)/%.res: $(COLSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
1033 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(COLSRCDIR) -d $(COLBLDDIR) $(<F)
1035 +$(COLBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(COLLATION_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
1036 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(OUTTMPDIR)/$(COLLATION_TREE) -d $(COLBLDDIR) $(INDEX_NAME).txt
1038 +$(COLLATION_INDEX_FILE): $(SRCLISTDEPS)
1039 + @echo "generating $@ (list of installed collation locales)"; \
1041 + echo "// Warning this file is automatically generated" > $@; \
1042 + echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
1043 + echo " InstalledLocales {" >> $@; \
1044 + for file in $(INSTALLED_COL_FILES); do \
1045 + echo " $$file {\"\"}" >> $@; \
1047 + echo " }" >> $@; \
1051 +$(BRKBLDDIR)/%.res: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(BRK_FILES) $(DAT_FILES)
1052 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(BRKSRCDIR) -d $(BRKBLDDIR) $(<F)
1054 +$(BRKBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(BREAK_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
1055 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(OUTTMPDIR)/$(BREAK_TREE) -d $(BRKBLDDIR) $(INDEX_NAME).txt
1057 +$(BRK_RES_INDEX_FILE): $(SRCLISTDEPS)
1058 + @echo "generating $@ (list of installed break locales)"; \
1060 + echo "// Warning this file is automatically generated" > $@; \
1061 + echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
1062 + echo " InstalledLocales {" >> $@; \
1063 + for file in $(INSTALLED_BRS_FILES); do \
1064 + echo " $$file {\"\"}" >> $@; \
1066 + echo " }" >> $@; \
1070 +$(RBNFBLDDIR)/%.res: $(RBNFSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
1071 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(RBNFSRCDIR) -d $(RBNFBLDDIR) $(<F)
1073 +$(RBNFBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(RBNF_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
1074 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(OUTTMPDIR)/$(RBNF_TREE) -d $(RBNFBLDDIR) $(INDEX_NAME).txt
1076 +$(RBNF_INDEX_FILE): $(SRCLISTDEPS)
1077 + @echo "generating $@ (list of installed RBNF locales)"; \
1079 + echo "// Warning this file is automatically generated" > $@; \
1080 + echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
1081 + echo " InstalledLocales {" >> $@; \
1082 + for file in $(INSTALLED_RBNF_FILES); do \
1083 + echo " $$file {\"\"}" >> $@; \
1085 + echo " }" >> $@; \
1089 +$(TRANSLITBLDDIR)/%.res: $(TRANSLITSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
1090 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(TRANSLITSRCDIR) -d $(TRANSLITBLDDIR) $(<F)
1092 +### normal (locale) res
1093 +all-RES: $(RES_FILES)
1095 +$(DATABUILDDIR)/%.res: $(LOCSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES)
1096 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -s $(LOCSRCDIR) -d $(DATABUILDDIR) $(<F)
1098 +# if the tzcode directory contains a new tzdata*.tar.gz file, use it for zoneinfo.txt
1099 +TZDATA = $(firstword $(wildcard $(top_builddir)/tools/tzcode/tzdata*.tar.gz) $(wildcard $(top_srcdir)/tools/tzcode/tzdata*.tar.gz))
1103 +TZCODE_DIR=$(top_builddir)/tools/tzcode
1104 +ZONEINFO=$(TZCODE_DIR)/zoneinfo.txt
1106 +# Override the normal genrb for zoneinfo.txt to always pull from
1107 +# icu/source/tools/tzcode/zoneinfo.txt
1108 +$(DATABUILDDIR)/zoneinfo.res: $(ZONEINFO) $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
1109 + @echo Note: $(MISCSRCDIR)/zoneinfo.txt is IGNORED because $(TZDATA) is present.
1110 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -q -i $(DATABUILDDIR) -d $(DATABUILDDIR) $(ZONEINFO)
1112 +# Create the tzcode tool and zoneinfo.txt as needed.
1113 +$(ZONEINFO): $(TZDATA)
1114 + @echo "$(MAKE)[$(MAKELEVEL)]: Making \`$(ZONEINFO)' in \`$(TZCODE_DIR)'"; \
1115 + (cd $(TZCODE_DIR) && $(MAKE)) || exit; \
1117 +# end of zoneinfo.txt-generation
1120 +# zoneinfo has some issues. Ignore some warnings with -q
1121 +$(DATABUILDDIR)/%.res: $(MISCSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
1122 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -q -i $(DATABUILDDIR) -s $(MISCSRCDIR) -d $(DATABUILDDIR) $(<F)
1126 +$(INDEX_FILE): $(SRCLISTDEPS)
1127 + @echo "generating $@ (list of installed locales)"; \
1129 + echo "// Warning this file is automatically generated" > $@; \
1130 + echo "$(INDEX_NAME):table(nofallback) {" >> $@; \
1131 + echo " CLDRVersion { \"$(GENRB_CLDR_VERSION)\" }" >> $@; \
1132 + echo " InstalledLocales {" >> $@; \
1133 + for file in $(INSTALLED_RB_FILES); do \
1134 + echo " $$file {\"\"}" >> $@; \
1136 + echo " }" >> $@; \
1140 + -$(RMV) $(DATABUILDDIR)/$(INDEX_NAME).txt $(PKGDATA_LIST)
1142 +$(INDEX_RES_FILE): $(INDEX_FILE) $(TOOLBINDIR)/genrb$(TOOLEXEEXT)
1143 + $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(DATABUILDDIR) -d $(DATABUILDDIR) $(INDEX_FILE)
1145 +# Starting with ICU4C 3.4, the core Unicode properties files (uprops.icu, ucase.icu, ubidi.icu, unorm.icu)
1146 +# are hardcoded in the common DLL and therefore not included in the data package any more.
1147 +# They are not built by default but need to be built for ICU4J data and for getting the .c source files
1148 +# when updating the Unicode data.
1149 +# Changed in Makefile.in revision 1.147. See Jitterbug 4497.
1150 +uni-core-data: build-dir $(UNI_CORE_TARGET_DATA)
1151 + @echo Unicode .icu files built to $(DATABUILDDIR)
1152 + @echo Unicode .c source files built to $(OUTTMPDIR)
1155 + $(MAKE) -C ../tools/genrb $@
1157 +###################################################################
1158 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1159 + cd $(top_builddir) \
1160 + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1162 +icupkg.inc: pkgdataMakefile
1163 + $(MAKE) -f pkgdataMakefile
1166 + cd $(top_builddir) \
1167 + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1170 +########### 390 (z/OS) support
1171 +UCMFILES390=ebcdic-xml-us.ucm ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm ibm-4909_P100-1999.ucm
1172 +# used to depend on uprops.icu ucase.icu ubidi.icu unorm.icu
1173 +# see Jitterbug 4497
1174 +ALLFILES390=pnames.icu cnvalias.icu $(UCMFILES390:.ucm=.cnv)
1176 +$(OUTTMPDIR)/icudata390.lst: $(SRCLISTDEPS)
1177 + @echo "generating $@ (list of 390 data files)"
1179 + @for file in $(ALLFILES390); do \
1180 + echo $$file >> $@; \
1183 +ifeq ($(POST_DATA_BUILD), os400-data-rebind)
1184 +os400-data-rebind: $(LIBICUUC)
1186 +$(LIBICUUC): $(LIBICUDT)
1187 + $(RMV) $(LIBICUUC)
1188 + (cd ../common && $(MAKE) RECURSIVE=YES) || exit;
1191 diff -ruN icu/source/extra/uconv/Makefile.in icu.aros/source/extra/uconv/Makefile.in
1192 --- icu/source/extra/uconv/Makefile.in 2009-07-01 19:50:32.000000000 +0100
1193 +++ icu.aros/source/extra/uconv/Makefile.in 2013-04-09 21:17:15.023255820 +0100
1195 package-resfiles: $(RESDIR)/$(RESDIR).lst pkgdata.inc
1196 $(INVOKE) $(PKGDATA_INVOKE_OPTS) $(TOOLBINDIR)/pkgdata -p $(MSGNAME) $(PKGDATA_OPTS) -m $(PKGMODE) -s $(RESDIR) -d $(RESDIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst
1198 -$(RESDIR)/$(RESDIR).lst: Makefile $(srcdir)/resfiles.mk
1199 +$(RESDIR)/$(RESDIR).lst: Makefile $(srcdir)/resfiles.mk $(RESFILES)
1200 @$(MKINSTALLDIRS) $(RESDIR)
1202 @for file in $(RESFILES:$(RESDIR)/%.res=%.res); do \
1203 diff -ruN icu/source/i18n/Makefile.in icu.aros/source/i18n/Makefile.in
1204 --- icu/source/i18n/Makefile.in 2009-07-01 19:50:12.000000000 +0100
1205 +++ icu.aros/source/i18n/Makefile.in 2013-04-09 21:16:29.017627402 +0100
1207 TARGET_STUBNAME=$(I18N_STUBNAME)
1209 ifneq ($(ENABLE_STATIC),)
1210 -TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1211 +I18NTARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1214 ifneq ($(ENABLE_SHARED),)
1217 endif # ENABLE_SHARED
1219 -ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
1220 +ALL_TARGETS = $(I18NTARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
1222 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
1223 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
1225 install-library: all-local
1226 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
1227 ifneq ($(ENABLE_STATIC),)
1228 - $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
1229 + $(INSTALL-L) $(I18NTARGET) $(DESTDIR)$(libdir)
1231 ifneq ($(ENABLE_SHARED),)
1232 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
1234 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1236 ifneq ($(ENABLE_STATIC),)
1237 -$(TARGET): $(STATIC_OBJECTS)
1238 +$(I18NTARGET): $(STATIC_OBJECTS)
1239 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
1242 diff -ruN icu/source/icudefs.mk.in icu.aros/source/icudefs.mk.in
1243 --- icu/source/icudefs.mk.in 2009-07-01 19:51:26.000000000 +0100
1244 +++ icu.aros/source/icudefs.mk.in 2013-04-09 21:17:15.024255833 +0100
1246 PKGDATA_LIBNAME = -L $(ICUPREFIX)$(DATA_STUBNAME)$(ICULIBSUFFIX)
1247 ICUPKGDATA_DIR = $(libdir)
1249 +ifeq ($(PKGDATA_MODE),static)
1250 +ICUDATA_NAME = $(ICUDATA_PLATFORM_NAME)
1251 +PKGDATA_LIBNAME = -L $(ICUPREFIX)$(DATA_STUBNAME)$(ICULIBSUFFIX)
1252 +ICUPKGDATA_DIR = $(libdir)
1254 ICUDATA_NAME = $(ICUDATA_PLATFORM_NAME)
1255 ICUPKGDATA_DIR = $(ICUDATA_DIR)
1259 # This is needed so that make -j2 doesn't complain when invoking pkgdata's make
1260 PKGDATA_INVOKE_OPTS = MAKEFLAGS=
1262 diff -ruN icu/source/io/Makefile.in icu.aros/source/io/Makefile.in
1263 --- icu/source/io/Makefile.in 2009-07-01 19:50:48.000000000 +0100
1264 +++ icu.aros/source/io/Makefile.in 2013-04-09 21:16:30.012640999 +0100
1266 TARGET_STUBNAME=$(IO_STUBNAME)
1268 ifneq ($(ENABLE_STATIC),)
1269 -TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1270 +IOTARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1273 ifneq ($(ENABLE_SHARED),)
1276 endif # ENABLE_SHARED
1278 -ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
1279 +ALL_TARGETS = $(IOTARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
1281 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
1282 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
1284 install-library: all-local
1285 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
1286 ifneq ($(ENABLE_STATIC),)
1287 - $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
1288 + $(INSTALL-L) $(IOTARGET) $(DESTDIR)$(libdir)
1290 ifneq ($(ENABLE_SHARED),)
1291 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
1293 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1295 ifneq ($(ENABLE_STATIC),)
1296 -$(TARGET): $(STATIC_OBJECTS)
1297 +$(IOTARGET): $(STATIC_OBJECTS)
1298 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
1301 diff -ruN icu/source/layout/Makefile.in icu.aros/source/layout/Makefile.in
1302 --- icu/source/layout/Makefile.in 2009-07-01 19:51:24.000000000 +0100
1303 +++ icu.aros/source/layout/Makefile.in 2013-04-09 21:16:30.373645931 +0100
1305 TARGET_STUBNAME=$(LAYOUT_STUBNAME)
1307 ifneq ($(ENABLE_STATIC),)
1308 -TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1309 +LAYOUTTARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1312 ifneq ($(ENABLE_SHARED),)
1315 endif # ENABLE_SHARED
1317 -ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
1318 +ALL_TARGETS = $(LAYOUTTARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
1320 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
1321 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
1323 install-library: all-local
1324 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
1325 ifneq ($(ENABLE_STATIC),)
1326 - $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
1327 + $(INSTALL-L) $(LAYOUTTARGET) $(DESTDIR)$(libdir)
1329 ifneq ($(ENABLE_SHARED),)
1330 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
1332 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1334 ifneq ($(ENABLE_STATIC),)
1335 -$(TARGET): $(STATIC_OBJECTS)
1336 +$(LAYOUTTARGET): $(STATIC_OBJECTS)
1337 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
1340 diff -ruN icu/source/layoutex/Makefile.in icu.aros/source/layoutex/Makefile.in
1341 --- icu/source/layoutex/Makefile.in 2009-07-01 19:51:20.000000000 +0100
1342 +++ icu.aros/source/layoutex/Makefile.in 2013-04-09 21:16:30.537648173 +0100
1344 TARGET_STUBNAME=$(LAYOUTEX_STUBNAME)
1346 ifneq ($(ENABLE_STATIC),)
1347 -TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1348 +LAYEXTARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1351 ifneq ($(ENABLE_SHARED),)
1354 endif # ENABLE_SHARED
1356 -ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
1357 +ALL_TARGETS = $(LAYEXTARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
1359 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
1360 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
1362 install-library: all-local
1363 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
1364 ifneq ($(ENABLE_STATIC),)
1365 - $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
1366 + $(INSTALL-L) $(LAYEXTARGET) $(DESTDIR)$(libdir)
1368 ifneq ($(ENABLE_SHARED),)
1369 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
1371 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1373 ifneq ($(ENABLE_STATIC),)
1374 -$(TARGET): $(STATIC_OBJECTS)
1375 +$(LAYEXTARGET): $(STATIC_OBJECTS)
1376 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
1379 diff -ruN icu/source/stubdata/Makefile.in icu.aros/source/stubdata/Makefile.in
1380 --- icu/source/stubdata/Makefile.in 2009-07-01 19:50:48.000000000 +0100
1381 +++ icu.aros/source/stubdata/Makefile.in 2013-04-09 21:16:31.453660690 +0100
1383 TARGET_STUBNAME=$(DATA_STUBNAME)
1385 ifneq ($(ENABLE_STATIC),)
1386 -TARGET = $(STUBDATA_LIBDIR)$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1387 +STUBTARGET = $(STUBDATA_LIBDIR)$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1395 -ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
1396 +ALL_TARGETS = $(STUBTARGET) $(ALL_SO_TARGETS)
1398 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
1399 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
1401 install-library: all-local
1402 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
1403 ifneq ($(ENABLE_STATIC),)
1404 - $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
1405 + $(INSTALL-L) $(STUBTARGET) $(DESTDIR)$(libdir)
1407 ifneq ($(ENABLE_SHARED),)
1408 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
1410 && CONFIG_FILES=common/unicode/platform.h CONFIG_HEADERS= $(SHELL) ./config.status
1412 ifneq ($(ENABLE_STATIC),)
1413 -$(TARGET): $(STATIC_OBJECTS)
1414 +$(STUBTARGET): $(STATIC_OBJECTS)
1415 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
1418 diff -ruN icu/source/tools/ctestfw/Makefile.in icu.aros/source/tools/ctestfw/Makefile.in
1419 --- icu/source/tools/ctestfw/Makefile.in 2009-07-01 19:50:38.000000000 +0100
1420 +++ icu.aros/source/tools/ctestfw/Makefile.in 2013-04-09 21:16:36.662731868 +0100
1422 TARGET_STUBNAME=$(CTESTFW_STUBNAME)
1424 ifneq ($(ENABLE_STATIC),)
1425 -TARGET = $(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1426 +CTFWTARGET = $(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
1429 ifneq ($(ENABLE_SHARED),)
1431 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
1434 -ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
1435 +ALL_TARGETS = $(CTFWTARGET) $(ALL_SO_TARGETS)
1437 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
1438 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
1440 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1442 ifneq ($(ENABLE_STATIC),)
1443 -$(TARGET): $(STATIC_OBJECTS)
1444 +$(CTFWTARGET): $(STATIC_OBJECTS)
1445 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
1448 diff -ruN icu/source/tools/dumpce/Makefile.in icu.aros/source/tools/dumpce/Makefile.in
1449 --- icu/source/tools/dumpce/Makefile.in 2009-07-01 19:50:42.000000000 +0100
1450 +++ icu.aros/source/tools/dumpce/Makefile.in 2013-04-09 21:16:36.735732864 +0100
1452 CLEANFILES = *~ $(DEPS)
1454 ## Target information
1458 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/toolutil
1459 LIBS = $(LIBICUI18N) $(LIBICUUC) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M)
1462 check: all check-local
1464 -all-local: $(TARGET)
1465 +all-local: $(DCETARGET)
1472 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1473 - $(RMV) $(OBJECTS) $(TARGET)
1474 + $(RMV) $(OBJECTS) $(DCETARGET)
1476 distclean-local: clean-local
1479 cd $(top_builddir) \
1480 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1482 -$(TARGET) : $(OBJECTS)
1483 +$(DCETARGET) : $(OBJECTS)
1484 $(LINK.cc) -o $@ $^ $(LIBS)
1487 diff -ruN icu/source/tools/genbidi/Makefile.in icu.aros/source/tools/genbidi/Makefile.in
1488 --- icu/source/tools/genbidi/Makefile.in 2009-07-01 19:50:40.000000000 +0100
1489 +++ icu.aros/source/tools/genbidi/Makefile.in 2013-04-09 21:16:36.763733247 +0100
1491 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1493 ## Target information
1494 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1495 +GBIDITARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1497 ifneq ($(top_builddir),$(top_srcdir))
1498 CPPFLAGS += -I$(top_builddir)/common
1501 check: all check-local
1503 -all-local: $(TARGET) $(MAN_FILES)
1504 +all-local: $(GBIDITARGET) $(MAN_FILES)
1506 install-local: all-local install-man
1511 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1512 - $(RMV) $(TARGET) $(OBJECTS)
1513 + $(RMV) $(GBIDITARGET) $(OBJECTS)
1515 distclean-local: clean-local
1518 cd $(top_builddir) \
1519 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1521 -$(TARGET) : $(OBJECTS)
1522 +$(GBIDITARGET) : $(OBJECTS)
1523 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1526 diff -ruN icu/source/tools/genbrk/Makefile.in icu.aros/source/tools/genbrk/Makefile.in
1527 --- icu/source/tools/genbrk/Makefile.in 2009-07-01 19:50:42.000000000 +0100
1528 +++ icu.aros/source/tools/genbrk/Makefile.in 2013-04-09 21:16:36.782733507 +0100
1530 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1532 ## Target information
1533 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1534 +GBRKTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1536 ifneq ($(top_builddir),$(top_srcdir))
1537 CPPFLAGS += -I$(top_builddir)/common
1540 check: all check-local
1542 -all-local: $(TARGET) $(MAN_FILES)
1543 +all-local: $(GBRKTARGET) $(MAN_FILES)
1545 install-local: all-local install-man
1546 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
1547 - $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
1548 + $(INSTALL) $(GBRKTARGET) $(DESTDIR)$(bindir)
1550 install-man: $(MAN_FILES)
1551 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
1555 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1556 - $(RMV) $(TARGET) $(OBJECTS)
1557 + $(RMV) $(GBRKTARGET) $(OBJECTS)
1559 distclean-local: clean-local
1562 cd $(top_builddir) \
1563 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1565 -$(TARGET) : $(OBJECTS)
1566 +$(GBRKTARGET) : $(OBJECTS)
1567 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1570 diff -ruN icu/source/tools/gencase/Makefile.in icu.aros/source/tools/gencase/Makefile.in
1571 --- icu/source/tools/gencase/Makefile.in 2009-07-01 19:50:42.000000000 +0100
1572 +++ icu.aros/source/tools/gencase/Makefile.in 2013-04-09 21:16:36.803733793 +0100
1574 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1576 ## Target information
1577 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1578 +GCASETARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1580 ifneq ($(top_builddir),$(top_srcdir))
1581 CPPFLAGS += -I$(top_builddir)/common
1584 check: all check-local
1586 -all-local: $(TARGET) $(MAN_FILES)
1587 +all-local: $(GCASETARGET) $(MAN_FILES)
1589 install-local: all-local install-man
1594 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1595 - $(RMV) $(TARGET) $(OBJECTS)
1596 + $(RMV) $(GCASETARGET) $(OBJECTS)
1598 distclean-local: clean-local
1601 cd $(top_builddir) \
1602 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1604 -$(TARGET) : $(OBJECTS)
1605 +$(GCASETARGET) : $(OBJECTS)
1606 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1609 diff -ruN icu/source/tools/genccode/Makefile.in icu.aros/source/tools/genccode/Makefile.in
1610 --- icu/source/tools/genccode/Makefile.in 2009-07-01 19:50:42.000000000 +0100
1611 +++ icu.aros/source/tools/genccode/Makefile.in 2013-04-09 21:16:36.811733903 +0100
1613 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1615 ## Target information
1616 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1617 +GCODETARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1619 ifneq ($(top_builddir),$(top_srcdir))
1620 CPPFLAGS += -I$(top_builddir)/common
1623 check: all check-local
1625 -all-local: $(TARGET) $(MAN_FILES)
1626 +all-local: $(GCODETARGET) $(MAN_FILES)
1628 install-local: all-local install-man
1629 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
1630 - $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
1631 + $(INSTALL) $(GCODETARGET) $(DESTDIR)$(sbindir)
1633 install-man: $(MAN_FILES)
1634 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
1638 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1639 - $(RMV) $(TARGET) $(OBJECTS)
1640 + $(RMV) $(GCODETARGET) $(OBJECTS)
1642 distclean-local: clean-local
1645 cd $(top_builddir) \
1646 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1648 -$(TARGET) : $(OBJECTS)
1649 +$(GCODETARGET) : $(OBJECTS)
1650 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1653 diff -ruN icu/source/tools/gencfu/Makefile.in icu.aros/source/tools/gencfu/Makefile.in
1654 --- icu/source/tools/gencfu/Makefile.in 2009-07-01 19:50:42.000000000 +0100
1655 +++ icu.aros/source/tools/gencfu/Makefile.in 2013-04-09 21:16:36.844734354 +0100
1657 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1659 ## Target information
1660 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1661 +GCFUTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1663 ifneq ($(top_builddir),$(top_srcdir))
1664 CPPFLAGS += -I$(top_builddir)/common
1667 check: all check-local
1669 -all-local: $(TARGET) $(MAN_FILES)
1670 +all-local: $(GCFUTARGET) $(MAN_FILES)
1672 install-local: all-local install-man
1673 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
1674 - $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
1675 + $(INSTALL) $(GCFUTARGET) $(DESTDIR)$(bindir)
1677 install-man: $(MAN_FILES)
1678 # $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
1682 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1683 - $(RMV) $(TARGET) $(OBJECTS)
1684 + $(RMV) $(GCFUTARGET) $(OBJECTS)
1686 distclean-local: clean-local
1689 cd $(top_builddir) \
1690 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1692 -$(TARGET) : $(OBJECTS)
1693 +$(GCFUTARGET) : $(OBJECTS)
1694 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1697 diff -ruN icu/source/tools/gencmn/Makefile.in icu.aros/source/tools/gencmn/Makefile.in
1698 --- icu/source/tools/gencmn/Makefile.in 2009-07-01 19:50:42.000000000 +0100
1699 +++ icu.aros/source/tools/gencmn/Makefile.in 2013-04-09 21:16:36.853734477 +0100
1701 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1703 ## Target information
1704 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1705 +GCMNTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1707 ifneq ($(top_builddir),$(top_srcdir))
1708 CPPFLAGS += -I$(top_builddir)/common
1711 check: all check-local
1713 -all-local: $(TARGET) $(MAN_FILES)
1714 +all-local: $(GCMNTARGET) $(MAN_FILES)
1716 install-local: all-local install-man
1717 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
1718 - $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
1719 + $(INSTALL) $(GCMNTARGET) $(DESTDIR)$(sbindir)
1721 install-man: $(MAN_FILES)
1722 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
1726 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1727 - $(RMV) $(TARGET) $(OBJECTS)
1728 + $(RMV) $(GCMNTARGET) $(OBJECTS)
1730 distclean-local: clean-local
1733 cd $(top_builddir) \
1734 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1736 -$(TARGET) : $(OBJECTS)
1737 +$(GCMNTARGET) : $(OBJECTS)
1738 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1741 diff -ruN icu/source/tools/gencnval/Makefile.in icu.aros/source/tools/gencnval/Makefile.in
1742 --- icu/source/tools/gencnval/Makefile.in 2009-07-01 19:50:40.000000000 +0100
1743 +++ icu.aros/source/tools/gencnval/Makefile.in 2013-04-09 21:16:36.894735037 +0100
1745 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1747 ## Target information
1748 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1749 +GCNVALTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1751 ifneq ($(top_builddir),$(top_srcdir))
1752 CPPFLAGS += -I$(top_builddir)/common
1755 check: all check-local
1757 -all-local: $(TARGET) $(MAN_FILES)
1758 +all-local: $(GCNVALTARGET) $(MAN_FILES)
1760 install-local: all-local install-man
1761 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
1762 - $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
1763 + $(INSTALL) $(GCNVALTARGET) $(DESTDIR)$(bindir)
1765 install-man: $(MAN_FILES)
1766 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
1770 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1771 - $(RMV) $(TARGET) $(OBJECTS)
1772 + $(RMV) $(GCNVALTARGET) $(OBJECTS)
1774 distclean-local: clean-local
1777 cd $(top_builddir) \
1778 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1780 -$(TARGET) : $(OBJECTS)
1781 +$(GCNVALTARGET) : $(OBJECTS)
1782 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1785 diff -ruN icu/source/tools/genctd/Makefile.in icu.aros/source/tools/genctd/Makefile.in
1786 --- icu/source/tools/genctd/Makefile.in 2009-07-01 19:50:42.000000000 +0100
1787 +++ icu.aros/source/tools/genctd/Makefile.in 2013-04-09 21:16:36.910735254 +0100
1789 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1791 ## Target information
1792 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1793 +GCTDTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1795 ifneq ($(top_builddir),$(top_srcdir))
1796 CPPFLAGS += -I$(top_builddir)/common
1799 check: all check-local
1801 -all-local: $(TARGET) $(MAN_FILES)
1802 +all-local: $(GCTDTARGET) $(MAN_FILES)
1804 install-local: all-local install-man
1805 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
1806 - $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
1807 + $(INSTALL) $(GCTDTARGET) $(DESTDIR)$(bindir)
1809 install-man: $(MAN_FILES)
1810 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
1814 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1815 - $(RMV) $(TARGET) $(OBJECTS)
1816 + $(RMV) $(GCTDTARGET) $(OBJECTS)
1818 distclean-local: clean-local
1821 cd $(top_builddir) \
1822 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1824 -$(TARGET) : $(OBJECTS)
1825 +$(GCTDTARGET) : $(OBJECTS)
1826 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1829 diff -ruN icu/source/tools/gennames/Makefile.in icu.aros/source/tools/gennames/Makefile.in
1830 --- icu/source/tools/gennames/Makefile.in 2009-07-01 19:50:40.000000000 +0100
1831 +++ icu.aros/source/tools/gennames/Makefile.in 2013-04-09 21:16:36.930735529 +0100
1833 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1835 ## Target information
1836 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1837 +GNAMESTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1839 ifneq ($(top_builddir),$(top_srcdir))
1840 CPPFLAGS += -I$(top_builddir)/common
1843 check: all check-local
1845 -all-local: $(TARGET) $(MAN_FILES)
1846 +all-local: $(GNAMESTARGET) $(MAN_FILES)
1848 install-local: all-local install-man
1849 # $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
1850 -# $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
1851 +# $(INSTALL) $(GNAMESTARGET) $(DESTDIR)$(sbindir)
1853 install-man: $(MAN_FILES)
1854 # $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
1858 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1859 - $(RMV) $(TARGET) $(OBJECTS)
1860 + $(RMV) $(GNAMESTARGET) $(OBJECTS)
1862 distclean-local: clean-local
1865 cd $(top_builddir) \
1866 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1868 -$(TARGET) : $(OBJECTS)
1869 +$(GNAMESTARGET) : $(OBJECTS)
1870 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1873 diff -ruN icu/source/tools/gennorm/Makefile.in icu.aros/source/tools/gennorm/Makefile.in
1874 --- icu/source/tools/gennorm/Makefile.in 2009-07-01 19:50:42.000000000 +0100
1875 +++ icu.aros/source/tools/gennorm/Makefile.in 2013-04-09 21:16:36.936735611 +0100
1877 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1879 ## Target information
1880 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1881 +GNORMTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1883 ifneq ($(top_builddir),$(top_srcdir))
1884 CPPFLAGS += -I$(top_builddir)/common
1887 check: all check-local
1889 -all-local: $(TARGET) $(MAN_FILES)
1890 +all-local: $(GNORMTARGET) $(MAN_FILES)
1892 install-local: all-local install-man
1893 # $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
1894 -# $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
1895 +# $(INSTALL) $(GNORMTARGET) $(DESTDIR)$(sbindir)
1897 install-man: $(MAN_FILES)
1898 # $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
1902 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1903 - $(RMV) $(TARGET) $(OBJECTS)
1904 + $(RMV) $(GNORMTARGET) $(OBJECTS)
1906 distclean-local: clean-local
1909 cd $(top_builddir) \
1910 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1912 -$(TARGET) : $(OBJECTS)
1913 +$(GNORMTARGET) : $(OBJECTS)
1914 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1917 diff -ruN icu/source/tools/genpname/Makefile.in icu.aros/source/tools/genpname/Makefile.in
1918 --- icu/source/tools/genpname/Makefile.in 2009-07-01 19:50:40.000000000 +0100
1919 +++ icu.aros/source/tools/genpname/Makefile.in 2013-04-09 21:16:36.978736185 +0100
1921 CLEANFILES = *~ $(DEPS)
1923 ## Target information
1924 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1925 +GPNAMETARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1927 ifneq ($(top_builddir),$(top_srcdir))
1928 CPPFLAGS += -I$(top_builddir)/common
1931 check: all check-local
1933 -all-local: $(TARGET)
1934 +all-local: $(GPNAMETARGET)
1936 install-local: all-local
1937 # $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
1938 -# $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
1939 +# $(INSTALL) $(GPNAMETARGET) $(DESTDIR)$(sbindir)
1941 install-man: $(MAN_FILES)
1942 # $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
1946 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1947 - $(RMV) $(TARGET) $(OBJECTS)
1948 + $(RMV) $(GPNAMETARGET) $(OBJECTS)
1950 distclean-local: clean-local
1953 cd $(top_builddir) \
1954 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1956 -$(TARGET) : $(OBJECTS)
1957 +$(GPNAMETARGET) : $(OBJECTS)
1958 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
1961 diff -ruN icu/source/tools/genprops/Makefile.in icu.aros/source/tools/genprops/Makefile.in
1962 --- icu/source/tools/genprops/Makefile.in 2009-07-01 19:50:40.000000000 +0100
1963 +++ icu.aros/source/tools/genprops/Makefile.in 2013-04-09 21:16:37.018736731 +0100
1965 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
1967 ## Target information
1968 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1969 +GPROPSTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
1971 ifneq ($(top_builddir),$(top_srcdir))
1972 CPPFLAGS += -I$(top_builddir)/common
1975 check: all check-local
1977 -all-local: $(TARGET) $(MAN_FILES)
1978 +all-local: $(GPROPSTARGET) $(MAN_FILES)
1980 install-local: all-local install-man
1981 # $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
1982 -# $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
1983 +# $(INSTALL) $(GPROPSTARGET) $(DESTDIR)$(sbindir)
1985 install-man: $(MAN_FILES)
1986 # $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
1990 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
1991 - $(RMV) $(TARGET) $(OBJECTS)
1992 + $(RMV) $(GPROPSTARGET) $(OBJECTS)
1994 distclean-local: clean-local
1997 cd $(top_builddir) \
1998 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2000 -$(TARGET) : $(OBJECTS)
2001 +$(GPROPSTARGET) : $(OBJECTS)
2002 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
2005 diff -ruN icu/source/tools/genrb/Makefile.in icu.aros/source/tools/genrb/Makefile.in
2006 --- icu/source/tools/genrb/Makefile.in 2009-07-01 19:50:40.000000000 +0100
2007 +++ icu.aros/source/tools/genrb/Makefile.in 2013-04-09 21:16:37.064737360 +0100
2009 CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
2011 ## Target information
2012 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2013 +GRBTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2014 DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
2016 ifneq ($(top_builddir),$(top_srcdir))
2019 check: all check-local
2021 -all-local: $(TARGET) $(DERB) $(MAN_FILES)
2022 +all-local: $(GRBTARGET) $(DERB) $(MAN_FILES)
2024 install-local: all-local install-man
2025 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
2026 - $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
2027 + $(INSTALL) $(GRBTARGET) $(DESTDIR)$(bindir)
2028 $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
2030 install-man: $(MAN_FILES)
2034 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
2035 - $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ) $(GENDTJAR_TEMP)
2036 + $(RMV) $(GRBTARGET) $(DERB) $(OBJECTS) $(DERB_OBJ) $(GENDTJAR_TEMP)
2038 distclean-local: clean-local
2041 cd $(top_builddir) \
2042 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2044 -$(TARGET) : $(OBJECTS)
2045 +$(GRBTARGET) : $(OBJECTS)
2046 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
2049 diff -ruN icu/source/tools/gensprep/Makefile.in icu.aros/source/tools/gensprep/Makefile.in
2050 --- icu/source/tools/gensprep/Makefile.in 2009-07-01 19:50:38.000000000 +0100
2051 +++ icu.aros/source/tools/gensprep/Makefile.in 2013-04-09 21:16:37.109737975 +0100
2053 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
2055 ## Target information
2056 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2057 +GSPREPTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2059 ifneq ($(top_builddir),$(top_srcdir))
2060 CPPFLAGS += -I$(top_builddir)/common
2063 check: all check-local
2065 -all-local: $(TARGET) $(MAN_FILES)
2066 +all-local: $(GSPREPTARGET) $(MAN_FILES)
2068 install-local: all-local install-man
2069 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
2070 - $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
2071 + $(INSTALL) $(GSPREPTARGET) $(DESTDIR)$(sbindir)
2073 install-man: $(MAN_FILES)
2074 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
2078 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
2079 - $(RMV) $(TARGET) $(OBJECTS)
2080 + $(RMV) $(GSPREPTARGET) $(OBJECTS)
2082 distclean-local: clean-local
2085 cd $(top_builddir) \
2086 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2088 -$(TARGET) : $(OBJECTS)
2089 +$(GSPREPTARGET) : $(OBJECTS)
2090 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
2093 diff -ruN icu/source/tools/gentest/Makefile.in icu.aros/source/tools/gentest/Makefile.in
2094 --- icu/source/tools/gentest/Makefile.in 2009-07-01 19:50:42.000000000 +0100
2095 +++ icu.aros/source/tools/gentest/Makefile.in 2013-04-09 21:16:37.118738098 +0100
2097 CLEANFILES = *~ $(DEPS)
2099 ## Target information
2100 -TARGET = gentest$(EXEEXT)
2101 +GTESTTARGET = gentest$(EXEEXT)
2103 ifneq ($(top_builddir),$(top_srcdir))
2104 CPPFLAGS += -I$(top_builddir)/common
2107 check: all check-local
2109 -all-local: $(TARGET)
2110 +all-local: $(GTESTTARGET)
2112 install-local: all-local
2117 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
2118 - $(RMV) $(TARGET) $(OBJECTS)
2119 + $(RMV) $(GTESTTARGET) $(OBJECTS)
2121 distclean-local: clean-local
2124 cd $(top_builddir) \
2125 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2127 -$(TARGET) : $(OBJECTS)
2128 +$(GTESTTARGET) : $(OBJECTS)
2129 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
2132 diff -ruN icu/source/tools/genuca/Makefile.in icu.aros/source/tools/genuca/Makefile.in
2133 --- icu/source/tools/genuca/Makefile.in 2009-07-01 19:50:40.000000000 +0100
2134 +++ icu.aros/source/tools/genuca/Makefile.in 2013-04-09 21:16:37.138738371 +0100
2136 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
2138 ## Target information
2139 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2140 +GUCATARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2142 ifneq ($(top_builddir),$(top_srcdir))
2143 CPPFLAGS += -I$(top_builddir)/common
2146 check: all check-local
2148 -all-local: $(TARGET) $(MAN_FILES)
2149 +all-local: $(GUCATARGET) $(MAN_FILES)
2151 install-local: all-local install-man
2152 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
2153 - $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
2154 + $(INSTALL) $(GUCATARGET) $(DESTDIR)$(sbindir)
2156 install-man: $(MAN_FILES)
2157 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
2161 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
2162 - $(RMV) $(TARGET) $(OBJECTS)
2163 + $(RMV) $(GUCATARGET) $(OBJECTS)
2165 distclean-local: clean-local
2168 cd $(top_builddir) \
2169 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2171 -$(TARGET) : $(OBJECTS)
2172 +$(GUCATARGET) : $(OBJECTS)
2173 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
2176 diff -ruN icu/source/tools/icupkg/Makefile.in icu.aros/source/tools/icupkg/Makefile.in
2177 --- icu/source/tools/icupkg/Makefile.in 2009-07-01 19:50:38.000000000 +0100
2178 +++ icu.aros/source/tools/icupkg/Makefile.in 2013-04-09 21:16:37.146738481 +0100
2180 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
2182 ## Target information
2183 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2184 +ICUPKGTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2186 ifneq ($(top_builddir),$(top_srcdir))
2187 CPPFLAGS += -I$(top_builddir)/common
2190 check: all check-local
2192 -all-local: $(TARGET) $(MAN_FILES)
2193 +all-local: $(ICUPKGTARGET) $(MAN_FILES)
2195 install-local: all-local install-man
2196 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
2197 - $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
2198 + $(INSTALL) $(ICUPKGTARGET) $(DESTDIR)$(sbindir)
2200 install-man: $(MAN_FILES)
2201 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
2205 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
2206 - $(RMV) $(TARGET) $(OBJECTS)
2207 + $(RMV) $(ICUPKGTARGET) $(OBJECTS)
2209 distclean-local: clean-local
2212 cd $(top_builddir) \
2213 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2215 -$(TARGET) : $(OBJECTS)
2216 +$(ICUPKGTARGET) : $(OBJECTS)
2217 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
2220 diff -ruN icu/source/tools/icuswap/Makefile.in icu.aros/source/tools/icuswap/Makefile.in
2221 --- icu/source/tools/icuswap/Makefile.in 2009-07-01 19:50:42.000000000 +0100
2222 +++ icu.aros/source/tools/icuswap/Makefile.in 2013-04-09 21:16:37.153738576 +0100
2224 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
2226 ## Target information
2227 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2228 +ICUSWPTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2230 ifneq ($(top_builddir),$(top_srcdir))
2231 CPPFLAGS += -I$(top_builddir)/common
2234 check: all check-local
2236 -all-local: $(TARGET) $(MAN_FILES)
2237 +all-local: $(ICUSWPTARGET) $(MAN_FILES)
2239 install-local: all-local install-man
2240 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
2241 - $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
2242 + $(INSTALL) $(ICUSWPTARGET) $(DESTDIR)$(sbindir)
2244 install-man: $(MAN_FILES)
2245 # $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
2249 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
2250 - $(RMV) $(TARGET) $(OBJECTS)
2251 + $(RMV) $(ICUSWPTARGET) $(OBJECTS)
2253 distclean-local: clean-local
2256 cd $(top_builddir) \
2257 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2259 -$(TARGET) : $(OBJECTS)
2260 +$(ICUSWPTARGET) : $(OBJECTS)
2261 echo Note: icuswap is obsolete - use icupkg instead.
2262 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
2264 diff -ruN icu/source/tools/makeconv/Makefile.in icu.aros/source/tools/makeconv/Makefile.in
2265 --- icu/source/tools/makeconv/Makefile.in 2009-07-01 19:50:42.000000000 +0100
2266 +++ icu.aros/source/tools/makeconv/Makefile.in 2013-04-09 21:16:37.186739027 +0100
2268 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
2270 ## Target information
2271 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2272 +MAKECONVTARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2274 ifneq ($(top_builddir),$(top_srcdir))
2275 CPPFLAGS += -I$(top_builddir)/common
2278 check: all check-local
2280 -all-local: $(TARGET) $(MAN_FILES)
2281 +all-local: $(MAKECONVTARGET) $(MAN_FILES)
2283 install-local: all-local install-man
2284 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
2285 - $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
2286 + $(INSTALL) $(MAKECONVTARGET) $(DESTDIR)$(bindir)
2288 install-man: $(MAN_FILES)
2289 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
2293 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
2294 - $(RMV) $(TARGET) $(OBJECTS)
2295 + $(RMV) $(MAKECONVTARGET) $(OBJECTS)
2297 distclean-local: clean-local
2300 cd $(top_builddir) \
2301 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2303 -$(TARGET) : $(OBJECTS)
2304 +$(MAKECONVTARGET) : $(OBJECTS)
2305 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
2308 diff -ruN icu/source/tools/pkgdata/Makefile.in icu.aros/source/tools/pkgdata/Makefile.in
2309 --- icu/source/tools/pkgdata/Makefile.in 2009-07-01 19:50:42.000000000 +0100
2310 +++ icu.aros/source/tools/pkgdata/Makefile.in 2013-04-09 21:16:37.198739190 +0100
2314 ## Target information
2315 -TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2316 +PKGDATATARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
2318 ifneq ($(top_builddir),$(top_srcdir))
2319 CPPFLAGS += -I$(top_builddir)/common
2322 check: all check-local
2324 -all-local: $(TARGET) $(MAN_FILES)
2325 +all-local: $(PKGDATATARGET) $(MAN_FILES)
2327 install-local: all-local install-man
2328 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
2329 - $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
2330 + $(INSTALL) $(PKGDATATARGET) $(DESTDIR)$(bindir)
2332 install-man: $(MAN_FILES)
2333 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
2337 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
2338 - $(RMV) $(TARGET) $(OBJECTS)
2339 + $(RMV) $(PKGDATATARGET) $(OBJECTS)
2341 distclean-local: clean-local
2344 cd $(top_builddir) \
2345 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2347 -$(TARGET) : $(OBJECTS)
2348 +$(PKGDATATARGET) : $(OBJECTS)
2349 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
2352 diff -ruN icu/source/tools/pkgdata/pkgdata.cpp icu.aros/source/tools/pkgdata/pkgdata.cpp
2353 --- icu/source/tools/pkgdata/pkgdata.cpp 2009-07-01 19:50:42.000000000 +0100
2354 +++ icu.aros/source/tools/pkgdata/pkgdata.cpp 2013-04-09 21:17:15.024255833 +0100
2356 #define WINDOWS_WITH_MSVC
2359 -#if !defined(WINDOWS_WITH_MSVC) && !defined(U_LINUX)
2360 +//#if !defined(WINDOWS_WITH_MSVC) && !defined(U_LINUX)
2361 #define BUILD_DATA_WITHOUT_ASSEMBLY
2363 -#if defined(WINDOWS_WITH_MSVC) || defined(U_LINUX)
2364 -#define CAN_WRITE_OBJ_CODE
2367 +//#if defined(WINDOWS_WITH_MSVC) || defined(U_LINUX)
2368 +//#define CAN_WRITE_OBJ_CODE
2372 * When building the data library without assembly,
2373 @@ -115,9 +115,10 @@
2374 static int32_t pkg_createWithAssemblyCode(const char *targetDir, const char mode, const char *gencFilePath);
2375 static int32_t pkg_generateLibraryFile(const char *targetDir, const char mode, const char *objectFile, char *command = NULL);
2376 static int32_t pkg_archiveLibrary(const char *targetDir, const char *version, UBool reverseExt);
2377 -static void createFileNames(const char *version_major, const char *version, const char *libName, const UBool reverseExt);
2378 +static void createFileNames(const char mode, const char *version_major, const char *version, const char *libName, const UBool reverseExt);
2380 static int32_t pkg_getOptionsFromICUConfig(UOption *option);
2381 +static int runCommand(const char* command);
2385 @@ -461,6 +462,17 @@
2389 +static int runCommand(const char* command)
2391 + printf("pkgdata: %s\n", command);
2392 + int result = system(command);
2395 + printf("-- return status = %d\n", result);
2400 #define LN_CMD "ln -s"
2401 #define RM_CMD "rm -f"
2403 @@ -581,15 +593,14 @@
2406 /* Using the base libName and version number, generate the library file names. */
2407 - createFileNames(version_major, o->version, o->libName, reverseExt);
2408 + createFileNames(mode, version_major, o->version, o->libName, reverseExt);
2410 if (o->version != 0 && o->rebuild == FALSE) {
2411 /* Check to see if a previous built data library file exists and check if it is the latest. */
2412 - sprintf(checkLibFile, "%s%s", targetDir, libFileNames[LIB_FILE_VERSION_TMP]);
2413 + sprintf(checkLibFile, "%s%s", targetDir, libFileNames[LIB_FILE_VERSION]);
2414 if (T_FileStream_file_exists(checkLibFile)) {
2415 if (isFileModTimeLater(checkLibFile, o->srcDir, TRUE) && isFileModTimeLater(checkLibFile, o->options)) {
2416 if (o->install != NULL) {
2417 - uprv_strcpy(libFileNames[LIB_FILE_VERSION], libFileNames[LIB_FILE_VERSION_TMP]);
2418 result = pkg_installLibrary(o->install, targetDir);
2422 * Given the base libName and version numbers, generate the libary file names and store it in libFileNames.
2423 * Depending on the configuration, the library name may either end with version number or shared object suffix.
2425 -static void createFileNames(const char *version_major, const char *version, const char *libName, UBool reverseExt) {
2426 +static void createFileNames(const char mode, const char *version_major, const char *version, const char *libName, UBool reverseExt) {
2427 sprintf(libFileNames[LIB_FILE], "%s%s",
2428 pkgDataFlags[LIBPREFIX],
2430 @@ -704,6 +715,10 @@
2431 uprv_strcpy(libFileNames[LIB_FILE_VERSION_TMP], libFileNames[LIB_FILE_VERSION_MAJOR]);
2434 + if(mode == MODE_STATIC) {
2435 + sprintf(libFileNames[LIB_FILE_VERSION], "%s.%s", libFileNames[LIB_FILE], pkgDataFlags[A_EXT]);
2436 + libFileNames[LIB_FILE_VERSION_MAJOR][0]=0;
2440 /* Create the symbolic links for the final library file. */
2443 libFileNames[LIB_FILE_VERSION],
2444 libFileNames[LIB_FILE_VERSION_MAJOR]);
2445 - result = system(cmd);
2446 + result = runCommand(cmd);
2451 libFileNames[LIB_FILE_VERSION],
2452 libFileNames[LIB_FILE], pkgDataFlags[SO_EXT]);
2454 - result = system(cmd);
2455 + result = runCommand(cmd);
2460 installDir, PKGDATA_FILE_SEP_STRING, libFileNames[LIB_FILE_VERSION]
2463 - result = system(cmd);
2464 + result = runCommand(cmd);
2469 srcDir, PKGDATA_FILE_SEP_STRING, buffer,
2470 installDir, PKGDATA_FILE_SEP_STRING, buffer);
2472 - result = system(cmd);
2473 + result = runCommand(cmd);
2475 fprintf(stderr, "Failed to install data file with command: %s\n", cmd);
2480 sprintf(cmd, "%s %s %s %s", WIN_INSTALL_CMD, srcDir, installDir, WIN_INSTALL_CMD_FLAGS);
2481 - result = system(cmd);
2482 + result = runCommand(cmd);
2484 fprintf(stderr, "Failed to install data file with command: %s\n", cmd);
2486 @@ -849,7 +864,17 @@
2488 libFileNames[LIB_FILE_VERSION_TMP]);
2490 - result = system(cmd);
2491 + result = runCommand(cmd);
2492 + if (result != 0) {
2496 + sprintf(cmd, "%s %s%s",
2497 + pkgDataFlags[RANLIB],
2499 + libFileNames[LIB_FILE_VERSION]);
2501 + result = runCommand(cmd);
2507 libFileNames[LIB_FILE_VERSION_TMP]);
2509 - result = system(cmd);
2510 + result = runCommand(cmd);
2514 @@ -897,18 +922,30 @@
2516 if (mode == MODE_STATIC) {
2518 - sprintf(cmd, "QSH CMD('%s %s %s%s.%s %s')",
2519 + sprintf(cmd, "QSH CMD('%s %s %s%s %s')",
2521 - sprintf(cmd, "%s %s %s%s.%s %s",
2522 + sprintf(cmd, "%s %s %s%s %s",
2525 pkgDataFlags[ARFLAGS],
2527 - libFileNames[LIB_FILE],
2528 - pkgDataFlags[A_EXT],
2529 + libFileNames[LIB_FILE_VERSION],
2532 - result = system(cmd);
2533 + result = runCommand(cmd);
2537 + sprintf(cmd, "QSH CMD('%s %s%s.%s')",
2539 + sprintf(cmd, "%s %s%s",
2541 + pkgDataFlags[RANLIB],
2543 + libFileNames[LIB_FILE_VERSION]);
2545 + result = runCommand(cmd);
2547 } else /* if (mode == MODE_DLL) */ {
2549 sprintf(cmd, "%s%s%s %s -o %s%s %s %s%s %s %s",
2551 pkgDataFlags[BIR_FLAGS]);
2553 /* Generate the library file. */
2554 - result = system(cmd);
2555 + result = runCommand(cmd);
2563 - result = system(cmd);
2564 + result = runCommand(cmd);
2568 @@ -1043,7 +1080,7 @@
2572 - result = system(cmd);
2573 + result = runCommand(cmd);
2577 @@ -1094,7 +1131,7 @@
2578 sprintf(cmd, "cat %s >> %s", gencmnFile, icudtAll);
2581 - result = system(cmd);
2582 + result = runCommand(cmd);
2586 @@ -1110,14 +1147,13 @@
2587 pkgDataFlags[LIBFLAGS],
2590 - result = system(cmd);
2591 + result = runCommand(cmd);
2596 - sprintf(buffer, "%s %s",
2599 + strcat(buffer, " ");
2600 + strcat(buffer, tempObjectFile);
2604 @@ -1139,11 +1175,10 @@
2608 - result = system(cmd);
2609 + result = runCommand(cmd);
2611 - sprintf(buffer, "%s %s",
2614 + strcat(buffer, " ");
2615 + strcat(buffer, tempObjectFile);
2619 @@ -1222,7 +1257,7 @@
2623 - return system(cmd);
2624 + return runCommand(cmd);
2628 diff -ruN icu/source/tools/toolutil/Makefile.in icu.aros/source/tools/toolutil/Makefile.in
2629 --- icu/source/tools/toolutil/Makefile.in 2009-07-01 19:50:42.000000000 +0100
2630 +++ icu.aros/source/tools/toolutil/Makefile.in 2013-04-09 21:16:37.236739710 +0100
2632 TARGET_STUBNAME=$(TOOLUTIL_STUBNAME)
2634 ifneq ($(ENABLE_STATIC),)
2635 -TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
2636 +TOOLUTILTARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
2639 ifneq ($(ENABLE_SHARED),)
2641 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
2644 -ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
2645 +ALL_TARGETS = $(TOOLUTILTARGET) $(ALL_SO_TARGETS)
2647 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
2648 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
2650 install-library: all-local
2651 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
2652 ifneq ($(ENABLE_STATIC),)
2653 - $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
2654 + $(INSTALL-L) $(TOOLUTILTARGET) $(DESTDIR)$(libdir)
2656 ifneq ($(ENABLE_SHARED),)
2657 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
2659 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
2661 ifneq ($(ENABLE_STATIC),)
2662 -$(TARGET): $(STATIC_OBJECTS)
2663 +$(TOOLUTILTARGET): $(STATIC_OBJECTS)
2664 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^