2 # Wrapper makefile for ICU
3 # Copyright (C) 2003-2016 Apple Inc. All rights reserved.
5 # See http://www.gnu.org/manual/make/html_chapter/make_toc.html#SEC_Contents
6 # for documentation on makefiles. Most of this was culled from the ncurses makefile.
8 #################################
9 # Apple ICU repository tag and submission numbers
11 # The repository tag number consists of a main version and an optional branch version, as
15 # MM comes from the open-source ICU major version, and can range from 1 to 214 (the max is
16 # due to B&I limits on submission versions. As of March 2016 this is 57; it increases
17 # by 1 for each ICU major release (usually 2 / year). This corresponds to
18 # U_ICU_VERSION_MAJOR_NUM.
19 # m is a single digit specifying the open-source ICU minor version. This is 0 before final
20 # release (e.g. for pre-release milestones), becomes 1 for release candidate and final
21 # release, and may increase to 2 or a little more for occasional dot releases with
22 # maintenance fixes. This corresponds to U_ICU_VERSION_MINOR_NUM.
24 # Note that the ICU release may also utilize U_ICU_VERSION_PATCHLEVEL_NUM; however
25 # that is ignored for the Apple ICU tag and submission numbers, and any related code
26 # or data changes will bne distinguished by updating the Apple delta version AA below.
28 # AA is a 2-digit value specifying the version of the additional Apple deltas after
29 # integrating a major release. This is always 2 digits (zero padded) and ranges from
30 # 00 (the first release after integrating a new ICU version) to 99.
31 # B is an optional branch version, i.e. a branch from the mainline version specified by
32 # the MMmAA part. It can range from 1 to 99 and is NOT zero-padded.
34 # For Windows builds, the first 3 values of the 4-part FILEVERSION and PRODUCTVERSION
35 # are formed from U_ICU_VERSION_MAJOR_NUM, U_ICU_VERSION_MINOR_NUM, and
36 # U_ICU_VERSION_PATCHLEVEL_NUM; the 4th value is ICU_BUILD, formed from AA and B as
37 # ICU_BUILD = 100*AA + B.
39 # The B&I submission version always has 3 parts separated by '.':
42 # The first part MMmAA is the same as the repository tag number.
43 # If the repository tag has no branch version, the second part is 0, otherwise it is
44 # the same as the branch version (1..99).
45 # The third part is a single digit designating the submission train; since the installsrc
46 # target now submits different sources to different trains, we have to distinguish them.
47 # The values currently defined for T are
49 # 2 embedded trains (iOS, tvos, watchos) including simulator versions thereof
51 # 9 linux for Siri servers
52 # (additional train numbers for Apple platforms can be assigned from 3 up, additional
53 # train numbers for non-Apple platforms can be assigned from 7 down).
55 #################################
56 # Notes on building for AAS using Windows (7) + Visual Studio (2010) + Cygwin:
58 # Either this should be run indirectly from the VS command prompt via the
59 # BuildICUForAAS script or project, using the instructions there (which build
60 # both 32-bit and 64-bit), or it should be run from within Cygwin using the
61 # following instructions or equivalent (different steps for 32-bit or 64-bit):
63 # 1. From VS command prompt, run vcvarsall.bat to set various environment variables.
65 # > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
67 # > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64
69 # 2. Launch Cygwin, e.g.
70 # > C:\cygwin\Cygwin.bat
72 # 3. Within cygwin, cd to the top level of the ICU sources directory, e.g.
75 # 4. Adjust the PATH to put the appropriate VC tools directory first:
77 # $ export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/":$PATH
79 # $ export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/amd64/":$PATH
81 # 5. Run the ICU makefile
83 # make [install] WINDOWS=YES [ARCH64=NO] [DSTROOT=...]
85 # make [install] WINDOWS=YES ARCH64=YES [DSTROOT=...]
87 #################################
89 #################################
90 #################################
92 #################################
93 #################################
95 # ':=' denotes a "simply expanded" variable. It's value is
96 # set at the time of definition and it never recursively expands
97 # when used. This is in contrast to using '=' which denotes a
98 # recursively expanded variable.
100 # Sane defaults, which are typically overridden on the command line
101 #or by the environment
106 ifndef RC_ProjectSourceVersion
107 ifdef RC_PROJECTSOURCEVERSION
108 RC_ProjectSourceVersion=$(RC_PROJECTSOURCEVERSION)
111 $(info # RC_ARCHS=$(RC_ARCHS))
112 $(info # RC_ProjectName=$(RC_ProjectName))
113 $(info # RC_ProjectSourceVersion=$(RC_ProjectSourceVersion))
115 # Disallow $(WINDOWS) and $(LINUX) both YES
116 ifeq "$(WINDOWS)" "YES"
117 ifeq "$(LINUX)" "YES"
118 $(error WINDOWS and LINUX cannot both be YES)
122 # chicken and egg problem: we can't use cygpath until PATH & SHELL are set,
123 # but we have to convert VS100VCTOOLS_PATH in order to set PATH. So instead we
124 # convert using subst.
125 ifeq "$(WINDOWS)" "YES"
126 ifneq "$(VS100VCTOOLS_PATH)" ""
127 VS100VCTOOLS_CYGPATH:= /cygdrive/$(subst :/,/,$(subst \,/,$(VS100VCTOOLS_PATH)))
128 PATH:=$(VS100VCTOOLS_CYGPATH):/usr/local/bin/:/usr/bin/:$(PATH)
131 $(info # PATH=$(PATH))
133 # For some reason, cygwin bash (at least when run non-login) needs to use
134 # bash for pwd, echo etc. (but uname does not work, see below)
135 ifeq "$(WINDOWS)" "YES"
141 # if building for windows from batch script, convert Win-style paths
142 # for SRCROOT etc. to cygwin-style paths. Don't define them if not
144 ifeq "$(WINDOWS)" "YES"
145 ifneq "$(VS100VCTOOLS_PATH)" ""
147 SRCROOT:=$(shell /bin/cygpath -ua $(subst \,/,$(SRCROOT)))
150 OBJROOT:=$(shell /bin/cygpath -ua $(subst \,/,$(OBJROOT)))
153 DSTROOT:=$(shell /bin/cygpath -ua $(subst \,/,$(DSTROOT)))
156 SYMROOT:=$(shell /bin/cygpath -ua $(subst \,/,$(SYMROOT)))
162 SRCROOT:=$(shell pwd)
165 OBJROOT:=$(SRCROOT)/build
173 $(info # SRCROOT=$(SRCROOT))
174 $(info # OBJROOT=$(OBJROOT))
175 $(info # DSTROOT=$(DSTROOT))
177 # Disallow $(SRCROOT) == $(OBJROOT)
178 ifeq ($(OBJROOT), $(SRCROOT))
179 $(error SRCROOT same as OBJROOT)
182 ifeq "$(WINDOWS)" "YES"
183 ifeq "$(ARCH64)" "YES"
184 OBJROOT_CURRENT=$(OBJROOT)/obj64
185 SYMROOT_CURRENT=$(SYMROOT)/obj64
187 OBJROOT_CURRENT=$(OBJROOT)/obj32
188 SYMROOT_CURRENT=$(SYMROOT)/obj32
190 else ifeq "$(LINUX)" "YES"
191 ifeq "$(ARCH64)" "YES"
192 OBJROOT_CURRENT=$(OBJROOT)/obj64
193 SYMROOT_CURRENT=$(SYMROOT)/obj64
195 OBJROOT_CURRENT=$(OBJROOT)/obj32
196 SYMROOT_CURRENT=$(SYMROOT)/obj32
199 OBJROOT_CURRENT=$(OBJROOT)
200 SYMROOT_CURRENT=$(SYMROOT)
205 else ifeq "$(SDKROOT)" ""
208 SDKPATH:=$(shell xcodebuild -version -sdk $(SDKROOT) Path)
213 $(info # SDKROOT=$(SDKROOT))
214 $(info # SDKPATH=$(SDKPATH))
216 # An Apple submission version (passed in RC_ProjectSourceVersion for official builds) is
218 # where X is in range 0-214747, Y and Z are in range 0-99 (with no leading zeros).
219 # This corresponds to MMmAA.(0 | B).T where
220 # MM is U_ICU_VERSION_MAJOR_NUM
221 # m is U_ICU_VERSION_MINOR_NUM
222 # AA is the Apple delta version
223 # B is the Apple branch version (1 or 2 digits)
224 # T is the Apple train code for submissions.
225 # Note The value for the SourceVersion property in version.plists will be calculated as
226 # (X*10000 + Y*100 + Z).
227 # We want ICU_BUILD = 100*AA + B.
229 ifneq "$(RC_ProjectSourceVersion)" ""
230 ifeq "$(WINDOWS)" "YES"
231 ICU_BUILD_AA := $(shell echo $(RC_ProjectSourceVersion) | sed -r -e 's/([0-9]+)([0-9]{2})(\.([0-9])([0-9])?(\.([0-9]{1,2}))?)?/\2/')
232 ICU_BUILD_B1 := $(shell echo $(RC_ProjectSourceVersion) | sed -r -e 's/([0-9]+)([0-9]{2})(\.([0-9])([0-9])?(\.([0-9]{1,2}))?)?/\4/')
233 ICU_BUILD_B2 := $(shell echo $(RC_ProjectSourceVersion) | sed -r -e 's/([0-9]+)([0-9]{2})(\.([0-9])([0-9])?(\.([0-9]{1,2}))?)?/\5/')
234 ICU_TRAIN_CODE := $(shell echo $(RC_ProjectSourceVersion) | sed -r -e 's/([0-9]+)([0-9]{2})(\.([0-9])([0-9])?(\.([0-9]{1,2}))?)?/\7/')
236 ICU_BUILD_AA := $(shell echo $(RC_ProjectSourceVersion) | sed -E -e 's/([0-9]+)([0-9]{2})(\.([0-9])([0-9])?(\.([0-9]{1,2}))?)?/\2/')
237 ICU_BUILD_B1 := $(shell echo $(RC_ProjectSourceVersion) | sed -E -e 's/([0-9]+)([0-9]{2})(\.([0-9])([0-9])?(\.([0-9]{1,2}))?)?/\4/')
238 ICU_BUILD_B2 := $(shell echo $(RC_ProjectSourceVersion) | sed -E -e 's/([0-9]+)([0-9]{2})(\.([0-9])([0-9])?(\.([0-9]{1,2}))?)?/\5/')
239 ICU_TRAIN_CODE := $(shell echo $(RC_ProjectSourceVersion) | sed -E -e 's/([0-9]+)([0-9]{2})(\.([0-9])([0-9])?(\.([0-9]{1,2}))?)?/\7/')
241 ifeq "$(ICU_BUILD_AA)" ""
244 ICU_BUILD := $(subst a,$(ICU_BUILD_AA),abc)
245 ifeq "$(ICU_BUILD_B1)" ""
246 ICU_BUILD := $(subst b,0,$(ICU_BUILD))
247 ICU_BUILD := $(subst c,0,$(ICU_BUILD))
249 ifeq "$(ICU_BUILD_B2)" ""
250 ICU_BUILD := $(subst b,0,$(ICU_BUILD))
251 ICU_BUILD := $(subst c,$(ICU_BUILD_B1),$(ICU_BUILD))
253 ICU_BUILD := $(subst b,$(ICU_BUILD_B1),$(ICU_BUILD))
254 ICU_BUILD := $(subst c,$(ICU_BUILD_B2),$(ICU_BUILD))
258 ifeq "$(ICU_TRAIN_CODE)" ""
265 $(info # ICU_BUILD=$(ICU_BUILD))
266 $(info # ICU_TRAIN_CODE=$(ICU_TRAIN_CODE))
267 ifeq "$(ICU_BUILD)" "0"
270 DEFINE_BUILD_LEVEL =-DU_ICU_VERSION_BUILDLEVEL_NUM=$(ICU_BUILD)
273 # Determine build type. In some cases (e.g. running installsrc for submitproject)
274 # the only accurate information we may have about build type is from ICU_TRAIN_CODE,
275 # so give priority to that if nonzero.
276 # The values currently defined for ICU_TRAIN_CODE and corresponding ICU_BUILD_TYPE are
278 # 2 embedded trains (iOS, tvos, watchos) including simulator versions thereof.
279 # may have BUILD_TYPE=DEVICE,SIMULATOR,TOOL
281 # 9 linux for Siri servers
283 ifeq "$(WINDOWS)" "YES"
284 ICU_FOR_APPLE_PLATFORMS:=NO
285 else ifeq "$(ICU_TRAIN_CODE)" "8"
287 ICU_FOR_APPLE_PLATFORMS:=NO
288 else ifeq "$(LINUX)" "YES"
289 ICU_FOR_APPLE_PLATFORMS:=NO
290 else ifeq "$(ICU_TRAIN_CODE)" "9"
292 ICU_FOR_APPLE_PLATFORMS:=NO
294 ICU_FOR_APPLE_PLATFORMS:=YES
297 # For Apple builds, get more details from the SDK if available
298 # In TargetConditionals.h:
299 # TARGET_OS_IPHONE -is 1 iff generating code for firmware, devices, or simulator (all embedded trains)
301 # exactly one of the following is 1: TARGET_OS_SIMULATOR, TARGET_OS_EMBEDDED (i.e. device)
302 # exactly one of the following is 1: TARGET_OS_IOS, TARGET_OS_TV, TARGET_OS_WATCH
304 ifeq "$(ICU_FOR_APPLE_PLATFORMS)" "YES"
305 HOSTCC := $(shell xcrun --sdk macosx --find cc)
306 HOSTCXX := $(shell xcrun --sdk macosx --find c++)
307 HOSTSDKPATH := $(shell xcrun --sdk macosx --show-sdk-path)
308 HOSTISYSROOT = -isysroot $(HOSTSDKPATH)
309 ifeq "$(SDKPATH)" "/"
310 ISYSROOT:= -isysroot $(HOSTSDKPATH)
313 NM := $(shell xcrun --sdk macosx --find nm)
314 STRIPCMD := $(shell xcrun --sdk macosx --find strip)
315 ifeq "$(ICU_TRAIN_CODE)" "2"
316 export ICU_FOR_EMBEDDED_TRAINS:=YES
318 export ICU_FOR_EMBEDDED_TRAINS:=NO
321 ISYSROOT:= -isysroot $(SDKPATH)
322 CC := $(shell xcrun --sdk $(SDKPATH) --find cc)
323 CXX := $(shell xcrun --sdk $(SDKPATH) --find c++)
324 NM := $(shell xcrun --sdk $(SDKPATH) --find nm)
325 STRIPCMD := $(shell xcrun --sdk $(SDKPATH) --find strip)
326 EMBEDDEDTRAIN:=$(shell $(CXX) -E -dM -x c $(ISYSROOT) -include TargetConditionals.h /dev/null | fgrep define' 'TARGET_OS_IPHONE | cut -d' ' -f3)
327 ifeq "$(EMBEDDEDTRAIN)" "1"
328 export ICU_FOR_EMBEDDED_TRAINS:=YES
330 export ICU_FOR_EMBEDDED_TRAINS:=NO
333 SIMULATOROS:=$(shell $(CXX) -E -dM -x c $(ISYSROOT) -include TargetConditionals.h /dev/null | fgrep define' 'TARGET_OS_SIMULATOR | cut -d' ' -f3)
334 TVOS:=$(shell $(CXX) -E -dM -x c $(ISYSROOT) -include TargetConditionals.h /dev/null | fgrep define' 'TARGET_OS_TV | cut -d' ' -f3)
335 WATCHOS:=$(shell $(CXX) -E -dM -x c $(ISYSROOT) -include TargetConditionals.h /dev/null | fgrep define' 'TARGET_OS_WATCH | cut -d' ' -f3)
336 ifeq "$(ICU_FOR_EMBEDDED_TRAINS)" "YES"
337 ifeq "$(SIMULATOROS)" "1"
342 else ifeq "$(RC_ProjectName)" "tzTools"
348 ifeq "$(LINUX)" "YES"
353 export ICU_FOR_EMBEDDED_TRAINS:=NO
359 CROSS_BUILD:=$(ICU_FOR_EMBEDDED_TRAINS)
360 CROSSHOST_OBJROOT=$(OBJROOT)/crossbuildhost
362 $(info # ICU_FOR_APPLE_PLATFORMS=$(ICU_FOR_APPLE_PLATFORMS))
363 $(info # HOSTCC=$(HOSTCC))
364 $(info # HOSTCXX=$(HOSTCXX))
365 $(info # HOSTISYSROOT=$(HOSTISYSROOT))
368 $(info # ISYSROOT=$(ISYSROOT))
369 $(info # ICU_FOR_EMBEDDED_TRAINS=$(ICU_FOR_EMBEDDED_TRAINS))
370 $(info # CROSS_BUILD=$(CROSS_BUILD))
371 $(info # BUILD_TYPE=$(BUILD_TYPE))
373 # Disallow cross builds on Windows/Linux for now
374 # (since those builds are not out-of-source as required for cross-builds)
375 ifeq "$(CROSS_BUILD)" "YES"
376 ifeq "$(WINDOWS)" "YES"
377 $(error Cross-builds currently not allowed on Windows)
379 ifeq "$(LINUX)" "YES"
380 $(error Cross-builds currently not allowed on Linux)
384 MAC_OS_X_VERSION_MIN_REQUIRED=101000
385 OSX_HOST_VERSION_MIN_STRING=10.10
387 ifndef IPHONEOS_DEPLOYMENT_TARGET
388 IOS_VERSION_TARGET_STRING=10.0
389 else ifeq "$(IPHONEOS_DEPLOYMENT_TARGET)" ""
390 IOS_VERSION_TARGET_STRING=10.0
392 IOS_VERSION_TARGET_STRING=$(IPHONEOS_DEPLOYMENT_TARGET)
395 ifndef MACOSX_DEPLOYMENT_TARGET
396 OSX_VERSION_TARGET_STRING=10.12
397 else ifeq "$(MACOSX_DEPLOYMENT_TARGET)" ""
398 OSX_VERSION_TARGET_STRING=10.12
400 OSX_VERSION_TARGET_STRING=$(MACOSX_DEPLOYMENT_TARGET)
403 ifndef WATCHOS_DEPLOYMENT_TARGET
404 WATCHOS_VERSION_TARGET_STRING=3.0
405 else ifeq "$(WATCHOS_DEPLOYMENT_TARGET)" ""
406 WATCHOS_VERSION_TARGET_STRING=3.0
408 WATCHOS_VERSION_TARGET_STRING=$(WATCHOS_DEPLOYMENT_TARGET)
411 ifndef TVOS_DEPLOYMENT_TARGET
412 TVOS_VERSION_TARGET_STRING=10.0
413 else ifeq "$(TVOS_DEPLOYMENT_TARGET)" ""
414 TVOS_VERSION_TARGET_STRING=10.0
416 TVOS_VERSION_TARGET_STRING=$(TVOS_DEPLOYMENT_TARGET)
419 $(info # IOS_VERSION_TARGET_STRING=$(IOS_VERSION_TARGET_STRING))
420 $(info # OSX_VERSION_TARGET_STRING=$(OSX_VERSION_TARGET_STRING))
421 $(info # WATCHOS_VERSION_TARGET_STRING=$(WATCHOS_VERSION_TARGET_STRING))
422 $(info # TVOS_VERSION_TARGET_STRING=$(TVOS_VERSION_TARGET_STRING))
424 ifeq "$(BUILD_TYPE)" "DEVICE"
425 ifeq "$(WATCHOS)" "1"
426 ICU_TARGET_VERSION := -mwatchos-version-min=$(WATCHOS_VERSION_TARGET_STRING)
427 else ifeq "$(TVOS)" "1"
428 ICU_TARGET_VERSION := -mtvos-version-min=$(TVOS_VERSION_TARGET_STRING)
430 ICU_TARGET_VERSION := -miphoneos-version-min=$(IOS_VERSION_TARGET_STRING)
432 else ifeq "$(BUILD_TYPE)" "SIMULATOR"
433 ifeq "$(WATCHOS)" "1"
434 ICU_TARGET_VERSION := -mwatchos-simulator-version-min=$(WATCHOS_VERSION_TARGET_STRING)
435 else ifeq "$(TVOS)" "1"
436 ICU_TARGET_VERSION := -mtvos-simulator-version-min=$(TVOS_VERSION_TARGET_STRING)
438 ICU_TARGET_VERSION := -mios-simulator-version-min=$(IOS_VERSION_TARGET_STRING)
441 ICU_TARGET_VERSION :=
443 $(info # ICU_TARGET_VERSION=$(ICU_TARGET_VERSION))
446 DISABLE_DRAFT:=$(ICU_FOR_EMBEDDED_TRAINS)
447 ifeq "$(DISABLE_DRAFT)" "YES"
448 DRAFT_FLAG=--disable-draft
453 # For some reason, under cygwin, bash uname is not found, and
454 # sh uname does not produce a result with -p or -m. So we just
456 ifeq "$(WINDOWS)" "YES"
457 UNAME_PROCESSOR:=i386
459 UNAME_PROCESSOR:=$(shell uname -p)
462 ifneq "$(RC_ARCHS)" ""
463 INSTALLHDRS_ARCH=-arch $(shell echo $(RC_ARCHS) | cut -d' ' -f1)
467 $(info # INSTALLHDRS_ARCH=$(INSTALLHDRS_ARCH))
468 $(info # buildhost=$(UNAME_PROCESSOR))
471 # FORCEENDIAN below is to override silly configure behavior in which if
472 # __APPLE_CC__ is defined and archs are in { ppc, ppc64, i386, x86_64 }
473 # then it assumes a universal build (ac_cv_c_bigendian=universal) with
474 # data file initially built big-endian.
476 ifeq "$(CROSS_BUILD)" "YES"
477 RC_ARCHS_FIRST=$(shell echo $(RC_ARCHS) | cut -d' ' -f1)
478 TARGET_SPEC=$(RC_ARCHS_FIRST)-apple-darwin15.0.0
479 ENV_CONFIGURE_ARCHS=-arch $(RC_ARCHS_FIRST)
480 ICUPKGTOOLIBS="$(CROSSHOST_OBJROOT)/lib:$(CROSSHOST_OBJROOT)/stubdata"
481 ICUPKGTOOL=$(CROSSHOST_OBJROOT)/bin/icupkg
482 ifeq "$(filter-out i386 x86_64,$(RC_ARCHS))" ""
483 FORCEENDIAN= ac_cv_c_bigendian=no
487 else ifeq "$(LINUX)" "YES"
488 TARGET_SPEC=$(UNAME_PROCESSOR)-unknown-linux-gnu
490 ICUPKGTOOLIBS="$(OBJROOT_CURRENT)/lib:$(OBJROOT_CURRENT)/stubdata"
491 ICUPKGTOOL=$(OBJROOT_CURRENT)/bin/icupkg
494 TARGET_SPEC=$(UNAME_PROCESSOR)-apple-darwin15.0.0
496 ICUPKGTOOLIBS="$(OBJROOT_CURRENT)/lib:$(OBJROOT_CURRENT)/stubdata"
497 ICUPKGTOOL=$(OBJROOT_CURRENT)/bin/icupkg
500 $(info # TARGET_SPEC=$(TARGET_SPEC))
501 $(info # ENV_CONFIGURE_ARCHS=$(ENV_CONFIGURE_ARCHS))
503 ICU_TARGET_VERSION_FOR_TZ_EXTRA :=
504 ifeq "$(BUILD_TYPE)" "SIMULATOR"
505 ICU_TARGET_VERSION_FOR_TZ_EXTRA := -mmacosx-version-min=$(OSX_HOST_VERSION_MIN_STRING)
508 ifeq "$(BUILD_TYPE)" "DEVICE"
514 # even for a crossbuild host build, we want to use the target's latest tzdata as pointed to by latest_tzdata.tar.gz
515 ifeq "$(shell test -d $(SDKPATH)/usr/local/share/tz && echo YES )" "YES"
516 export TZDATA:=$(SDKPATH)/usr/local/share/tz/$(shell readlink $(SDKPATH)/usr/local/share/tz/latest_tzdata.tar.gz)
518 $(info # TZDATA=$(TZDATA))
520 APPLE_INTERNAL_DIR=/AppleInternal
521 DSYMTOOL := /usr/bin/dsymutil
524 #################################
526 #################################
528 # For installhdrs. Not every compiled module has an associated header. Normally,
529 # ICU installs headers as a sub-target of the install target. But since we only want
530 # certain libraries to install (and since we link all of our own .o modules), we need
531 # invoke the headers targets ourselves. This may be problematic because there isn't a
532 # good way to dist-clean afterwards...we need to do explicit dist-cleans, especially if
533 # install the extra libraries.
536 # EXTRA_HDRS = ./extra/ustdio/ ./layout/
537 ifeq "$(ICU_FOR_EMBEDDED_TRAINS)" "YES"
538 HDR_MAKE_SUBDIR = ./common/ ./i18n/ $(EXTRA_HDRS)
539 else ifeq "$(WINDOWS)" "YES"
540 HDR_MAKE_SUBDIR = ./common/ ./i18n/ $(EXTRA_HDRS)
542 HDR_MAKE_SUBDIR = ./common/ ./i18n/ ./io/ $(EXTRA_HDRS)
544 ifeq "$(WINDOWS)" "YES"
545 PRIVATE_HDR_PREFIX=$(APPLE_INTERNAL_DIR)
546 else ifeq "$(ICU_FOR_EMBEDDED_TRAINS)" "YES"
548 PRIVATE_HDR_PREFIX=/usr/local
550 PRIVATE_HDR_PREFIX=/usr/local
553 #################################
555 #################################
557 # For install. We currently don't install EXTRA_LIBS. We also don't install the data
558 # directly into the ICU library. It is now installed at /usr/share/icu/*.dat. Thus we
559 # don't use DATA_OBJ anymore. This could change if we decide to move the data back into
560 # the icucore monolithic library.
562 INSTALL = /usr/bin/install
563 COMMON_OBJ = ./common/*.o
564 I18N_OBJ = ./i18n/*.o
566 STUB_DATA_OBJ = ./stubdata/*.o
568 #EXTRA_LIBS =./extra/ ./layout/ ./tools/ctestfw/ ./tools/toolutil/
569 #DATA_OBJ = ./data/out/build/*.o
570 ifeq "$(ICU_FOR_EMBEDDED_TRAINS)" "YES"
571 DYLIB_OBJS=$(COMMON_OBJ) $(I18N_OBJ) $(STUB_DATA_OBJ)
572 else ifeq "$(WINDOWS)" "YES"
573 DYLIB_OBJS=$(COMMON_OBJ) ./common/common.res $(I18N_OBJ) $(STUB_DATA_OBJ)
575 DYLIB_OBJS=$(COMMON_OBJ) $(I18N_OBJ) $(IO_OBJ) $(STUB_DATA_OBJ)
578 #################################
580 #################################
582 # For installsrc (B&I)
583 # Note that installsrc is run on the system from which ICU is submitted, which
584 # may be a different environment than the one for a which a build is targeted.
586 INSTALLSRC_VARFILES=./ICU_embedded.order \
587 ./minimalapis.txt ./minimalapisTest.c ./minimalpatchconfig.txt ./windowspatchconfig.txt ./patchconfig.txt ./crosshostpatchconfig.txt \
588 BuildICUForAAS_script.bat EXPORT.APPLE
590 #################################
592 #################################
594 #We need to clean after installing.
598 # Some directories aren't cleaned recursively. Clean them manually...
599 MANUAL_CLEAN_TOOLS = ./tools/dumpce
600 MANUAL_CLEAN_EXTRA = ./extra/scrptrun ./samples/layout ./extra/ustdio ./extra
601 MANUAL_CLEAN_TEST = ./test/collperf ./test/iotest ./test/letest ./test/thaitest ./test/threadtest ./test/testmap ./test
602 MANUAL_CLEAN_SAMPLE = ./samples/layout ./samples
604 CLEAN_SUBDIR = ./stubdata ./common ./i18n ./io ./layout ./layoutex ./data ./tools ./$(MANUAL_CLEAN_TOOLS) $(MANUAL_CLEAN_EXTRA) $(MANUAL_CLEAN_TEST) $(MANUAL_CLEAN_SAMPLE)
606 #################################
608 #################################
610 ifeq "$(WINDOWS)" "YES"
611 ifeq "$(ARCH64)" "YES"
612 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples --disable-icuio \
613 --with-data-packaging=library --prefix=$(PRIVATE_HDR_PREFIX) --with-library-bits=64 \
616 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples --disable-icuio \
617 --with-data-packaging=library --prefix=$(PRIVATE_HDR_PREFIX) --with-library-bits=32 \
620 else ifeq "$(LINUX)" "YES"
621 ifeq "$(ARCH64)" "YES"
622 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples \
623 --with-data-packaging=archive --prefix=$(PRIVATE_HDR_PREFIX) --with-library-bits=64 \
626 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples \
627 --with-data-packaging=archive --prefix=$(PRIVATE_HDR_PREFIX) --with-library-bits=32 \
630 else ifeq "$(ICU_FOR_EMBEDDED_TRAINS)" "YES"
631 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples \
632 --with-data-packaging=archive --prefix=$(PRIVATE_HDR_PREFIX) \
635 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples \
636 --with-data-packaging=archive --prefix=$(PRIVATE_HDR_PREFIX) \
640 #################################
642 #################################
644 # This may or may not be an appropriate name for the icu dylib. This naming scheme is
645 # an attempt to follow the icu convention in naming the dylib and then having symbolic
646 # links of easier to remember library names point it it. *UPDATE* the version and
647 # sub-version variables as needed. The Core version should be 'A' until the core
648 # version changes it's API...that is a new version isn't backwards compatible.
649 # The ICU version/subversion should reflect the actual ICU version.
656 ifeq "$(WINDOWS)" "YES"
658 ifeq "$(ARCH64)" "YES"
659 winprogdir = /Program\ Files/Common\ Files/Apple/Apple\ Application\ Support/
660 winintlibdir = /AppleInternal/lib64/
662 winprogdir = /Program\ Files\ \(x86\)/Common\ Files/Apple/Apple\ Application\ Support/
663 winintlibdir = /AppleInternal/lib32/
666 else ifeq "$(LINUX)" "YES"
668 ifeq "$(ARCH64)" "YES"
682 DYLIB = lib$(LIB_NAME).$(DYLIB_SUFF)
683 DYLIB_DEBUG = lib$(LIB_NAME)_debug.$(DYLIB_SUFF)
684 DYLIB_PROFILE = lib$(LIB_NAME)_profile.$(DYLIB_SUFF)
685 ifeq "$(WINDOWS)" "YES"
686 INSTALLED_DYLIB = $(LIB_NAME).$(DYLIB_SUFF)
687 INSTALLED_DYLIB_DEBUG = $(LIB_NAME)_debug.$(DYLIB_SUFF)
688 INSTALLED_DYLIB_PROFILE = $(LIB_NAME)_profile.$(DYLIB_SUFF)
689 else ifeq "$(LINUX)" "YES"
690 INSTALLED_DYLIB = lib$(LIB_NAME).$(DYLIB_SUFF)
691 INSTALLED_DYLIB_DEBUG = lib$(LIB_NAME)_debug.$(DYLIB_SUFF)
692 INSTALLED_DYLIB_PROFILE = lib$(LIB_NAME)_profile.$(DYLIB_SUFF)
694 INSTALLED_DYLIB = lib$(LIB_NAME).$(CORE_VERS).$(DYLIB_SUFF)
695 INSTALLED_DYLIB_DEBUG = lib$(LIB_NAME).$(CORE_VERS)_debug.$(DYLIB_SUFF)
696 INSTALLED_DYLIB_PROFILE = lib$(LIB_NAME).$(CORE_VERS)_profile.$(DYLIB_SUFF)
699 INSTALLED_DYLIB_icu = INSTALLED_DYLIB
700 INSTALLED_DYLIB_debug = INSTALLED_DYLIB_DEBUG
701 INSTALLED_DYLIB_profile = INSTALLED_DYLIB_PROFILE
703 DYLIB_debug = DYLIB_DEBUG
704 DYLIB_profile = DYLIB_PROFILE
706 #################################
708 #################################
710 OPEN_SOURCE_VERSIONS_DIR=/usr/local/OpenSourceVersions/
711 OPEN_SOURCE_LICENSES_DIR=/usr/local/OpenSourceLicenses/
713 B_DATA_FILE=icudt$(ICU_VERS)b.dat
714 L_DATA_FILE=icudt$(ICU_VERS)l.dat
715 DATA_BUILD_SUBDIR= data/out
716 DATA_INSTALL_DIR=/usr/share/icu/
718 # DATA_LOOKUP_DIR is what the target ICU_DATA_DIR gets set to in CFLAGS, CXXFLAGS;
719 # DATA_LOOKUP_DIR_BUILDHOST is what any crossbuild host ICU_DATA_DIR gets set to.
720 # Formerly we had DATA_LOOKUP_DIR=/var/db/icu/ for embedded non-simulator builds
721 # and DATA_LOOKUP_DIR=/usr/share/icu/ for everything else. Now all systems look
722 # in the same place for the main data file:
723 DATA_LOOKUP_DIR=/usr/share/icu/
724 DATA_LOOKUP_DIR_BUILDHOST=/usr/share/icu/
726 # Timezone data file(s)
727 # ICU will look for /var/db/icutz/icutz44l.dat
728 # If directory or file is not present, the timesone data in
729 # current data file e.g. /usr/share/icu/icudt56l.dat will be used.
730 # Currently we are not conditionalizing the definition of
731 # TZDATA_LOOKUP_DIR as in
732 # ifeq "$(BUILD_TYPE)" "DEVICE"
733 # TZDATA_LOOKUP_DIR = /var/db/icutz
736 # since the code stats the path for TZDATA_LOOKUP_DIR and does
737 # not try to use it if it does not exist. We could define it
738 # as TZDATA_LOOKUP_DIR = /usr/share/icutz when not needed...
739 # TZDATA_LOOKUP_DIR is passed to compiler as U_TIMEZONE_FILES_DIR
740 # TZDATA_PACKAGE is passed to compiler as U_TIMEZONE_PACKAGE
741 TZDATA_LOOKUP_DIR = /var/db/icutz
742 TZDATA_PACKAGE = icutz44l
743 TZDATA_FORMAT_STRING = "44l"
744 TZDATA_FORMAT_FILE = icutzformat.txt
747 # Name of runtime environment variable to get the prefix path for DATA_LOOKUP_DIR
748 # Currently we are only using this for LINUX, should also use for iOS simulator
749 ifeq "$(LINUX)" "YES"
750 DATA_DIR_PREFIX_ENV_VAR=APPLE_FRAMEWORKS_ROOT
752 DATA_DIR_PREFIX_ENV_VAR=
755 #################################
757 #################################
759 localtooldir=/usr/local/bin/
760 locallibdir=/usr/local/lib/
763 INFOTOOL_OBJS = ./tools/icuinfo/icuinfo.o ./tools/toolutil/udbgutil.o ./tools/toolutil/uoptions.o
765 TOOLSLIB_NAME = icutu
766 TOOLS_DYLIB = libicutu.$(DYLIB_SUFF)
767 TOOLS_DYLIB_OBJS = ./tools/toolutil/*.o
768 # The following version enables the tz toools to be used on systems with ICU 55 or later
769 TOOLS_DYLIB_OBJS_FORSDK = ./tools/toolutil/collationinfo.o ./tools/toolutil/filestrm.o \
770 ./tools/toolutil/package.o ./tools/toolutil/pkg_icu.o ./tools/toolutil/pkgitems.o \
771 ./tools/toolutil/swapimpl.o ./tools/toolutil/toolutil.o ./tools/toolutil/ucbuf.o \
772 ./tools/toolutil/unewdata.o ./tools/toolutil/uoptions.o ./tools/toolutil/uparse.o \
773 $(COMMON_OBJ) $(STUB_DATA_OBJ)
776 ZICTOOL_OBJS = ./tools/tzcode/zic.o ./tools/tzcode/localtime.o ./tools/tzcode/asctime.o ./tools/tzcode/scheck.o ./tools/tzcode/ialloc.o
779 RESTOOL_OBJS = ./tools/genrb/errmsg.o ./tools/genrb/genrb.o ./tools/genrb/parse.o ./tools/genrb/read.o ./tools/genrb/reslist.o ./tools/genrb/ustr.o \
780 ./tools/genrb/rbutil.o ./tools/genrb/wrtjava.o ./tools/genrb/rle.o ./tools/genrb/wrtxml.o ./tools/genrb/prscmnts.o
782 # note there is also a symbol ICUPKGTOOL which refers to the one used
783 # internally which is linked against the separate uc and i18n libs.
785 PKGTOOL_OBJS = ./tools/icupkg/icupkg.o
788 TZ2ICUTOOL_OBJS = ./tools/tzcode/tz2icu.o
790 ICUZDUMPTOOL = icuzdump
791 ifeq "$(ICU_FOR_EMBEDDED_TRAINS)" "YES"
792 ICUZDUMPTOOL_OBJS = ./tools/tzcode/icuzdump.o $(IO_OBJ)
794 ICUZDUMPTOOL_OBJS = ./tools/tzcode/icuzdump.o
797 #################################
799 # e.g. supplementalData.xml, per <rdar://problem/13426014>
800 # These are like internal headers in that they are only installed for
801 # (other) projects to build against, not needed at runtime.
802 # Therefore install during installhdrs.
803 #################################
805 CLDRFILESDIR=/usr/local/share/cldr
807 #################################
808 # Environment variables
809 #################################
811 # $(RC_ARCHS:%=-arch %) is a substitution reference. It denotes, in this case,
812 # for every value <val> in RC_ARCHS, replace it with "-arch <val>". Substitution
813 # references have the form $(var:a=b). We can insert the strip and prebinding commands
814 # into CFLAGS (and CXXFLAGS). This controls a lot of the external variables so we don't
815 # need to directly modify the ICU files (like for CFLAGS, etc).
817 LIBOVERRIDES=LIBICUDT="-L$(OBJROOT_CURRENT) -l$(LIB_NAME)" \
818 LIBICUUC="-L$(OBJROOT_CURRENT) -l$(LIB_NAME)" \
819 LIBICUI18N="-L$(OBJROOT_CURRENT) -l$(LIB_NAME)"
821 # For normal Windows builds set the ENV= options here; for debug Windows builds set the ENV_DEBUG=
822 # options here and also the update the LINK.EXE lines in the TARGETS section below.
823 ifeq "$(WINDOWS)" "YES"
824 ifeq "$(ARCH64)" "YES"
825 ENV= CFLAGS="/O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES" \
826 CXXFLAGS="/O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc /Zc:wchar_t" \
827 LDFLAGS="/NXCOMPAT /DYNAMICBASE /DEBUG /OPT:REF"
829 ENV= CFLAGS="/O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES" \
830 CXXFLAGS="/O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc /Zc:wchar_t" \
831 LDFLAGS="/NXCOMPAT /SAFESEH /DYNAMICBASE /DEBUG /OPT:REF"
833 ENV_CONFIGURE= CPPFLAGS="-DU_DISABLE_RENAMING=1 $(DEFINE_BUILD_LEVEL)" \
834 CFLAGS="/O2 /Ob2 /MD /GF /GS /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES" \
835 CXXFLAGS="/O2 /Ob2 /MD /GF /GS /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc /Zc:wchar_t"
836 ENV_DEBUG= CFLAGS="/O2 /Ob2 /MDd /GF /GS /Zi /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES" \
837 CXXFLAGS="/O2 /Ob2 /MDd /GF /GS /Zi /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc" \
838 LDFLAGS="/DEBUG /DYNAMICBASE"
840 else ifeq "$(LINUX)" "YES"
841 ifeq "$(ARCH64)" "YES"
842 ENV_CONFIGURE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
843 CPPFLAGS="-DU_DISABLE_RENAMING=1 $(DEFINE_BUILD_LEVEL)" \
846 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m64 -g -Os -fno-exceptions -fvisibility=hidden" \
847 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m64 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \
849 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib64"
851 ENV= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
854 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m64 -g -Os -fno-exceptions -fvisibility=hidden" \
855 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m64 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \
857 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib64"
859 ENV_DEBUG= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
862 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m64 -O0 -gfull -fno-exceptions -fvisibility=hidden" \
863 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m64 -O0 -gfull -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \
865 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib64"
867 ENV_PROFILE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
870 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m64 -g -Os -pg -fno-exceptions -fvisibility=hidden" \
871 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m64 -g -Os -pg -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \
873 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib64"
875 ENV_CONFIGURE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
876 CPPFLAGS="-DU_DISABLE_RENAMING=1 $(DEFINE_BUILD_LEVEL)" \
879 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m32 -g -Os -fno-exceptions -fvisibility=hidden" \
880 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m32 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \
882 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib"
884 ENV= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
887 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m32 -g -Os -fno-exceptions -fvisibility=hidden" \
888 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m32 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \
890 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib"
892 ENV_DEBUG= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
895 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m32 -O0 -gfull -fno-exceptions -fvisibility=hidden" \
896 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m32 -O0 -gfull -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \
898 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib"
900 ENV_PROFILE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
903 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m32 -g -Os -pg -fno-exceptions -fvisibility=hidden" \
904 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"$(DATA_DIR_PREFIX_ENV_VAR)\\\"\" -m32 -g -Os -pg -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \
906 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib"
910 ENV_CONFIGURE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
911 CPPFLAGS="$(DEFINE_BUILD_LEVEL) -DSTD_INSPIRED -DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) $(ISYSROOT) $(ENV_CONFIGURE_ARCHS)" \
914 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_FILES_DIR=\"\\\"$(TZDATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_PACKAGE=\"\\\"$(TZDATA_PACKAGE)\\\"\" $(ENV_CONFIGURE_ARCHS) $(ICU_TARGET_VERSION) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden $(ISYSROOT) $(THUMB_FLAG)" \
915 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_FILES_DIR=\"\\\"$(TZDATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_PACKAGE=\"\\\"$(TZDATA_PACKAGE)\\\"\" $(ENV_CONFIGURE_ARCHS) $(ICU_TARGET_VERSION) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG)" \
916 RC_ARCHS="$(RC_ARCHS)" $(FORCEENDIAN)\
918 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib"
920 ENV= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
923 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_FILES_DIR=\"\\\"$(TZDATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_PACKAGE=\"\\\"$(TZDATA_PACKAGE)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden $(ISYSROOT) $(THUMB_FLAG)" \
924 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_FILES_DIR=\"\\\"$(TZDATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_PACKAGE=\"\\\"$(TZDATA_PACKAGE)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG)" \
925 RC_ARCHS="$(RC_ARCHS)" \
927 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib"
929 ENV_DEBUG= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
932 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_FILES_DIR=\"\\\"$(TZDATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_PACKAGE=\"\\\"$(TZDATA_PACKAGE)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -O0 -gfull -Wglobal-constructors -fno-exceptions -fvisibility=hidden $(ISYSROOT) $(THUMB_FLAG)" \
933 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_FILES_DIR=\"\\\"$(TZDATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_PACKAGE=\"\\\"$(TZDATA_PACKAGE)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -O0 -gfull -Wglobal-constructors -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG)" \
934 RC_ARCHS="$(RC_ARCHS)" \
936 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib"
938 ENV_PROFILE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
941 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_FILES_DIR=\"\\\"$(TZDATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_PACKAGE=\"\\\"$(TZDATA_PACKAGE)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -pg -Wglobal-constructors -fno-exceptions -fvisibility=hidden $(ISYSROOT) $(THUMB_FLAG)" \
942 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_FILES_DIR=\"\\\"$(TZDATA_LOOKUP_DIR)\\\"\" -DU_TIMEZONE_PACKAGE=\"\\\"$(TZDATA_PACKAGE)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -pg -Wglobal-constructors -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG)" \
943 RC_ARCHS="$(RC_ARCHS)" \
945 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib"
947 ENV_CONFIGURE_BUILDHOST= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
948 CPPFLAGS="$(DEFINE_BUILD_LEVEL) -DSTD_INSPIRED -DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) $(HOSTISYSROOT)" \
951 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR_BUILDHOST)\\\"\" -DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) -mmacosx-version-min=$(OSX_HOST_VERSION_MIN_STRING) $(HOSTISYSROOT) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden" \
952 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR_BUILDHOST)\\\"\" -DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) -mmacosx-version-min=$(OSX_HOST_VERSION_MIN_STRING) $(HOSTISYSROOT) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \
954 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib"
956 ENV_BUILDHOST= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
959 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR_BUILDHOST)\\\"\" -DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) -mmacosx-version-min=$(OSX_HOST_VERSION_MIN_STRING) $(HOSTISYSROOT) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden" \
960 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR_BUILDHOST)\\\"\" -DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) -mmacosx-version-min=$(OSX_HOST_VERSION_MIN_STRING) $(HOSTISYSROOT) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \
962 DYLD_LIBRARY_PATH="$(DSTROOT)/usr/local/lib"
967 ENV_debug = ENV_DEBUG
968 ENV_profile = ENV_PROFILE
970 ifeq "$(BUILD_TYPE)" "DEVICE"
971 ORDERFILE=$(SDKPATH)/AppleInternal/OrderFiles/libicucore.order
972 else ifeq "$(BUILD_TYPE)" "SIMULATOR"
973 ORDERFILE=$(SRCROOT)/ICU_embedded.order
975 ORDERFILE=/usr/local/lib/OrderFiles/libicucore.order
977 ifeq "$(shell test -f $(ORDERFILE) && echo YES )" "YES"
978 SECTORDER_FLAGS=-sectorder __TEXT __text $(ORDERFILE)
984 #################################
985 #################################
987 #################################
988 #################################
990 .PHONY : icu check installsrc installhdrs installhdrsint clean install debug debug-install \
991 crossbuildhost icutztoolsforsdk
994 # Rule for adjusting sources for different train types.
995 # Assumes current directory is icuSources to be patched.
997 # $(SRCROOT)/icuSources for installsrc, or
998 # $(OBJROOT_CURRENT) if sources are copied for e.g. a local make.
1000 # The various patchconfig files should assume the current directory is icuSources.
1002 # Note that if sources have been installed by installsrc (only run as part of buildit
1003 # or B&I builds), then
1004 # $(SRCROOT)/.git is not present, and
1005 # ADJUST_SOURCES has already have been run.
1006 # Otherwise, if we are doing a local build (e.g. make check, make install), then
1007 # $(SRCROOT)/.git is present, and
1008 # ADJUST_SOURCES has not been run (run it after copying sources to OBJROOT_CURRENT)
1012 if test "$(ICU_FOR_EMBEDDED_TRAINS)" = "YES"; then \
1013 patch -p1 <$(SRCROOT)/minimalpatchconfig.txt; \
1014 elif test "$(WINDOWS)" = "YES"; then \
1015 patch -p1 <$(SRCROOT)/windowspatchconfig.txt; \
1017 patch -p1 <$(SRCROOT)/patchconfig.txt; \
1019 if test "$(WINDOWS)" = "YES"; then \
1020 mv data/unidata/base_unidata/*.txt data/unidata/; \
1021 mv data/unidata/norm2/base_norm2/*.txt data/unidata/norm2/; \
1022 mv data/in/base_in/*.nrm data/in/; \
1023 mv data/in/base_in/*.icu data/in/; \
1024 elif test "$(LINUX)" = "YES"; then \
1025 mv data/unidata/base_unidata/*.txt data/unidata/; \
1026 mv data/unidata/norm2/base_norm2/*.txt data/unidata/norm2/; \
1027 mv data/in/base_in/*.nrm data/in/; \
1028 mv data/in/base_in/*.icu data/in/; \
1032 icu debug profile : $(OBJROOT_CURRENT)/Makefile
1033 echo "# make for target";
1034 (cd $(OBJROOT_CURRENT); \
1035 $(MAKE) $($(ENV_$@)); \
1036 if test "$(WINDOWS)" = "YES"; then \
1038 rc.exe /folibicuuc.res $(CPPFLAGS) -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../i18n \
1039 "-DDEFAULT_ICU_PLUGINS=\"/AppleInternal/lib/icu\" " -DU_LOCAL_SERVICE_HOOK=1 libicuuc.rc; \
1042 rc.exe /folibicuin.res $(CPPFLAGS) -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../common libicuin.rc; \
1044 if test "$@" = "debug"; then \
1046 LINK.EXE /subsystem:console /DLL /nologo /base:"0x4a800000" /DYNAMICBASE /DEBUG \
1047 /IMPLIB:../lib/libicuuc_$@.lib /out:../lib/libicuuc_$@.dll \
1048 *.o libicuuc.res ../stubdata/icudt.lib advapi32.lib; \
1051 LINK.EXE /subsystem:console /DLL /nologo /base:"0x4a900000" /DYNAMICBASE /DEBUG \
1052 /IMPLIB:../lib/libicuin_$@.lib /out:../lib/libicuin_$@.dll \
1053 *.o libicuin.res ../lib/libicuuc_$@.lib ../stubdata/icudt.lib advapi32.lib; \
1057 rm -f ../lib/libicuuc.dll.manifest; \
1058 if test "$(ARCH64)" = "YES"; then \
1059 LINK.EXE /DLL /NXCOMPAT /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
1060 /IMPLIB:../lib/libicuuc.lib /out:../lib/libicuuc.dll \
1061 *.o libicuuc.res ../stubdata/icudt.lib advapi32.lib; \
1063 LINK.EXE /DLL /NXCOMPAT /SAFESEH /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
1064 /IMPLIB:../lib/libicuuc.lib /out:../lib/libicuuc.dll \
1065 *.o libicuuc.res ../stubdata/icudt.lib advapi32.lib; \
1067 mt.exe -nologo -manifest ../lib/libicuuc.dll.manifest -outputresource:"../lib/libicuuc.dll;2"; \
1070 rm -f ../lib/libicuin.dll.manifest; \
1071 if test "$(ARCH64)" = "YES"; then \
1072 LINK.EXE /DLL /NXCOMPAT /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
1073 /IMPLIB:../lib/libicuin.lib /out:../lib/libicuin.dll \
1074 *.o libicuin.res ../lib/libicuuc.lib ../stubdata/icudt.lib advapi32.lib; \
1076 LINK.EXE /DLL /NXCOMPAT /SAFESEH /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
1077 /IMPLIB:../lib/libicuin.lib /out:../lib/libicuin.dll \
1078 *.o libicuin.res ../lib/libicuuc.lib ../stubdata/icudt.lib advapi32.lib; \
1080 mt.exe -nologo -manifest ../lib/libicuin.dll.manifest -outputresource:"../lib/libicuin.dll;2"; \
1082 if test "$(ARCH64)" != "YES"; then \
1083 mkdir -p lib/shim; \
1085 rm -f icuuc40shim.o; \
1086 rm -f ../lib/icuuc40.dll.manifest; \
1087 cl -DU_DISABLE_RENAMING=1 -DU_ICU_VERSION_BUILDLEVEL_NUM=$(ICU_BUILD) \
1088 -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../i18n \
1089 -DU_LOCAL_SERVICE_HOOK=1 -DWIN32 -DU_COMMON_IMPLEMENTATION \
1090 /O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc /Zc:wchar_t \
1091 /c /Foicuuc40shim.o icuuc40shim.cpp; \
1092 rc.exe /foicuuc40shim.res $(CPPFLAGS) -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../i18n \
1093 "-DDEFAULT_ICU_PLUGINS=\"/AppleInternal/lib/icu\" " -DU_LOCAL_SERVICE_HOOK=1 icuuc40shim.rc; \
1094 LINK.EXE /DLL /NXCOMPAT /SAFESEH /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
1095 /IMPLIB:../lib/shim/icuuc.lib /out:../lib/icuuc40.dll \
1096 icuuc40shim.o icuuc40shim.res ../lib/libicuuc.lib ../stubdata/icudt.lib advapi32.lib; \
1097 mt.exe -nologo -manifest ../lib/icuuc40.dll.manifest -outputresource:"../lib/icuuc40.dll;2"; \
1100 rm -f icuin40shim.o; \
1101 rm -f ../lib/icuin40.dll.manifest; \
1102 cl -DU_DISABLE_RENAMING=1 -DU_ICU_VERSION_BUILDLEVEL_NUM=$(ICU_BUILD) \
1103 -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../common \
1104 -DU_LOCAL_SERVICE_HOOK=1 -DWIN32 -DU_I18N_IMPLEMENTATION \
1105 /O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc /Zc:wchar_t \
1106 /c /Foicuin40shim.o icuin40shim.cpp; \
1107 rc.exe /foicuin40shim.res $(CPPFLAGS) -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../common \
1108 "-DDEFAULT_ICU_PLUGINS=\"/AppleInternal/lib/icu\" " -DU_LOCAL_SERVICE_HOOK=1 icuin40shim.rc; \
1109 LINK.EXE /DLL /NXCOMPAT /SAFESEH /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
1110 /IMPLIB:../lib/shim/icuin.lib /out:../lib/icuin40.dll \
1111 icuin40shim.o icuin40shim.res ../lib/libicuin.lib ../stubdata/icudt.lib advapi32.lib; \
1112 mt.exe -nologo -manifest ../lib/icuin40.dll.manifest -outputresource:"../lib/icuin40.dll;2"; \
1117 if test "$(LINUX)" = "YES"; then \
1118 if test "$(ARCH64)" = "YES"; then \
1119 $($(ENV_$@)) $(CXX) \
1120 -m64 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden \
1121 $(CXXFLAGS) $(LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname,$($(INSTALLED_DYLIB_$@)) -Wl,-L/usr/lib64/ -ldl \
1122 -o ./$($(INSTALLED_DYLIB_$@)) $(DYLIB_OBJS); \
1124 $($(ENV_$@)) $(CXX) \
1125 -m32 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden \
1126 $(CXXFLAGS) $(LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname,$($(INSTALLED_DYLIB_$@)) -ldl \
1127 -o ./$($(INSTALLED_DYLIB_$@)) $(DYLIB_OBJS); \
1130 tmpfile=`mktemp -t weakexternal.XXXXXX` || exit 1; \
1131 $(NM) -m $(RC_ARCHS:%=-arch %) $(DYLIB_OBJS) | fgrep "weak external" | fgrep -v "undefined" | sed -e 's/.*weak external[^_]*//' | sort | uniq | cat >$$tmpfile; \
1132 $($(ENV_$@)) $(CXX) -current_version $(ICU_VERS).$(ICU_SUBVERS) -compatibility_version 1 -dynamiclib -dynamic \
1133 $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG) \
1134 $(CXXFLAGS) $(LDFLAGS) -single_module $(SECTORDER_FLAGS) -unexported_symbols_list $$tmpfile -dead_strip \
1135 -install_name $(libdir)$($(INSTALLED_DYLIB_$@)) -o ./$($(INSTALLED_DYLIB_$@)) $(DYLIB_OBJS); \
1136 if test "$@" = "icu"; then \
1137 ln -fs $(INSTALLED_DYLIB) $(DYLIB); \
1138 echo '# build' $(INFOTOOL) 'linked against' $(LIB_NAME) ; \
1139 $($(ENV_$@)) $(CXX) $(RC_ARCHS:%=-arch %) -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG) \
1140 $(LDFLAGS) -dead_strip -o ./$(INFOTOOL) $(INFOTOOL_OBJS) -L./ -l$(LIB_NAME) ; \
1141 echo '# build' $(TOOLS_DYLIB) 'linked against' $(LIB_NAME) ; \
1142 $($(ENV_$@)) $(CXX) -current_version $(ICU_VERS).$(ICU_SUBVERS) -compatibility_version 1 -dynamiclib -dynamic \
1143 $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG) \
1144 $(CXXFLAGS) $(LDFLAGS) -single_module \
1145 -install_name $(locallibdir)$(TOOLS_DYLIB) -o ./$(TOOLS_DYLIB) $(TOOLS_DYLIB_OBJS) -L./ -l$(LIB_NAME) ; \
1146 echo '# build' $(ICUZDUMPTOOL) 'linked against' $(TOOLSLIB_NAME) $(LIB_NAME) ; \
1147 $($(ENV_$@)) $(LINK.cc) $(RC_ARCHS:%=-arch %) -g -Os $(ISYSROOT) $(THUMB_FLAG) --std=c++0x \
1148 -dead_strip -o ./$(ICUZDUMPTOOL) $(ICUZDUMPTOOL_OBJS) -L./ -l$(TOOLSLIB_NAME) -l$(LIB_NAME); \
1151 if test -f ./$(DATA_BUILD_SUBDIR)/$(B_DATA_FILE); then \
1152 ln -fs ./$(DATA_BUILD_SUBDIR)/$(B_DATA_FILE); \
1154 if test -f ./$(DATA_BUILD_SUBDIR)/$(L_DATA_FILE); then \
1155 ln -fs ./$(DATA_BUILD_SUBDIR)/$(L_DATA_FILE); \
1157 DYLD_LIBRARY_PATH=$(ICUPKGTOOLIBS) \
1158 $(ICUPKGTOOL) -tl ./$(DATA_BUILD_SUBDIR)/$(B_DATA_FILE) $(L_DATA_FILE); \
1160 printf $(TZDATA_FORMAT_STRING) > $(TZDATA_FORMAT_FILE); \
1164 crossbuildhost : $(CROSSHOST_OBJROOT)/Makefile
1165 echo "# make for crossbuild host";
1166 (cd $(CROSSHOST_OBJROOT); \
1167 $(MAKE) $($(ENV_BUILDHOST)); \
1170 # For the install-icutztoolsforsdk target, SDKROOT will always be an OSX SDK root.
1171 # we need to patch using crosshostpatchconfig.txt as for $(CROSSHOST_OBJROOT)/Makefile
1172 icutztoolsforsdk : $(OBJROOT_CURRENT)/Makefile
1173 echo "# make icutztoolsforsdk";
1174 (cd $(OBJROOT_CURRENT); \
1175 if test ! -d $(SRCROOT)/.git ; then patch -p1 <$(SRCROOT)/crosshostpatchconfig.txt; fi; \
1176 $(MAKE) $($(ENV)); \
1177 echo '# build' $(TOOLS_DYLIB) 'linked against' $(LIB_NAME) ; \
1178 $($(ENV)) $(CXX) -current_version $(ICU_VERS).$(ICU_SUBVERS) -compatibility_version 1 -dynamiclib -dynamic \
1179 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) \
1180 $(CXXFLAGS) $(LDFLAGS) -single_module \
1181 -install_name $(locallibdir)$(TOOLS_DYLIB) -o ./$(TOOLS_DYLIB) $(TOOLS_DYLIB_OBJS_FORSDK) -L./ -l$(LIB_NAME) ; \
1182 echo '# build' $(ZICTOOL) 'linked against' $(TOOLSLIB_NAME) ; \
1183 $($(ENV_BUILDHOST)) $(CXX) -g -Os -isysroot $(HOSTSDKPATH) \
1184 $(LDFLAGS) -dead_strip -o ./$(ZICTOOL) $(ZICTOOL_OBJS) -L./ -l$(TOOLSLIB_NAME) ; \
1185 echo '# build' $(RESTOOL) 'linked against' $(TOOLSLIB_NAME) $(LIB_NAME) ; \
1186 $($(ENV_BUILDHOST)) $(CXX) -g -Os -isysroot $(HOSTSDKPATH) \
1187 $(LDFLAGS) -dead_strip -o ./$(RESTOOL) $(RESTOOL_OBJS) -L./ -l$(TOOLSLIB_NAME) -l$(LIB_NAME) ; \
1188 echo '# build' $(PKGTOOL) 'linked against' $(TOOLSLIB_NAME) ; \
1189 $($(ENV_BUILDHOST)) $(CXX) -g -Os -isysroot $(HOSTSDKPATH) \
1190 $(LDFLAGS) -dead_strip -o ./$(PKGTOOL) $(PKGTOOL_OBJS) -L./ -l$(TOOLSLIB_NAME) ; \
1191 echo '# build' $(TZ2ICUTOOL) 'linked against' $(TOOLSLIB_NAME) ; \
1192 $($(ENV_BUILDHOST)) $(CXX) -g -Os -isysroot $(HOSTSDKPATH) \
1193 $(LDFLAGS) -dead_strip -o ./$(TZ2ICUTOOL) $(TZ2ICUTOOL_OBJS) -L./ -l$(TOOLSLIB_NAME) ; \
1197 ifneq "$(CROSS_BUILD)" "YES"
1198 (cd $(OBJROOT_CURRENT); \
1199 ICU_DATA=$(OBJROOT_CURRENT) $(MAKE) $(ENV) check; \
1202 $(warning check not supported for cross-build)
1206 ifneq "$(CROSS_BUILD)" "YES"
1207 (cd $(OBJROOT_CURRENT); \
1208 ICU_DATA=$(OBJROOT_CURRENT) $(MAKE) $(ENV_DEBUG) check; \
1211 $(warning check not supported for cross-build)
1215 (cd $(OBJROOT_CURRENT)/samples; \
1216 $(MAKE) $(ENV_DEBUG) $(LIBOVERRIDES); \
1220 (cd $(OBJROOT_CURRENT)/extra; \
1221 $(MAKE) $(ENV_DEBUG) $(LIBOVERRIDES); \
1224 ifneq "$(CROSS_BUILD)" "YES"
1225 $(OBJROOT_CURRENT)/Makefile :
1227 $(OBJROOT_CURRENT)/Makefile : crossbuildhost
1229 if test ! -d $(OBJROOT_CURRENT); then \
1230 mkdir -p $(OBJROOT_CURRENT); \
1232 cp -Rpf $(SRCROOT)/icuSources/* $(OBJROOT_CURRENT)/;
1233 (cd $(OBJROOT_CURRENT); \
1234 if test -d $(SRCROOT)/.git ; then $(ADJUST_SOURCES); fi; \
1235 if test "$(WINDOWS)" = "YES"; then \
1236 echo "# configure for target"; \
1237 $(ENV_CONFIGURE) ./runConfigureICU Cygwin/MSVC $(CONFIG_FLAGS); \
1238 elif test "$(LINUX)" = "YES"; then \
1239 echo "# configure for target"; \
1240 $(ENV_CONFIGURE) ./runConfigureICU Linux $(CONFIG_FLAGS); \
1241 elif test "$(CROSS_BUILD)" = "YES"; then \
1242 echo "# configure for crossbuild target"; \
1243 $(ENV_CONFIGURE) ./configure --host=$(TARGET_SPEC) --with-cross-build=$(CROSSHOST_OBJROOT) $(CONFIG_FLAGS); \
1245 echo "# configure for non-crossbuild target"; \
1246 $(ENV_CONFIGURE) ./runConfigureICU MacOSX $(CONFIG_FLAGS); \
1250 # for the tools that build the data file, cannot set UDATA_DEFAULT_ACCESS = UDATA_ONLY_PACKAGES
1251 # as minimalpatchconfig.txt does; need different patches for the host build. Thus
1252 # we have to use crosshostpatchconfig.txt to undo the udata.h changes that would have
1253 # been made for ICU_FOR_EMBEDDED_TRAINS builds.
1254 $(CROSSHOST_OBJROOT)/Makefile :
1255 if test ! -d $(CROSSHOST_OBJROOT); then \
1256 mkdir -p $(CROSSHOST_OBJROOT); \
1258 cp -Rpf $(SRCROOT)/icuSources/* $(CROSSHOST_OBJROOT);
1259 (cd $(CROSSHOST_OBJROOT); \
1260 if test -d $(SRCROOT)/.git; then $(ADJUST_SOURCES); fi; \
1261 if test "$(ICU_FOR_EMBEDDED_TRAINS)" = "YES"; then \
1262 patch -p1 <$(SRCROOT)/crosshostpatchconfig.txt; \
1264 echo "# configure for crossbuild host"; \
1265 $(ENV_CONFIGURE_BUILDHOST) ./runConfigureICU MacOSX $(CONFIG_FLAGS); \
1268 #################################
1270 #################################
1272 # Since our sources are in icuSources (ignore the ICU subdirectory for now), we wish to
1273 # copy them to somewhere else. We tar it to stdout, cd to the appropriate directory, and
1274 # untar from stdin. We then look for all the CVS directories and remove them. We may have
1275 # to remove the .cvsignore files also.
1278 if test ! -d $(SRCROOT); then mkdir $(SRCROOT); fi;
1279 if test -d $(SRCROOT)/icuSources ; then rm -rf $(SRCROOT)/icuSources; fi;
1280 tar cf - ./makefile ./ICU.plist ./LICENSE ./icuSources ./cldrFiles $(INSTALLSRC_VARFILES) | (cd $(SRCROOT) ; tar xfp -); \
1281 (cd $(SRCROOT)/icuSources; $(ADJUST_SOURCES) );
1283 # This works. Just not for ~ in the DSTROOT. We run configure first (in case it hasn't
1284 # been already). Then we make the install-headers target on specific makefiles (since
1285 # not every subdirectory/sub-component has a install-headers target).
1287 # installhdrs should be no-op for BUILD_TYPE=TOOL
1288 ifeq "$(BUILD_TYPE)" "TOOL"
1291 installhdrs : installhdrsint
1294 MKINSTALLDIRS=$(SHELL) $(SRCROOT)/icuSources/mkinstalldirs
1295 INSTALL_DATA=${INSTALL} -m 644
1297 ifeq "$(RC_XBS)" "YES"
1300 installhdrsint : $(OBJROOT_CURRENT)/Makefile
1302 (if test -d $(SRCROOT)/.git; then cd $(OBJROOT_CURRENT); else cd $(SRCROOT)/icuSources/; fi; \
1303 $(MKINSTALLDIRS) $(DSTROOT)/$(PRIVATE_HDR_PREFIX)/include/unicode/; \
1304 for subdir in $(HDR_MAKE_SUBDIR); do \
1305 echo "# Subdir $$subdir"; \
1306 (cd $$subdir/unicode; \
1308 echo "$(INSTALL_DATA) $$i $(DSTROOT)/$(PRIVATE_HDR_PREFIX)/include/unicode/"; \
1309 $(INSTALL_DATA) $$i $(DSTROOT)/$(PRIVATE_HDR_PREFIX)/include/unicode/ || exit; \
1313 if test "$(ICU_FOR_EMBEDDED_TRAINS)" = "YES"; then \
1314 if test ! -d $(DSTROOT)/$(HDR_PREFIX)/include/unicode/; then \
1315 $(INSTALL) -d -m 0755 $(DSTROOT)/$(HDR_PREFIX)/include/unicode/; \
1317 if test -d $(DSTROOT)/$(PRIVATE_HDR_PREFIX)/include/unicode/; then \
1318 (cd $(DSTROOT)/$(PRIVATE_HDR_PREFIX)/include/unicode; \
1320 if fgrep -q -x $$i $(SRCROOT)/minimalapis.txt ; then \
1321 mv $$i $(DSTROOT)/$(HDR_PREFIX)/include/unicode ; \
1324 if test ! "$(RC_XBS)" = "YES"; then \
1325 echo "# Not building for XBS, so running minimal test"; \
1326 $(CC) $(SRCROOT)/minimalapisTest.c $(INSTALLHDRS_ARCH) $(ISYSROOT) -nostdinc \
1327 -I $(DSTROOT)/$(HDR_PREFIX)/include/ -I $(SDKPATH)/usr/include/ -E > /dev/null ; \
1330 if test ! -d $(DSTROOT)/$(CLDRFILESDIR)/; then \
1331 $(INSTALL) -d -m 0755 $(DSTROOT)/$(CLDRFILESDIR)/; \
1333 $(INSTALL) -b -m 0644 $(SRCROOT)/cldrFiles/supplementalData.xml $(DSTROOT)/$(CLDRFILESDIR)/supplementalData.xml; \
1337 # We run configure and run make first. This generates the .o files. We then link them
1338 # all up together into libicucore. Then we put it into its install location, create
1339 # symbolic links, and then strip the main dylib. Then install the remaining libraries.
1340 # We cleanup the sources folder.
1342 install : installhdrsint icu
1343 if test "$(WINDOWS)" = "YES"; then \
1344 if test ! -d $(DSTROOT)/$(winprogdir)/; then \
1345 $(INSTALL) -d -m 0755 $(DSTROOT)/$(winprogdir)/; \
1347 if test ! -d $(DSTROOT)/$(winintlibdir)/; then \
1348 $(INSTALL) -d -m 0755 $(DSTROOT)/$(winintlibdir)/; \
1350 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuuc.lib $(DSTROOT)/$(winintlibdir)libicuuc.lib; \
1351 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuuc.pdb $(DSTROOT)/$(winprogdir)libicuuc.pdb; \
1352 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/libicuuc.dll $(DSTROOT)/$(winprogdir)libicuuc.dll; \
1353 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuin.lib $(DSTROOT)/$(winintlibdir)libicuin.lib; \
1354 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuin.pdb $(DSTROOT)/$(winprogdir)libicuin.pdb; \
1355 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/libicuin.dll $(DSTROOT)/$(winprogdir)libicuin.dll; \
1356 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/icudt$(ICU_VERS).dll $(DSTROOT)/$(winprogdir)icudt$(ICU_VERS).dll; \
1357 if test "$(ARCH64)" != "YES"; then \
1358 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/shim/icuuc.lib $(DSTROOT)/$(winintlibdir)icuuc.lib; \
1359 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/icuuc40.pdb $(DSTROOT)/$(winprogdir)icuuc40.pdb; \
1360 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/icuuc40.dll $(DSTROOT)/$(winprogdir)icuuc40.dll; \
1361 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/shim/icuin.lib $(DSTROOT)/$(winintlibdir)icuin.lib; \
1362 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/icuin40.pdb $(DSTROOT)/$(winprogdir)icuin40.pdb; \
1363 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/icuin40.dll $(DSTROOT)/$(winprogdir)icuin40.dll; \
1366 if test ! -d $(DSTROOT)/$(libdir)/; then \
1367 $(INSTALL) -d -m 0755 $(DSTROOT)/$(libdir)/; \
1369 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(INSTALLED_DYLIB) $(DSTROOT)/$(libdir)$(INSTALLED_DYLIB); \
1370 if test "$(LINUX)" = "YES"; then \
1371 cp $(OBJROOT_CURRENT)/$(INSTALLED_DYLIB) $(SYMROOT_CURRENT)/$(INSTALLED_DYLIB); \
1372 strip -x -S $(DSTROOT)/$(libdir)$(INSTALLED_DYLIB); \
1374 (cd $(DSTROOT)/$(libdir); \
1375 ln -fs $(INSTALLED_DYLIB) $(DYLIB)); \
1376 cp $(OBJROOT_CURRENT)/$(INSTALLED_DYLIB) $(SYMROOT_CURRENT)/$(INSTALLED_DYLIB); \
1377 $(DSYMTOOL) -o $(SYMROOT_CURRENT)/$(INSTALLED_DYLIB)$(DSYMSUFFIX) $(SYMROOT_CURRENT)/$(INSTALLED_DYLIB); \
1378 $(STRIPCMD) -x -u -r -S $(DSTROOT)/$(libdir)$(INSTALLED_DYLIB); \
1380 for subdir in $(EXTRA_LIBS); do \
1381 (cd $(OBJROOT_CURRENT)/$$subdir; $(MAKE) -e DESTDIR=$(DSTROOT)/ $(ENV) install-library;) \
1383 if test ! -d $(DSTROOT)/$(DATA_INSTALL_DIR)/; then \
1384 $(INSTALL) -d -m 0755 $(DSTROOT)/$(DATA_INSTALL_DIR)/; \
1386 if test -f $(OBJROOT_CURRENT)/$(L_DATA_FILE); then \
1387 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/$(L_DATA_FILE) $(DSTROOT)/$(DATA_INSTALL_DIR)$(L_DATA_FILE); \
1389 if test -f $(OBJROOT_CURRENT)/$(TZDATA_FORMAT_FILE); then \
1390 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/$(TZDATA_FORMAT_FILE) $(DSTROOT)/$(DATA_INSTALL_DIR)$(TZDATA_FORMAT_FILE); \
1392 if test ! -d $(DSTROOT)/$(OPEN_SOURCE_VERSIONS_DIR)/; then \
1393 $(INSTALL) -d -m 0755 $(DSTROOT)/$(OPEN_SOURCE_VERSIONS_DIR)/; \
1395 $(INSTALL) -b -m 0644 $(SRCROOT)/ICU.plist $(DSTROOT)/$(OPEN_SOURCE_VERSIONS_DIR)ICU.plist; \
1396 if test ! -d $(DSTROOT)/$(OPEN_SOURCE_LICENSES_DIR)/; then \
1397 $(INSTALL) -d -m 0755 $(DSTROOT)/$(OPEN_SOURCE_LICENSES_DIR)/; \
1399 $(INSTALL) -b -m 0644 $(SRCROOT)/LICENSE $(DSTROOT)/$(OPEN_SOURCE_LICENSES_DIR)ICU.txt; \
1400 if test "$(LINUX)" != "YES"; then \
1401 if test ! -d $(DSTROOT)/$(localtooldir)/; then \
1402 $(INSTALL) -d -m 0755 $(DSTROOT)/$(localtooldir)/; \
1404 if test -f $(OBJROOT_CURRENT)/$(INFOTOOL); then \
1405 echo '# install' $(INFOTOOL) 'to' $(DSTROOT)/$(localtooldir)$(INFOTOOL) ; \
1406 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(INFOTOOL) $(DSTROOT)/$(localtooldir)$(INFOTOOL); \
1407 cp $(OBJROOT_CURRENT)/$(INFOTOOL) $(SYMROOT_CURRENT)/$(INFOTOOL); \
1408 $(DSYMTOOL) -o $(SYMROOT_CURRENT)/$(INFOTOOL)$(DSYMSUFFIX) $(SYMROOT_CURRENT)/$(INFOTOOL); \
1410 if test ! -d $(DSTROOT)/$(locallibdir)/; then \
1411 $(INSTALL) -d -m 0755 $(DSTROOT)/$(locallibdir)/; \
1413 if test -f $(OBJROOT_CURRENT)/$(TOOLS_DYLIB); then \
1414 echo '# install' $(TOOLS_DYLIB) 'to' $(DSTROOT)/$(locallibdir)$(TOOLS_DYLIB) ; \
1415 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(TOOLS_DYLIB) $(DSTROOT)/$(locallibdir)$(TOOLS_DYLIB); \
1416 cp $(OBJROOT_CURRENT)/$(TOOLS_DYLIB) $(SYMROOT_CURRENT)/$(TOOLS_DYLIB); \
1417 $(DSYMTOOL) -o $(SYMROOT_CURRENT)/$(TOOLS_DYLIB)$(DSYMSUFFIX) $(SYMROOT_CURRENT)/$(TOOLS_DYLIB); \
1419 if test -f $(OBJROOT_CURRENT)/$(ICUZDUMPTOOL); then \
1420 echo '# install' $(ICUZDUMPTOOL) 'to' $(DSTROOT)/$(localtooldir)$(ICUZDUMPTOOL) ; \
1421 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(ICUZDUMPTOOL) $(DSTROOT)/$(localtooldir)$(ICUZDUMPTOOL); \
1422 cp $(OBJROOT_CURRENT)/$(ICUZDUMPTOOL) $(SYMROOT_CURRENT)/$(ICUZDUMPTOOL); \
1423 $(DSYMTOOL) -o $(SYMROOT_CURRENT)/$(ICUZDUMPTOOL)$(DSYMSUFFIX) $(SYMROOT_CURRENT)/$(ICUZDUMPTOOL); \
1428 DEPEND_install_debug = debug
1429 DEPEND_install_profile = profile
1432 install_debug install_profile : $$(DEPEND_$$@)
1433 if test "$(WINDOWS)" = "YES"; then \
1434 if test ! -d $(DSTROOT)/$(winprogdir)/; then \
1435 $(INSTALL) -d -m 0755 $(DSTROOT)/$(winprogdir)/; \
1437 if test ! -d $(DSTROOT)/$(winintlibdir)/; then \
1438 $(INSTALL) -d -m 0755 $(DSTROOT)/$(winintlibdir)/; \
1440 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuuc_$(DEPEND_$@).lib $(DSTROOT)/$(winintlibdir)libicuuc_$(DEPEND_$@).lib; \
1441 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuuc_$(DEPEND_$@).pdb $(DSTROOT)/$(winprogdir)libicuuc_$(DEPEND_$@).pdb; \
1442 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/libicuuc_$(DEPEND_$@).dll $(DSTROOT)/$(winprogdir)libicuuc_$(DEPEND_$@).dll; \
1443 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuin_$(DEPEND_$@).lib $(DSTROOT)/$(winintlibdir)libicuin_$(DEPEND_$@).lib; \
1444 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuin_$(DEPEND_$@).pdb $(DSTROOT)/$(winprogdir)libicuin_$(DEPEND_$@).pdb; \
1445 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/libicuin_$(DEPEND_$@).dll $(DSTROOT)/$(winprogdir)libicuin_$(DEPEND_$@).dll; \
1447 if test ! -d $(DSTROOT)/$(libdir)/; then \
1448 $(INSTALL) -d -m 0755 $(DSTROOT)/$(libdir)/; \
1450 $(INSTALL) -b -m 0664 $(OBJROOT_CURRENT)/$($(INSTALLED_DYLIB_$(DEPEND_$@))) $(DSTROOT)/$(libdir)$($(INSTALLED_DYLIB_$(DEPEND_$@))); \
1451 if test "$(LINUX)" = "YES"; then \
1452 cp $(OBJROOT_CURRENT)/$($(INSTALLED_DYLIB_$(DEPEND_$@))) $(SYMROOT_CURRENT)/$($(INSTALLED_DYLIB_$(DEPEND_$@))); \
1453 strip -x -S $(DSTROOT)/$(libdir)$($(INSTALLED_DYLIB_$(DEPEND_$@))); \
1455 (cd $(DSTROOT)/$(libdir); \
1456 ln -fs $($(INSTALLED_DYLIB_$(DEPEND_$@))) $($(DYLIB_$(DEPEND_$@)))); \
1457 cp $(OBJROOT_CURRENT)/$($(INSTALLED_DYLIB_$(DEPEND_$@))) $(SYMROOT_CURRENT)/$($(INSTALLED_DYLIB_$(DEPEND_$@))); \
1458 $(STRIPCMD) -x -u -r -S $(DSTROOT)/$(libdir)$($(INSTALLED_DYLIB_$(DEPEND_$@))); \
1460 for subdir in $(EXTRA_LIBS); do \
1461 (cd $(OBJROOT_CURRENT)/$$subdir; $(MAKE) -e DESTDIR=$(DSTROOT)/ $(ENV) install-library;) \
1468 # For the install-icutztoolsforsdk target, SDKROOT will always be an OSX SDK root
1469 install-icutztoolsforsdk : icutztoolsforsdk
1470 if test ! -d $(DSTROOT)$(localtooldir)/; then \
1471 $(INSTALL) -d -m 0755 $(DSTROOT)$(localtooldir)/; \
1473 if test ! -d $(DSTROOT)$(locallibdir)/; then \
1474 $(INSTALL) -d -m 0755 $(DSTROOT)$(locallibdir)/; \
1476 if test -f $(OBJROOT_CURRENT)/$(TOOLS_DYLIB); then \
1477 echo '# install' $(TOOLS_DYLIB) 'to' $(DSTROOT)$(locallibdir)$(TOOLS_DYLIB) ; \
1478 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(TOOLS_DYLIB) $(DSTROOT)$(locallibdir)$(TOOLS_DYLIB); \
1480 if test -f $(OBJROOT_CURRENT)/$(ZICTOOL); then \
1481 echo '# install' $(ZICTOOL) 'to' $(DSTROOT)$(localtooldir)$(ZICTOOL) ; \
1482 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(ZICTOOL) $(DSTROOT)$(localtooldir)$(ZICTOOL); \
1484 if test -f $(OBJROOT_CURRENT)/$(RESTOOL); then \
1485 echo '# install' $(RESTOOL) 'to' $(DSTROOT)$(localtooldir)$(RESTOOL) ; \
1486 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(RESTOOL) $(DSTROOT)$(localtooldir)$(RESTOOL); \
1488 if test -f $(OBJROOT_CURRENT)/$(PKGTOOL); then \
1489 echo '# install' $(PKGTOOL) 'to' $(DSTROOT)$(localtooldir)$(PKGTOOL) ; \
1490 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(PKGTOOL) $(DSTROOT)$(localtooldir)$(PKGTOOL); \
1492 if test -f $(OBJROOT_CURRENT)/$(TZ2ICUTOOL); then \
1493 echo '# install' $(TZ2ICUTOOL) 'to' $(DSTROOT)$(localtooldir)$(TZ2ICUTOOL) ; \
1494 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(TZ2ICUTOOL) $(DSTROOT)$(localtooldir)$(TZ2ICUTOOL); \