2 # Wrapper makefile for ICU
3 # Copyright (C) 2003-2014 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 # Notes on building for AAS using Windows (7) + Visual Studio (2010) + Cygwin:
11 # Either this should be run indirectly from the VS command prompt via the
12 # BuildICUForAAS script or project, using the instructions there (which build
13 # both 32-bit and 64-bit), or it should be run from within Cygwin using the
14 # following instructions or equivalent (different steps for 32-bit or 64-bit):
16 # 1. From VS command prompt, run vcvarsall.bat to set various environment variables.
18 # > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
20 # > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64
22 # 2. Launch Cygwin, e.g.
23 # > C:\cygwin\Cygwin.bat
25 # 3. Within cygwin, cd to the top level of the ICU sources directory, e.g.
28 # 4. Adjust the PATH to put the appropriate VC tools directory first:
30 # $ export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/":$PATH
32 # $ export PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/amd64/":$PATH
34 # 5. Run the ICU makefile
36 # make [install] WINDOWS=YES [ARCH64=NO] [DSTROOT=...]
38 # make [install] WINDOWS=YES ARCH64=YES [DSTROOT=...]
40 #################################
42 #################################
43 #################################
45 #################################
46 #################################
48 # ':=' denotes a "simply expanded" variable. It's value is
49 # set at the time of definition and it never recursively expands
50 # when used. This is in contrast to using '=' which denotes a
51 # recursively expanded variable.
53 # Sane defaults, which are typically overridden on the command line.
58 # chicken and egg problem: we can't use cygpath until PATH & SHELL are set,
59 # but we have to convert VS100VCTOOLS_PATH in order to set PATH. So instead we
60 # convert using subst.
61 ifeq "$(WINDOWS)" "YES"
62 ifneq "$(VS100VCTOOLS_PATH)" ""
63 VS100VCTOOLS_CYGPATH:= /cygdrive/$(subst :/,/,$(subst \,/,$(VS100VCTOOLS_PATH)))
64 PATH:=$(VS100VCTOOLS_CYGPATH):/usr/local/bin/:/usr/bin/:$(PATH)
67 $(info # PATH=$(PATH))
69 # For some reason, cygwin bash (at least when run non-login) needs to use
70 # bash for pwd, echo etc. (but uname does not work, see below)
71 ifeq "$(WINDOWS)" "YES"
77 # if building for windows from batch script, convert Win-style paths
78 # for SRCROOT etc. to cygwin-style paths. Don't define them if not
80 ifeq "$(WINDOWS)" "YES"
81 ifneq "$(VS100VCTOOLS_PATH)" ""
83 SRCROOT:=$(shell /bin/cygpath -ua $(subst \,/,$(SRCROOT)))
86 OBJROOT:=$(shell /bin/cygpath -ua $(subst \,/,$(OBJROOT)))
89 DSTROOT:=$(shell /bin/cygpath -ua $(subst \,/,$(DSTROOT)))
92 SYMROOT:=$(shell /bin/cygpath -ua $(subst \,/,$(SYMROOT)))
101 OBJROOT:=$(SRCROOT)/build
110 ifeq "$(WINDOWS)" "YES"
111 ifeq "$(ARCH64)" "YES"
112 OBJROOT_CURRENT=$(OBJROOT)/obj64
113 SYMROOT_CURRENT=$(SYMROOT)/obj64
115 OBJROOT_CURRENT=$(OBJROOT)/obj32
116 SYMROOT_CURRENT=$(SYMROOT)/obj32
118 else ifeq "$(LINUX)" "YES"
119 ifeq "$(ARCH64)" "YES"
120 OBJROOT_CURRENT=$(OBJROOT)/obj64
121 SYMROOT_CURRENT=$(SYMROOT)/obj64
123 OBJROOT_CURRENT=$(OBJROOT)/obj32
124 SYMROOT_CURRENT=$(SYMROOT)/obj32
127 OBJROOT_CURRENT=$(OBJROOT)
128 SYMROOT_CURRENT=$(SYMROOT)
130 CROSSHOST_OBJROOT=$(OBJROOT)/crossbuildhost
131 APPLE_INTERNAL_DIR=/AppleInternal
133 MAC_OS_X_VERSION_MIN_REQUIRED=1070
134 OSX_HOST_VERSION_MIN_STRING=10.7
135 IOS_VERSION_TARGET_STRING=7.0
136 OSX_VERSION_TARGET_STRING=10.9
138 $(info # SRCROOT=$(SRCROOT))
139 $(info # DSTROOT=$(DSTROOT))
140 $(info # OBJROOT=$(OBJROOT))
142 # For some reason, under cygwin, bash uname is not found, and
143 # sh uname does not produce a result with -p or -m. So we just
145 ifeq "$(WINDOWS)" "YES"
146 UNAME_PROCESSOR:=i386
148 UNAME_PROCESSOR:=$(shell uname -p)
151 ifeq "$(RC_INDIGO)" "YES"
152 -include $(DEVELOPER_DIR)/AppleInternal/Makefiles/Makefile.indigo
154 SDKROOT=$(INDIGO_PREFIX)
156 DEST_ROOT=$(DSTROOT)/$(INDIGO_PREFIX)/
158 DEST_ROOT=$(DSTROOT)/
162 else ifeq "$(SDKROOT)" ""
165 SDKPATH:=$(shell xcodebuild -version -sdk $(SDKROOT) Path)
170 ifneq "$(RC_ARCHS)" ""
171 ifneq "$(filter arm armv6 armv7 armv7s arm64,$(RC_ARCHS))" ""
174 else ifeq "$(RC_INDIGO)" "YES"
181 INSTALLHDRS_ARCH=-arch $(shell echo $(RC_ARCHS) | cut -d' ' -f1)
187 $(info # RC_ARCHS=$(RC_ARCHS))
188 $(info # INSTALLHDRS_ARCH=$(INSTALLHDRS_ARCH))
189 $(info # buildhost=$(UNAME_PROCESSOR))
190 $(info # SDKROOT=$(SDKROOT))
191 $(info # SDKPATH=$(SDKPATH))
192 $(info # RC_INDIGO=$(RC_INDIGO))
193 $(info # CROSS_BUILD=$(CROSS_BUILD))
194 $(info # BUILD_TYPE=$(BUILD_TYPE))
195 $(info # DEST_ROOT=$(DEST_ROOT))
198 # FORCEENDIAN below is to override silly configure behavior in which if
199 # __APPLE_CC__ is defined and archs are in { ppc, ppc64, i386, x86_64 }
200 # then it assumes a universal build (ac_cv_c_bigendian=universal) with
201 # data file initially built big-endian.
203 ifeq "$(CROSS_BUILD)" "YES"
204 RC_ARCHS_FIRST=$(shell echo $(RC_ARCHS) | cut -d' ' -f1)
205 TARGET_SPEC=$(RC_ARCHS_FIRST)-apple-darwin14.0.0
206 ENV_CONFIGURE_ARCHS=-arch $(RC_ARCHS_FIRST)
207 ICUPKGTOOLIBS="$(CROSSHOST_OBJROOT)/lib:$(CROSSHOST_OBJROOT)/stubdata"
208 ICUPKGTOOL=$(CROSSHOST_OBJROOT)/bin/icupkg
209 ifeq "$(filter-out i386 x86_64,$(RC_ARCHS))" ""
210 FORCEENDIAN= ac_cv_c_bigendian=no
214 else ifeq "$(LINUX)" "YES"
215 TARGET_SPEC=$(UNAME_PROCESSOR)-unknown-linux-gnu
217 ICUPKGTOOLIBS="$(OBJROOT_CURRENT)/lib:$(OBJROOT_CURRENT)/stubdata"
218 ICUPKGTOOL=$(OBJROOT_CURRENT)/bin/icupkg
221 TARGET_SPEC=$(UNAME_PROCESSOR)-apple-darwin14.0.0
223 ICUPKGTOOLIBS="$(OBJROOT_CURRENT)/lib:$(OBJROOT_CURRENT)/stubdata"
224 ICUPKGTOOL=$(OBJROOT_CURRENT)/bin/icupkg
227 $(info # TARGET_SPEC=$(TARGET_SPEC))
228 $(info # ENV_CONFIGURE_ARCHS=$(ENV_CONFIGURE_ARCHS))
230 ICU_TARGET_VERSION_FOR_TZ_EXTRA :=
231 ifeq "$(BUILD_TYPE)" "SIMULATOR"
232 ICU_TARGET_VERSION_FOR_TZ_EXTRA := -mmacosx-version-min=$(OSX_HOST_VERSION_MIN_STRING)
235 ifeq "$(BUILD_TYPE)" "DEVICE"
241 # even for a crossbuild host build, we want to use the target's latest tzdata as pointed to by latest_tzdata.tar.gz
242 export TZDATA:=$(SDKPATH)/usr/local/share/tz/$(shell readlink $(SDKPATH)/usr/local/share/tz/latest_tzdata.tar.gz)
243 $(info # TZDATA=$(TZDATA))
245 ifeq "$(WINDOWS)" "YES"
247 else ifeq "$(LINUX)" "YES"
253 ifeq "$(BUILD_TYPE)" ""
254 HOSTCC := $(shell xcrun -sdk $(SDKPATH) -find cc)
255 HOSTCXX := $(shell xcrun -sdk $(SDKPATH) -find c++)
256 ifeq "$(SDKPATH)" "/"
257 ifneq (,$(findstring XcodeDefault,$(HOSTCC)))
258 HOSTSDKPATH := $(shell xcodebuild -version -sdk macosx Path)
260 HOSTSDKPATH := $(shell xcodebuild -version -sdk macosx.internal Path)
263 HOSTSDKPATH := $(SDKPATH)
265 ISYSROOT:= -isysroot $(HOSTSDKPATH)
268 NM := $(shell xcrun -find nm)
269 STRIPCMD := $(shell xcrun -find strip)
271 HOSTCC := $(shell xcrun -sdk macosx -find cc)
272 HOSTCXX := $(shell xcrun -sdk macosx -find c++)
273 HOSTSDKPATH := $(shell xcodebuild -version -sdk macosx Path)
274 ISYSROOT:= -isysroot $(SDKPATH)
275 CC := $(shell xcrun -sdk $(SDKPATH) -find cc)
276 CXX := $(shell xcrun -sdk $(SDKPATH) -find c++)
277 NM := $(shell xcrun -sdk $(SDKPATH) -find nm)
278 STRIPCMD := $(shell xcrun -sdk $(SDKPATH) -find strip)
280 HOSTISYSROOT = -isysroot $(HOSTSDKPATH)
281 EMBEDDED:=$(shell $(CXX) -E -dM -x c $(ISYSROOT) -include TargetConditionals.h /dev/null | fgrep TARGET_OS_EMBEDDED | cut -d' ' -f3)
283 DSYMTOOL := /usr/bin/dsymutil
286 $(info # HOSTCC=$(HOSTCC))
287 $(info # HOSTCXX=$(HOSTCXX))
288 $(info # HOSTISYSROOT=$(HOSTISYSROOT))
291 $(info # ISYSROOT=$(ISYSROOT))
293 ifeq "$(EMBEDDED)" "1"
294 export APPLE_EMBEDDED=YES
296 else ifeq "$(RC_INDIGO)" "YES"
297 export APPLE_EMBEDDED=YES
300 export APPLE_EMBEDDED=NO
304 ifeq "$(APPLE_EMBEDDED)" "YES"
305 ICU_TARGET_VERSION := -miphoneos-version-min=$(IOS_VERSION_TARGET_STRING)
307 ICU_TARGET_VERSION :=
309 $(info # ICU_TARGET_VERSION=$(ICU_TARGET_VERSION))
311 ifeq "$(DISABLE_DRAFT)" "YES"
312 DRAFT_FLAG=--disable-draft
317 ifndef RC_ProjectSourceVersion
318 ifdef RC_PROJECTSOURCEVERSION
319 RC_ProjectSourceVersion=$(RC_PROJECTSOURCEVERSION)
323 # An Apple submission version (passed in RC_ProjectSourceVersion for official builds) is
325 # where X is in range 0-214747, Y and Z are in range 0-99 (with no leading zeros).
326 # The value for the SourceVersion property in version.plists will be calculated as
327 # (X*10000 + Y*100 + Z). So we want U_ICU_VERSION_BUILDLEVEL_NUM to be Y*100 + Z
328 ifneq "$(RC_ProjectSourceVersion)" ""
329 ifeq "$(WINDOWS)" "YES"
330 ICU_BUILD_Y := $(shell echo $(RC_ProjectSourceVersion) | sed -r -e 's/([0-9]+)(\.([0-9]{1,2})(\.([0-9])([0-9])?)?)?/\3/')
331 ICU_BUILD_Z1 := $(shell echo $(RC_ProjectSourceVersion) | sed -r -e 's/([0-9]+)(\.([0-9]{1,2})(\.([0-9])([0-9])?)?)?/\5/')
332 ICU_BUILD_Z2 := $(shell echo $(RC_ProjectSourceVersion) | sed -r -e 's/([0-9]+)(\.([0-9]{1,2})(\.([0-9])([0-9])?)?)?/\6/')
334 ICU_BUILD_Y := $(shell echo $(RC_ProjectSourceVersion) | sed -E -e 's/([0-9]+)(\.([0-9]{1,2})(\.([0-9])([0-9])?)?)?/\3/')
335 ICU_BUILD_Z1 := $(shell echo $(RC_ProjectSourceVersion) | sed -E -e 's/([0-9]+)(\.([0-9]{1,2})(\.([0-9])([0-9])?)?)?/\5/')
336 ICU_BUILD_Z2 := $(shell echo $(RC_ProjectSourceVersion) | sed -E -e 's/([0-9]+)(\.([0-9]{1,2})(\.([0-9])([0-9])?)?)?/\6/')
338 ifeq "$(ICU_BUILD_Y)" ""
341 ICU_BUILD := $(subst a,$(ICU_BUILD_Y),abc)
342 ifeq "$(ICU_BUILD_Z1)" ""
343 ICU_BUILD := $(subst b,0,$(ICU_BUILD))
344 ICU_BUILD := $(subst c,0,$(ICU_BUILD))
346 ifeq "$(ICU_BUILD_Z2)" ""
347 ICU_BUILD := $(subst b,0,$(ICU_BUILD))
348 ICU_BUILD := $(subst c,$(ICU_BUILD_Z1),$(ICU_BUILD))
350 ICU_BUILD := $(subst b,$(ICU_BUILD_Z1),$(ICU_BUILD))
351 ICU_BUILD := $(subst c,$(ICU_BUILD_Z2),$(ICU_BUILD))
358 $(info # ICU_BUILD=$(ICU_BUILD))
359 ifeq "$(ICU_BUILD)" "0"
362 DEFINE_BUILD_LEVEL =-DU_ICU_VERSION_BUILDLEVEL_NUM=$(ICU_BUILD)
365 # Disallow $(SRCROOT) == $(OBJROOT)
366 ifeq ($(OBJROOT), $(SRCROOT))
367 $(error SRCROOT same as OBJROOT)
370 # Disallow cross builds on Windows/Linux for now
371 # (since those builds are not out-of-source as required for cross-builds)
372 ifeq "$(CROSS_BUILD)" "YES"
373 ifeq "$(WINDOWS)" "YES"
374 $(error Cross-builds currently not allowed on Windows)
376 ifeq "$(LINUX)" "YES"
377 $(error Cross-builds currently not allowed on Linux)
381 #################################
383 #################################
385 # For installhdrs. Not every compiled module has an associated header. Normally,
386 # ICU installs headers as a sub-targe of the install target. But since we only want
387 # certain libraries to install (and since we link all of our own .o modules), we need
388 # invoke the headers targets ourselves. This may be problematic because there isn't a
389 # good way to dist-clean afterwards...we need to do explicit dist-cleans, especially if
390 # install the extra libraries.
393 # EXTRA_HDRS = ./extra/ustdio/ ./layout/
394 ifeq "$(APPLE_EMBEDDED)" "YES"
395 HDR_MAKE_SUBDIR = ./common/ ./i18n/ $(EXTRA_HDRS)
396 else ifeq "$(WINDOWS)" "YES"
397 HDR_MAKE_SUBDIR = ./common/ ./i18n/ $(EXTRA_HDRS)
399 HDR_MAKE_SUBDIR = ./common/ ./i18n/ ./io/ $(EXTRA_HDRS)
401 ifeq "$(WINDOWS)" "YES"
402 PRIVATE_HDR_PREFIX=$(APPLE_INTERNAL_DIR)
403 else ifeq "$(APPLE_EMBEDDED)" "YES"
405 PRIVATE_HDR_PREFIX=/usr/local
407 PRIVATE_HDR_PREFIX=/usr/local
410 #################################
412 #################################
414 # For install. We currently don't install EXTRA_LIBS. We also don't install the data
415 # directly into the ICU library. It is now installed at /usr/share/icu/*.dat. Thus we
416 # don't use DATA_OBJ anymore. This could change if we decide to move the data back into
417 # the icucore monolithic library.
419 INSTALL = /usr/bin/install
420 COMMON_OBJ = ./common/*.o
421 I18N_OBJ = ./i18n/*.o
423 STUB_DATA_OBJ = ./stubdata/*.o
425 #EXTRA_LIBS =./extra/ ./layout/ ./tools/ctestfw/ ./tools/toolutil/
426 #DATA_OBJ = ./data/out/build/*.o
427 ifeq "$(APPLE_EMBEDDED)" "YES"
428 DYLIB_OBJS=$(COMMON_OBJ) $(I18N_OBJ) $(STUB_DATA_OBJ)
429 else ifeq "$(WINDOWS)" "YES"
430 DYLIB_OBJS=$(COMMON_OBJ) ./common/common.res $(I18N_OBJ) $(STUB_DATA_OBJ)
432 DYLIB_OBJS=$(COMMON_OBJ) $(I18N_OBJ) $(IO_OBJ) $(STUB_DATA_OBJ)
435 #################################
437 #################################
439 # For installsrc (B&I)
440 # Note that installsrc is run on the system from which ICU is submitted, which
441 # may be a different environment than the one for a which a build is targeted.
443 INSTALLSRC_VARFILES=./ICU_embedded.order ./minimalapis.txt ./minimalapisTest.c ./minimalpatchconfig.txt ./windowspatchconfig.txt ./patchconfig.txt ./crosshostpatchconfig.txt
445 #################################
447 #################################
449 #We need to clean after installing.
453 # Some directories aren't cleaned recursively. Clean them manually...
454 MANUAL_CLEAN_TOOLS = ./tools/dumpce
455 MANUAL_CLEAN_EXTRA = ./extra/scrptrun ./samples/layout ./extra/ustdio ./extra
456 MANUAL_CLEAN_TEST = ./test/collperf ./test/iotest ./test/letest ./test/thaitest ./test/threadtest ./test/testmap ./test
457 MANUAL_CLEAN_SAMPLE = ./samples/layout ./samples
459 CLEAN_SUBDIR = ./stubdata ./common ./i18n ./io ./layout ./layoutex ./data ./tools ./$(MANUAL_CLEAN_TOOLS) $(MANUAL_CLEAN_EXTRA) $(MANUAL_CLEAN_TEST) $(MANUAL_CLEAN_SAMPLE)
461 #################################
463 #################################
465 ifeq "$(WINDOWS)" "YES"
466 ifeq "$(ARCH64)" "YES"
467 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples --disable-icuio \
468 --with-data-packaging=library --prefix=$(PRIVATE_HDR_PREFIX) --with-library-bits=64 \
471 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples --disable-icuio \
472 --with-data-packaging=library --prefix=$(PRIVATE_HDR_PREFIX) --with-library-bits=32 \
475 else ifeq "$(LINUX)" "YES"
476 ifeq "$(ARCH64)" "YES"
477 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples \
478 --with-data-packaging=archive --prefix=$(PRIVATE_HDR_PREFIX) --with-library-bits=64 \
481 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples \
482 --with-data-packaging=archive --prefix=$(PRIVATE_HDR_PREFIX) --with-library-bits=32 \
485 else ifeq "$(APPLE_EMBEDDED)" "YES"
486 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples --disable-icuio \
487 --with-data-packaging=archive --prefix=$(PRIVATE_HDR_PREFIX) \
490 CONFIG_FLAGS = --disable-renaming --disable-extras --disable-layout --disable-samples \
491 --with-data-packaging=archive --prefix=$(PRIVATE_HDR_PREFIX) \
495 #################################
497 #################################
499 # This may or may not be an appropriate name for the icu dylib. This naming scheme is
500 # an attempt to follow the icu convention in naming the dylib and then having symbolic
501 # links of easier to remember library names point it it. *UPDATE* the version and
502 # sub-version variables as needed. The Core version should be 'A' until the core
503 # version changes it's API...that is a new version isn't backwards compatible.
504 # The ICU version/subversion should reflect the actual ICU version.
511 ifeq "$(WINDOWS)" "YES"
513 ifeq "$(ARCH64)" "YES"
514 winprogdir = /Program\ Files/Common\ Files/Apple/Apple\ Application\ Support/
515 winintlibdir = /AppleInternal/lib64/
517 winprogdir = /Program\ Files\ \(x86\)/Common\ Files/Apple/Apple\ Application\ Support/
518 winintlibdir = /AppleInternal/lib32/
521 else ifeq "$(LINUX)" "YES"
523 ifeq "$(ARCH64)" "YES"
537 DYLIB = lib$(LIB_NAME).$(DYLIB_SUFF)
538 DYLIB_DEBUG = lib$(LIB_NAME)_debug.$(DYLIB_SUFF)
539 DYLIB_PROFILE = lib$(LIB_NAME)_profile.$(DYLIB_SUFF)
540 ifeq "$(WINDOWS)" "YES"
541 INSTALLED_DYLIB = $(LIB_NAME).$(DYLIB_SUFF)
542 INSTALLED_DYLIB_DEBUG = $(LIB_NAME)_debug.$(DYLIB_SUFF)
543 INSTALLED_DYLIB_PROFILE = $(LIB_NAME)_profile.$(DYLIB_SUFF)
544 else ifeq "$(LINUX)" "YES"
545 INSTALLED_DYLIB = lib$(LIB_NAME).$(DYLIB_SUFF)
546 INSTALLED_DYLIB_DEBUG = lib$(LIB_NAME)_debug.$(DYLIB_SUFF)
547 INSTALLED_DYLIB_PROFILE = lib$(LIB_NAME)_profile.$(DYLIB_SUFF)
549 INSTALLED_DYLIB = lib$(LIB_NAME).$(CORE_VERS).$(DYLIB_SUFF)
550 INSTALLED_DYLIB_DEBUG = lib$(LIB_NAME).$(CORE_VERS)_debug.$(DYLIB_SUFF)
551 INSTALLED_DYLIB_PROFILE = lib$(LIB_NAME).$(CORE_VERS)_profile.$(DYLIB_SUFF)
554 INSTALLED_DYLIB_icu = INSTALLED_DYLIB
555 INSTALLED_DYLIB_debug = INSTALLED_DYLIB_DEBUG
556 INSTALLED_DYLIB_profile = INSTALLED_DYLIB_PROFILE
558 DYLIB_debug = DYLIB_DEBUG
559 DYLIB_profile = DYLIB_PROFILE
561 #################################
563 #################################
565 OPEN_SOURCE_VERSIONS_DIR=/usr/local/OpenSourceVersions/
566 OPEN_SOURCE_LICENSES_DIR=/usr/local/OpenSourceLicenses/
568 B_DATA_FILE=icudt$(ICU_VERS)b.dat
569 L_DATA_FILE=icudt$(ICU_VERS)l.dat
570 DATA_BUILD_SUBDIR= data/out
571 DATA_INSTALL_DIR=/usr/share/icu/
572 # DATA_LOOKUP_DIR is what the target ICU_DATA_DIR gets set to in CFLAGS, CXXFLAGS;
573 # DATA_LOOKUP_DIR_BUILDHOST is what any crossbuild host ICU_DATA_DIR gets set to.
574 ifneq "$(APPLE_EMBEDDED)" "YES"
575 DATA_LOOKUP_DIR=/usr/share/icu/
577 ifeq "$(RC_INDIGO)" "YES"
578 DATA_LOOKUP_DIR=/usr/share/icu/
580 DATA_LOOKUP_DIR=/var/db/icu/
583 DATA_LOOKUP_DIR_BUILDHOST=/usr/share/icu/
585 # Name of runtime environment variable to get the prefix path for DATA_LOOKUP_DIR
586 # Currently we are only using this for LINUX, should also use for iOS simulator
587 ifeq "$(LINUX)" "YES"
588 DATA_DIR_PREFIX_ENV_VAR=APPLE_FRAMEWORKS_ROOT
590 DATA_DIR_PREFIX_ENV_VAR=
593 #################################
595 #################################
597 localtooldir=/usr/local/bin/
601 INFOTOOL_OBJS = ./tools/icuinfo/icuinfo.o ./tools/toolutil/udbgutil.o ./tools/toolutil/uoptions.o
603 #################################
605 # e.g. supplementalData.xml, per <rdar://problem/13426014>
606 # These are like internal headers in that they are only installed for
607 # (other) projects to build against, not needed at runtime.
608 # Therefore install during installhdrs.
609 #################################
611 CLDRFILESDIR=/usr/local/share/cldr
613 #################################
614 # Environment variables
615 #################################
617 # $(RC_ARCHS:%=-arch %) is a substitution reference. It denotes, in this case,
618 # for every value <val> in RC_ARCHS, replace it with "-arch <val>". Substitution
619 # references have the form $(var:a=b). We can insert the strip and prebinding commands
620 # into CFLAGS (and CXXFLAGS). This controls a lot of the external variables so we don't
621 # need to directly modify the ICU files (like for CFLAGS, etc).
623 LIBOVERRIDES=LIBICUDT="-L$(OBJROOT_CURRENT) -l$(LIB_NAME)" \
624 LIBICUUC="-L$(OBJROOT_CURRENT) -l$(LIB_NAME)" \
625 LIBICUI18N="-L$(OBJROOT_CURRENT) -l$(LIB_NAME)"
627 # For normal Windows builds set the ENV= options here; for debug Windows builds set the ENV_DEBUG=
628 # options here and also the update the LINK.EXE lines in the TARGETS section below.
629 ifeq "$(WINDOWS)" "YES"
630 ifeq "$(ARCH64)" "YES"
631 ENV= CFLAGS="/O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES" \
632 CXXFLAGS="/O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc /Zc:wchar_t" \
633 LDFLAGS="/NXCOMPAT /DYNAMICBASE /DEBUG /OPT:REF"
635 ENV= CFLAGS="/O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES" \
636 CXXFLAGS="/O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc /Zc:wchar_t" \
637 LDFLAGS="/NXCOMPAT /SAFESEH /DYNAMICBASE /DEBUG /OPT:REF"
639 ENV_CONFIGURE= CPPFLAGS="-DU_DISABLE_RENAMING=1 $(DEFINE_BUILD_LEVEL)" \
640 CFLAGS="/O2 /Ob2 /MD /GF /GS /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES" \
641 CXXFLAGS="/O2 /Ob2 /MD /GF /GS /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc /Zc:wchar_t"
642 ENV_DEBUG= CFLAGS="/O2 /Ob2 /MDd /GF /GS /Zi /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES" \
643 CXXFLAGS="/O2 /Ob2 /MDd /GF /GS /Zi /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc" \
644 LDFLAGS="/DEBUG /DYNAMICBASE"
646 else ifeq "$(LINUX)" "YES"
647 ifeq "$(ARCH64)" "YES"
648 ENV_CONFIGURE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
649 CPPFLAGS="-DU_DISABLE_RENAMING=1 $(DEFINE_BUILD_LEVEL)" \
652 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" \
653 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" \
655 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib64"
657 ENV= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
660 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" \
661 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" \
663 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib64"
665 ENV_DEBUG= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
668 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" \
669 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" \
671 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib64"
673 ENV_PROFILE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
676 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" \
677 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" \
679 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib64"
681 ENV_CONFIGURE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
682 CPPFLAGS="-DU_DISABLE_RENAMING=1 $(DEFINE_BUILD_LEVEL)" \
685 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" \
686 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" \
688 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib"
690 ENV= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
693 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" \
694 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" \
696 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib"
698 ENV_DEBUG= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
701 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" \
702 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" \
704 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib"
706 ENV_PROFILE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
709 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" \
710 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" \
712 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib"
716 ENV_CONFIGURE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
717 CPPFLAGS="$(DEFINE_BUILD_LEVEL) -DSTD_INSPIRED -DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) $(ISYSROOT) $(ENV_CONFIGURE_ARCHS)" \
720 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" $(ENV_CONFIGURE_ARCHS) $(ICU_TARGET_VERSION) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden $(ISYSROOT) $(THUMB_FLAG)" \
721 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" $(ENV_CONFIGURE_ARCHS) $(ICU_TARGET_VERSION) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG)" \
722 RC_ARCHS="$(RC_ARCHS)" $(FORCEENDIAN)\
724 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib"
726 ENV= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
729 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden $(ISYSROOT) $(THUMB_FLAG)" \
730 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -Wglobal-constructors -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG)" \
731 RC_ARCHS="$(RC_ARCHS)" \
733 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib"
735 ENV_DEBUG= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
738 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -O0 -gfull -Wglobal-constructors -fno-exceptions -fvisibility=hidden $(ISYSROOT) $(THUMB_FLAG)" \
739 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -O0 -gfull -Wglobal-constructors -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG)" \
740 RC_ARCHS="$(RC_ARCHS)" \
742 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib"
744 ENV_PROFILE= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
747 CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -pg -Wglobal-constructors -fno-exceptions -fvisibility=hidden $(ISYSROOT) $(THUMB_FLAG)" \
748 CXXFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DU_TIMEZONE=timezone -DICU_DATA_DIR=\"\\\"$(DATA_LOOKUP_DIR)\\\"\" $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -pg -Wglobal-constructors -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG)" \
749 RC_ARCHS="$(RC_ARCHS)" \
751 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib"
753 ENV_CONFIGURE_BUILDHOST= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
754 CPPFLAGS="$(DEFINE_BUILD_LEVEL) -DSTD_INSPIRED -DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) $(HOSTISYSROOT)" \
757 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" \
758 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" \
760 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib"
762 ENV_BUILDHOST= APPLE_INTERNAL_DIR="$(APPLE_INTERNAL_DIR)" \
765 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" \
766 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" \
768 DYLD_LIBRARY_PATH="$(DEST_ROOT)usr/local/lib"
773 ENV_debug = ENV_DEBUG
774 ENV_profile = ENV_PROFILE
776 ifeq "$(BUILD_TYPE)" "DEVICE"
777 ORDERFILE=$(SDKPATH)/AppleInternal/OrderFiles/libicucore.order
778 else ifeq "$(APPLE_EMBEDDED)" "YES"
779 ORDERFILE=$(SRCROOT)/ICU_embedded.order
781 ORDERFILE=/usr/local/lib/OrderFiles/libicucore.order
783 ifeq "$(shell test -f $(ORDERFILE) && echo YES )" "YES"
784 SECTORDER_FLAGS=-sectorder __TEXT __text $(ORDERFILE)
790 #################################
791 #################################
793 #################################
794 #################################
796 .PHONY : icu check installsrc installhdrs installhdrsint clean install debug debug-install crossbuildhost
799 icu debug profile : $(OBJROOT_CURRENT)/Makefile
800 echo "# make for target";
801 (cd $(OBJROOT_CURRENT); \
802 $(MAKE) $($(ENV_$@)); \
803 if test "$(WINDOWS)" = "YES"; then \
805 rc.exe /folibicuuc.res $(CPPFLAGS) -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../i18n \
806 "-DDEFAULT_ICU_PLUGINS=\"/AppleInternal/lib/icu\" " -DU_LOCAL_SERVICE_HOOK=1 libicuuc.rc; \
809 rc.exe /folibicuin.res $(CPPFLAGS) -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../common libicuin.rc; \
811 if test "$@" = "debug"; then \
813 LINK.EXE /subsystem:console /DLL /nologo /base:"0x4a800000" /DYNAMICBASE /DEBUG \
814 /IMPLIB:../lib/libicuuc_$@.lib /out:../lib/libicuuc_$@.dll \
815 *.o libicuuc.res ../stubdata/icudt.lib advapi32.lib; \
818 LINK.EXE /subsystem:console /DLL /nologo /base:"0x4a900000" /DYNAMICBASE /DEBUG \
819 /IMPLIB:../lib/libicuin_$@.lib /out:../lib/libicuin_$@.dll \
820 *.o libicuin.res ../lib/libicuuc_$@.lib ../stubdata/icudt.lib advapi32.lib; \
824 rm -f ../lib/libicuuc.dll.manifest; \
825 if test "$(ARCH64)" = "YES"; then \
826 LINK.EXE /DLL /NXCOMPAT /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
827 /IMPLIB:../lib/libicuuc.lib /out:../lib/libicuuc.dll \
828 *.o libicuuc.res ../stubdata/icudt.lib advapi32.lib; \
830 LINK.EXE /DLL /NXCOMPAT /SAFESEH /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
831 /IMPLIB:../lib/libicuuc.lib /out:../lib/libicuuc.dll \
832 *.o libicuuc.res ../stubdata/icudt.lib advapi32.lib; \
834 mt.exe -nologo -manifest ../lib/libicuuc.dll.manifest -outputresource:"../lib/libicuuc.dll;2"; \
837 rm -f ../lib/libicuin.dll.manifest; \
838 if test "$(ARCH64)" = "YES"; then \
839 LINK.EXE /DLL /NXCOMPAT /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
840 /IMPLIB:../lib/libicuin.lib /out:../lib/libicuin.dll \
841 *.o libicuin.res ../lib/libicuuc.lib ../stubdata/icudt.lib advapi32.lib; \
843 LINK.EXE /DLL /NXCOMPAT /SAFESEH /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
844 /IMPLIB:../lib/libicuin.lib /out:../lib/libicuin.dll \
845 *.o libicuin.res ../lib/libicuuc.lib ../stubdata/icudt.lib advapi32.lib; \
847 mt.exe -nologo -manifest ../lib/libicuin.dll.manifest -outputresource:"../lib/libicuin.dll;2"; \
849 if test "$(ARCH64)" != "YES"; then \
852 rm -f icuuc40shim.o; \
853 rm -f ../lib/icuuc40.dll.manifest; \
854 cl -DU_DISABLE_RENAMING=1 -DU_ICU_VERSION_BUILDLEVEL_NUM=$(ICU_BUILD) \
855 -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../i18n \
856 -DU_LOCAL_SERVICE_HOOK=1 -DWIN32 -DU_COMMON_IMPLEMENTATION \
857 /O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc /Zc:wchar_t \
858 /c /Foicuuc40shim.o icuuc40shim.cpp; \
859 rc.exe /foicuuc40shim.res $(CPPFLAGS) -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../i18n \
860 "-DDEFAULT_ICU_PLUGINS=\"/AppleInternal/lib/icu\" " -DU_LOCAL_SERVICE_HOOK=1 icuuc40shim.rc; \
861 LINK.EXE /DLL /NXCOMPAT /SAFESEH /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
862 /IMPLIB:../lib/shim/icuuc.lib /out:../lib/icuuc40.dll \
863 icuuc40shim.o icuuc40shim.res ../lib/libicuuc.lib ../stubdata/icudt.lib advapi32.lib; \
864 mt.exe -nologo -manifest ../lib/icuuc40.dll.manifest -outputresource:"../lib/icuuc40.dll;2"; \
867 rm -f icuin40shim.o; \
868 rm -f ../lib/icuin40.dll.manifest; \
869 cl -DU_DISABLE_RENAMING=1 -DU_ICU_VERSION_BUILDLEVEL_NUM=$(ICU_BUILD) \
870 -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../common \
871 -DU_LOCAL_SERVICE_HOOK=1 -DWIN32 -DU_I18N_IMPLEMENTATION \
872 /O2 /Ob2 /MD /GF /GS /Zi /nologo /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /EHsc /Zc:wchar_t \
873 /c /Foicuin40shim.o icuin40shim.cpp; \
874 rc.exe /foicuin40shim.res $(CPPFLAGS) -DU_RELEASE=1 -D_CRT_SECURE_NO_DEPRECATE -I. -I../common \
875 "-DDEFAULT_ICU_PLUGINS=\"/AppleInternal/lib/icu\" " -DU_LOCAL_SERVICE_HOOK=1 icuin40shim.rc; \
876 LINK.EXE /DLL /NXCOMPAT /SAFESEH /DYNAMICBASE /DEBUG /OPT:REF /MANIFEST \
877 /IMPLIB:../lib/shim/icuin.lib /out:../lib/icuin40.dll \
878 icuin40shim.o icuin40shim.res ../lib/libicuin.lib ../stubdata/icudt.lib advapi32.lib; \
879 mt.exe -nologo -manifest ../lib/icuin40.dll.manifest -outputresource:"../lib/icuin40.dll;2"; \
884 if test "$(LINUX)" = "YES"; then \
885 if test "$(ARCH64)" = "YES"; then \
886 $($(ENV_$@)) $(CXX) \
887 -m64 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden \
888 $(CXXFLAGS) $(LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname,$($(INSTALLED_DYLIB_$@)) -Wl,-L/usr/lib64/ -ldl \
889 -o ./$($(INSTALLED_DYLIB_$@)) $(DYLIB_OBJS); \
891 $($(ENV_$@)) $(CXX) \
892 -m32 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden \
893 $(CXXFLAGS) $(LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname,$($(INSTALLED_DYLIB_$@)) -ldl \
894 -o ./$($(INSTALLED_DYLIB_$@)) $(DYLIB_OBJS); \
897 tmpfile=`mktemp -t weakexternal.XXXXXX` || exit 1; \
898 $(NM) -m $(RC_ARCHS:%=-arch %) $(DYLIB_OBJS) | fgrep "weak external" | fgrep -v "undefined" | sed -e 's/.*weak external[^_]*//' | sort | uniq | cat >$$tmpfile; \
899 $($(ENV_$@)) $(CXX) -current_version $(ICU_VERS).$(ICU_SUBVERS) -compatibility_version 1 -dynamiclib -dynamic \
900 $(RC_ARCHS:%=-arch %) $(ICU_TARGET_VERSION) -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG) \
901 $(CXXFLAGS) $(LDFLAGS) -single_module $(SECTORDER_FLAGS) -unexported_symbols_list $$tmpfile -dead_strip \
902 -install_name $(libdir)$($(INSTALLED_DYLIB_$@)) -o ./$($(INSTALLED_DYLIB_$@)) $(DYLIB_OBJS); \
903 if test "$@" = "icu"; then \
904 ln -fs $(INSTALLED_DYLIB) $(DYLIB); \
905 $($(ENV_$@)) $(CXX) $(RC_ARCHS:%=-arch %) -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden $(ISYSROOT) $(THUMB_FLAG) \
906 $(LDFLAGS) -dead_strip -o ./$(INFOTOOL) $(INFOTOOL_OBJS) -L./ -l$(LIB_NAME) ; \
909 if test -f ./$(DATA_BUILD_SUBDIR)/$(B_DATA_FILE); then \
910 ln -fs ./$(DATA_BUILD_SUBDIR)/$(B_DATA_FILE); \
912 if test -f ./$(DATA_BUILD_SUBDIR)/$(L_DATA_FILE); then \
913 ln -fs ./$(DATA_BUILD_SUBDIR)/$(L_DATA_FILE); \
915 DYLD_LIBRARY_PATH=$(ICUPKGTOOLIBS) \
916 $(ICUPKGTOOL) -tl ./$(DATA_BUILD_SUBDIR)/$(B_DATA_FILE) $(L_DATA_FILE); \
921 crossbuildhost : $(CROSSHOST_OBJROOT)/Makefile
922 echo "# make for crossbuild host";
923 (cd $(CROSSHOST_OBJROOT); \
924 $(MAKE) $($(ENV_BUILDHOST)); \
928 ifneq "$(CROSS_BUILD)" "YES"
929 (cd $(OBJROOT_CURRENT); \
930 ICU_DATA=$(OBJROOT_CURRENT) $(MAKE) $(ENV) check; \
933 $(warning check not supported for cross-build)
937 ifneq "$(CROSS_BUILD)" "YES"
938 (cd $(OBJROOT_CURRENT); \
939 ICU_DATA=$(OBJROOT_CURRENT) $(MAKE) $(ENV_DEBUG) check; \
942 $(warning check not supported for cross-build)
946 (cd $(OBJROOT_CURRENT)/samples; \
947 $(MAKE) $(ENV_DEBUG) $(LIBOVERRIDES); \
951 (cd $(OBJROOT_CURRENT)/extra; \
952 $(MAKE) $(ENV_DEBUG) $(LIBOVERRIDES); \
955 ifneq "$(CROSS_BUILD)" "YES"
956 $(OBJROOT_CURRENT)/Makefile :
958 $(OBJROOT_CURRENT)/Makefile : crossbuildhost
960 if test ! -d $(OBJROOT_CURRENT); then \
961 mkdir -p $(OBJROOT_CURRENT); \
963 cp -Rpf $(SRCROOT)/icuSources/* $(OBJROOT_CURRENT)/;
964 if test "$(WINDOWS)" = "YES"; then \
965 echo "# configure for target"; \
966 (cd $(OBJROOT_CURRENT)/data/unidata; mv base_unidata/*.txt .;); \
967 (cd $(OBJROOT_CURRENT)/data/unidata/norm2; mv base_norm2/*.txt .;); \
968 (cd $(OBJROOT_CURRENT)/data/in; mv base_in/*.nrm .; mv base_in/*.icu .;); \
969 (cd $(OBJROOT_CURRENT); $(ENV_CONFIGURE) ./runConfigureICU Cygwin/MSVC $(CONFIG_FLAGS);) \
970 elif test "$(LINUX)" = "YES"; then \
971 echo "# configure for target"; \
972 (cd $(OBJROOT_CURRENT)/data/unidata; mv base_unidata/*.txt .;); \
973 (cd $(OBJROOT_CURRENT)/data/unidata/norm2; mv base_norm2/*.txt .;); \
974 (cd $(OBJROOT_CURRENT)/data/in; mv base_in/*.nrm .; mv base_in/*.icu .;); \
975 (cd $(OBJROOT_CURRENT); $(ENV_CONFIGURE) ./runConfigureICU Linux $(CONFIG_FLAGS);) \
976 elif test "$(CROSS_BUILD)" = "YES"; then \
977 echo "# configure for crossbuild target"; \
978 (cd $(OBJROOT_CURRENT); $(ENV_CONFIGURE) ./configure --host=$(TARGET_SPEC) --with-cross-build=$(CROSSHOST_OBJROOT) $(CONFIG_FLAGS);) \
980 echo "# configure for non-crossbuild target"; \
981 (cd $(OBJROOT_CURRENT); $(ENV_CONFIGURE) ./runConfigureICU MacOSX $(CONFIG_FLAGS);) \
983 if test "$(APPLE_EMBEDDED)" = "YES"; then \
984 (cd $(OBJROOT_CURRENT)/common/unicode/; patch <$(SRCROOT)/minimalpatchconfig.txt;) \
985 elif test "$(WINDOWS)" = "YES"; then \
986 (cd $(OBJROOT_CURRENT)/common/unicode/; patch <$(SRCROOT)/windowspatchconfig.txt;) \
988 (cd $(OBJROOT_CURRENT)/common/unicode/; patch <$(SRCROOT)/patchconfig.txt;) \
991 # for the tools that build the data file, cannot set UDATA_DEFAULT_ACCESS = UDATA_ONLY_PACKAGES
992 # as minimalpatchconfig.txt does; need different patches for the host build.
993 $(CROSSHOST_OBJROOT)/Makefile :
994 if test ! -d $(CROSSHOST_OBJROOT); then \
995 mkdir -p $(CROSSHOST_OBJROOT); \
997 cp -Rpf $(SRCROOT)/icuSources/* $(CROSSHOST_OBJROOT);
998 echo "# configure for crossbuild host";
999 (cd $(CROSSHOST_OBJROOT); $(ENV_CONFIGURE_BUILDHOST) ./runConfigureICU MacOSX $(CONFIG_FLAGS);)
1000 (cd $(CROSSHOST_OBJROOT)/common/unicode/; patch <$(SRCROOT)/crosshostpatchconfig.txt;)
1002 #################################
1004 #################################
1006 # Since our sources are in icuSources (ignore the ICU subdirectory for now), we wish to
1007 # copy them to somewhere else. We tar it to stdout, cd to the appropriate directory, and
1008 # untar from stdin. We then look for all the CVS directories and remove them. We may have
1009 # to remove the .cvsignore files also.
1012 if test ! -d $(SRCROOT); then mkdir $(SRCROOT); fi;
1013 if test -d $(SRCROOT)/icuSources ; then rm -rf $(SRCROOT)/icuSources; fi;
1014 tar cf - ./makefile ./ICU.plist ./license.html ./icuSources ./cldrFiles $(INSTALLSRC_VARFILES) | (cd $(SRCROOT) ; tar xfp -); \
1015 for i in `find $(SRCROOT)/icuSources/ | grep "CVS$$"` ; do \
1016 if test -d $$i ; then \
1020 for j in `find $(SRCROOT)/icuSources/ | grep ".cvsignore"` ; do \
1021 if test -f $$j ; then \
1026 # This works. Just not for ~ in the DEST_ROOT. We run configure first (in case it hasn't
1027 # been already). Then we make the install-headers target on specific makefiles (since
1028 # not every subdirectory/sub-component has a install-headers target).
1030 # installhdrs should be no-op for RC_INDIGO
1031 ifeq "$(RC_INDIGO)" "YES"
1034 installhdrs : installhdrsint
1037 installhdrsint : $(OBJROOT_CURRENT)/Makefile
1038 (cd $(OBJROOT_CURRENT); \
1039 for subdir in $(HDR_MAKE_SUBDIR); do \
1040 (cd $$subdir; $(MAKE) -e DESTDIR=$(DEST_ROOT) $(ENV) install-headers); \
1042 if test "$(APPLE_EMBEDDED)" = "YES"; then \
1043 if test ! -d $(DEST_ROOT)$(HDR_PREFIX)/include/unicode/; then \
1044 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(HDR_PREFIX)/include/unicode/; \
1046 if test -d $(DEST_ROOT)$(PRIVATE_HDR_PREFIX)/include/unicode/; then \
1047 (cd $(DEST_ROOT)$(PRIVATE_HDR_PREFIX)/include/unicode; \
1049 if fgrep -q -x $$i $(SRCROOT)/minimalapis.txt ; then \
1050 mv $$i $(DEST_ROOT)$(HDR_PREFIX)/include/unicode ; \
1053 $(CC) $(SRCROOT)/minimalapisTest.c $(INSTALLHDRS_ARCH) $(ISYSROOT) -nostdinc \
1054 -I $(DEST_ROOT)$(HDR_PREFIX)/include/ -I $(SDKPATH)/usr/include/ -E > /dev/null ; \
1056 if test ! -d $(DEST_ROOT)$(CLDRFILESDIR)/; then \
1057 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(CLDRFILESDIR)/; \
1059 $(INSTALL) -b -m 0644 $(SRCROOT)/cldrFiles/supplementalData.xml $(DEST_ROOT)$(CLDRFILESDIR)/supplementalData.xml; \
1063 # We run configure and run make first. This generates the .o files. We then link them
1064 # all up together into libicucore. Then we put it into its install location, create
1065 # symbolic links, and then strip the main dylib. Then install the remaining libraries.
1066 # We cleanup the sources folder.
1068 install : installhdrsint icu
1069 if test "$(WINDOWS)" = "YES"; then \
1070 if test ! -d $(DEST_ROOT)$(winprogdir)/; then \
1071 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(winprogdir)/; \
1073 if test ! -d $(DEST_ROOT)$(winintlibdir)/; then \
1074 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(winintlibdir)/; \
1076 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuuc.lib $(DEST_ROOT)$(winintlibdir)libicuuc.lib; \
1077 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuuc.pdb $(DEST_ROOT)$(winprogdir)libicuuc.pdb; \
1078 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/libicuuc.dll $(DEST_ROOT)$(winprogdir)libicuuc.dll; \
1079 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuin.lib $(DEST_ROOT)$(winintlibdir)libicuin.lib; \
1080 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuin.pdb $(DEST_ROOT)$(winprogdir)libicuin.pdb; \
1081 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/libicuin.dll $(DEST_ROOT)$(winprogdir)libicuin.dll; \
1082 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/icudt$(ICU_VERS).dll $(DEST_ROOT)$(winprogdir)icudt$(ICU_VERS).dll; \
1083 if test "$(ARCH64)" != "YES"; then \
1084 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/shim/icuuc.lib $(DEST_ROOT)$(winintlibdir)icuuc.lib; \
1085 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/icuuc40.pdb $(DEST_ROOT)$(winprogdir)icuuc40.pdb; \
1086 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/icuuc40.dll $(DEST_ROOT)$(winprogdir)icuuc40.dll; \
1087 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/shim/icuin.lib $(DEST_ROOT)$(winintlibdir)icuin.lib; \
1088 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/icuin40.pdb $(DEST_ROOT)$(winprogdir)icuin40.pdb; \
1089 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/icuin40.dll $(DEST_ROOT)$(winprogdir)icuin40.dll; \
1092 if test ! -d $(DEST_ROOT)$(libdir)/; then \
1093 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(libdir)/; \
1095 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(INSTALLED_DYLIB) $(DEST_ROOT)$(libdir)$(INSTALLED_DYLIB); \
1096 if test "$(LINUX)" = "YES"; then \
1097 cp $(OBJROOT_CURRENT)/$(INSTALLED_DYLIB) $(SYMROOT_CURRENT)/$(INSTALLED_DYLIB); \
1098 strip -x -S $(DEST_ROOT)$(libdir)$(INSTALLED_DYLIB); \
1100 (cd $(DEST_ROOT)$(libdir); \
1101 ln -fs $(INSTALLED_DYLIB) $(DYLIB)); \
1102 cp $(OBJROOT_CURRENT)/$(INSTALLED_DYLIB) $(SYMROOT_CURRENT)/$(INSTALLED_DYLIB); \
1103 if test "$(APPLE_EMBEDDED)" = "NO"; then \
1104 $(DSYMTOOL) -o $(SYMROOT_CURRENT)/$(INSTALLED_DYLIB)$(DSYMSUFFIX) $(SYMROOT_CURRENT)/$(INSTALLED_DYLIB); \
1106 $(STRIPCMD) -x -u -r -S $(DEST_ROOT)$(libdir)$(INSTALLED_DYLIB); \
1108 for subdir in $(EXTRA_LIBS); do \
1109 (cd $(OBJROOT_CURRENT)/$$subdir; $(MAKE) -e DESTDIR=$(DEST_ROOT) $(ENV) install-library;) \
1111 if test ! -d $(DEST_ROOT)$(DATA_INSTALL_DIR)/; then \
1112 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(DATA_INSTALL_DIR)/; \
1114 if test -f $(OBJROOT_CURRENT)/$(L_DATA_FILE); then \
1115 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/$(L_DATA_FILE) $(DEST_ROOT)$(DATA_INSTALL_DIR)$(L_DATA_FILE); \
1117 if test ! -d $(DEST_ROOT)$(OPEN_SOURCE_VERSIONS_DIR)/; then \
1118 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(OPEN_SOURCE_VERSIONS_DIR)/; \
1120 $(INSTALL) -b -m 0644 $(SRCROOT)/ICU.plist $(DEST_ROOT)$(OPEN_SOURCE_VERSIONS_DIR)ICU.plist; \
1121 if test ! -d $(DEST_ROOT)$(OPEN_SOURCE_LICENSES_DIR)/; then \
1122 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(OPEN_SOURCE_LICENSES_DIR)/; \
1124 $(INSTALL) -b -m 0644 $(SRCROOT)/license.html $(DEST_ROOT)$(OPEN_SOURCE_LICENSES_DIR)ICU.html; \
1125 if test -f $(OBJROOT_CURRENT)/$(INFOTOOL); then \
1126 if test ! -d $(DEST_ROOT)$(localtooldir)/; then \
1127 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(localtooldir)/; \
1129 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/$(INFOTOOL) $(DEST_ROOT)$(localtooldir)$(INFOTOOL); \
1130 if test "$(LINUX)" != "YES"; then \
1131 cp $(OBJROOT_CURRENT)/$(INFOTOOL) $(SYMROOT_CURRENT)/$(INFOTOOL); \
1132 if test "$(APPLE_EMBEDDED)" = "NO"; then \
1133 $(DSYMTOOL) -o $(SYMROOT_CURRENT)/$(INFOTOOL)$(DSYMSUFFIX) $(SYMROOT_CURRENT)/$(INFOTOOL); \
1139 DEPEND_install_debug = debug
1140 DEPEND_install_profile = profile
1143 install_debug install_profile : $$(DEPEND_$$@)
1144 if test "$(WINDOWS)" = "YES"; then \
1145 if test ! -d $(DEST_ROOT)$(winprogdir)/; then \
1146 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(winprogdir)/; \
1148 if test ! -d $(DEST_ROOT)$(winintlibdir)/; then \
1149 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(winintlibdir)/; \
1151 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuuc_$(DEPEND_$@).lib $(DEST_ROOT)$(winintlibdir)libicuuc_$(DEPEND_$@).lib; \
1152 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuuc_$(DEPEND_$@).pdb $(DEST_ROOT)$(winprogdir)libicuuc_$(DEPEND_$@).pdb; \
1153 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/libicuuc_$(DEPEND_$@).dll $(DEST_ROOT)$(winprogdir)libicuuc_$(DEPEND_$@).dll; \
1154 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuin_$(DEPEND_$@).lib $(DEST_ROOT)$(winintlibdir)libicuin_$(DEPEND_$@).lib; \
1155 $(INSTALL) -b -m 0644 $(OBJROOT_CURRENT)/lib/libicuin_$(DEPEND_$@).pdb $(DEST_ROOT)$(winprogdir)libicuin_$(DEPEND_$@).pdb; \
1156 $(INSTALL) -b -m 0755 $(OBJROOT_CURRENT)/lib/libicuin_$(DEPEND_$@).dll $(DEST_ROOT)$(winprogdir)libicuin_$(DEPEND_$@).dll; \
1158 if test ! -d $(DEST_ROOT)$(libdir)/; then \
1159 $(INSTALL) -d -m 0755 $(DEST_ROOT)$(libdir)/; \
1161 $(INSTALL) -b -m 0664 $(OBJROOT_CURRENT)/$($(INSTALLED_DYLIB_$(DEPEND_$@))) $(DEST_ROOT)$(libdir)$($(INSTALLED_DYLIB_$(DEPEND_$@))); \
1162 if test "$(LINUX)" = "YES"; then \
1163 cp $(OBJROOT_CURRENT)/$($(INSTALLED_DYLIB_$(DEPEND_$@))) $(SYMROOT_CURRENT)/$($(INSTALLED_DYLIB_$(DEPEND_$@))); \
1164 strip -x -S $(DEST_ROOT)$(libdir)$($(INSTALLED_DYLIB_$(DEPEND_$@))); \
1166 (cd $(DEST_ROOT)$(libdir); \
1167 ln -fs $($(INSTALLED_DYLIB_$(DEPEND_$@))) $($(DYLIB_$(DEPEND_$@)))); \
1168 cp $(OBJROOT_CURRENT)/$($(INSTALLED_DYLIB_$(DEPEND_$@))) $(SYMROOT_CURRENT)/$($(INSTALLED_DYLIB_$(DEPEND_$@))); \
1169 $(STRIPCMD) -x -u -r -S $(DEST_ROOT)$(libdir)$($(INSTALLED_DYLIB_$(DEPEND_$@))); \
1171 for subdir in $(EXTRA_LIBS); do \
1172 (cd $(OBJROOT_CURRENT)/$$subdir; $(MAKE) -e DESTDIR=$(DEST_ROOT) $(ENV) install-library;) \