intl/icu/Makefile.in

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 STANDALONE_MAKEFILE = 1
michael@0 6
michael@0 7 # Ensure that this happens before including rules.mk
michael@0 8 ifdef ENABLE_INTL_API
michael@0 9 ifndef MOZ_NATIVE_ICU
michael@0 10 # Library names: On Windows, ICU uses modified library names for static
michael@0 11 # and debug libraries.
michael@0 12 ifeq ($(OS_ARCH),WINNT)
michael@0 13 ifdef MOZ_DEBUG
michael@0 14 ICU_LIB_SUFFIX=d
michael@0 15 endif
michael@0 16 endif # WINNT
michael@0 17 ifdef MOZ_SHARED_ICU
michael@0 18 ifeq ($(OS_ARCH),WINNT)
michael@0 19 ifdef JS_SHARED_LIBRARY
michael@0 20 ICU_FILES := $(foreach libname,$(ICU_LIB_NAMES),$(DEPTH)/intl/icu/target/lib/$(libname)$(ICU_LIB_SUFFIX)$(MOZ_ICU_VERSION).dll)
michael@0 21 endif
michael@0 22 else # ! WINNT
michael@0 23 ifeq ($(OS_ARCH),Darwin)
michael@0 24 ifdef JS_SHARED_LIBRARY
michael@0 25 ICU_FILES := $(foreach libname,$(ICU_LIB_NAMES),$(DEPTH)/intl/icu/target/lib/$(DLL_PREFIX)$(libname).$(MOZ_ICU_VERSION)$(DLL_SUFFIX))
michael@0 26 endif
michael@0 27 else # ! Darwin
michael@0 28 ifdef JS_SHARED_LIBRARY
michael@0 29 ICU_FILES := $(foreach libname,$(ICU_LIB_NAMES),$(DEPTH)/intl/icu/target/lib/$(DLL_PREFIX)$(libname)$(DLL_SUFFIX).$(MOZ_ICU_VERSION))
michael@0 30 endif
michael@0 31 endif
michael@0 32 endif # WINNT
michael@0 33 ifdef ICU_FILES
michael@0 34 ICU_DEST := $(DIST)/bin
michael@0 35 INSTALL_TARGETS += ICU
michael@0 36 $(ICU_FILES): buildicu
michael@0 37 ICU_TARGET := default
michael@0 38 endif
michael@0 39 else # !MOZ_SHARED_ICU
michael@0 40 ifeq ($(OS_ARCH),WINNT)
michael@0 41 ICU_LIB_RENAME = $(foreach libname,$(ICU_LIB_NAMES),\
michael@0 42 cp -p $(DEPTH)/intl/icu/target/lib/s$(libname)$(ICU_LIB_SUFFIX).lib $(DEPTH)/intl/icu/target/lib/$(libname).lib;)
michael@0 43 endif
michael@0 44 endif # MOZ_SHARED_ICU
michael@0 45 endif # !MOZ_NATIVE_ICU
michael@0 46 endif # ENABLE_INTL_API
michael@0 47
michael@0 48 include $(topsrcdir)/config/rules.mk
michael@0 49
michael@0 50 ifdef ENABLE_INTL_API
michael@0 51 ifndef MOZ_NATIVE_ICU
michael@0 52 ifdef .PYMAKE
michael@0 53 ICU_MAKE = $(GMAKE)
michael@0 54 else
michael@0 55 ICU_MAKE = $(MAKE)
michael@0 56 endif
michael@0 57
michael@0 58 default:: buildicu
michael@0 59
michael@0 60 # - ICU requires GNU make according to its readme.html. pymake can't be used
michael@0 61 # because it doesn't support order only dependencies.
michael@0 62 # - Force ICU to use the standard suffix for object files because expandlibs
michael@0 63 # will discard all files with a non-standard suffix (bug 857450).
michael@0 64 # - Options for genrb: -k strict parsing; -R omit collation tailoring rules.
michael@0 65 buildicu::
michael@0 66 # ICU's build system is full of races, so force non-parallel build.
michael@0 67 ifdef CROSS_COMPILE
michael@0 68 +$(ICU_MAKE) -j1 -C host STATIC_O=$(OBJ_SUFFIX) GENRBOPTS='-k -R -C'
michael@0 69 endif
michael@0 70 +$(ICU_MAKE) -j1 -C target STATIC_O=$(OBJ_SUFFIX) GENRBOPTS='-k -R'
michael@0 71 $(ICU_LIB_RENAME)
michael@0 72
michael@0 73 distclean clean::
michael@0 74 ifdef CROSS_COMPILE
michael@0 75 +$(ICU_MAKE) -C host $@ STATIC_O=$(OBJ_SUFFIX)
michael@0 76 endif
michael@0 77 +$(ICU_MAKE) -C target $@ STATIC_O=$(OBJ_SUFFIX)
michael@0 78
michael@0 79 endif
michael@0 80 endif

mercurial