2000-10-24 19:50:20 +00:00
|
|
|
# Make definitions that are shared by the different subprojects of ICU.
|
|
|
|
#
|
|
|
|
# Yves Arrouye.
|
|
|
|
#
|
2016-06-15 18:58:17 +00:00
|
|
|
# Copyright (C) 2016 and later: Unicode, Inc. and others.
|
|
|
|
# License & terms of use: http://www.unicode.org/copyright.html
|
2016-05-31 21:45:07 +00:00
|
|
|
# Copyright (C) 2000-2016, International Business Machines Corporation and others.
|
|
|
|
# All Rights Reserved.
|
2000-10-24 19:50:20 +00:00
|
|
|
|
2001-10-03 23:32:12 +00:00
|
|
|
#
|
|
|
|
# Some of these variables are overridden in the config/mh-* files.
|
2014-09-10 02:20:50 +00:00
|
|
|
#
|
2008-05-29 20:41:30 +00:00
|
|
|
# Please be sure to update config/Makefile.inc.in if you add something here.
|
2001-10-03 23:32:12 +00:00
|
|
|
#
|
|
|
|
|
2000-10-24 19:50:20 +00:00
|
|
|
# Shell to use
|
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
|
2019-03-06 00:51:49 +00:00
|
|
|
# Instruct Python to never write any byte code to the ICU source tree.
|
|
|
|
export PYTHONDONTWRITEBYTECODE = 1
|
|
|
|
|
2000-10-24 19:50:20 +00:00
|
|
|
# Standard directories
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
2008-04-28 19:50:40 +00:00
|
|
|
datarootdir = @datarootdir@
|
2000-10-24 19:50:20 +00:00
|
|
|
datadir = @datadir@
|
|
|
|
libdir = @libdir@
|
|
|
|
includedir = @includedir@
|
|
|
|
mandir = @mandir@
|
|
|
|
sysconfdir = @sysconfdir@
|
2009-04-01 01:54:14 +00:00
|
|
|
# controls the include of $(top_builddir)/icucross.mk at bottom of file
|
|
|
|
cross_compiling = @cross_compiling@
|
|
|
|
cross_buildroot = @cross_buildroot@
|
2000-10-24 19:50:20 +00:00
|
|
|
|
|
|
|
# Package information
|
|
|
|
|
2010-08-30 18:59:02 +00:00
|
|
|
PACKAGE_ICU_DESCRIPTION = "International Components for Unicode"
|
|
|
|
PACKAGE_ICU_URL = "http://icu-project.org"
|
2000-10-24 19:50:20 +00:00
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
UNICODE_VERSION = @UNICODE_VERSION@
|
2001-11-01 18:34:53 +00:00
|
|
|
SO_TARGET_VERSION = @LIB_VERSION@
|
|
|
|
SO_TARGET_VERSION_MAJOR = @LIB_VERSION_MAJOR@
|
2000-10-24 19:50:20 +00:00
|
|
|
|
2001-12-21 20:10:23 +00:00
|
|
|
# The ICU data external name is usually icudata; the entry point name is
|
2004-06-15 17:49:56 +00:00
|
|
|
# the version-dependent name (for no particular reason except it was easier
|
2001-12-21 20:10:23 +00:00
|
|
|
# to change the build this way). When building in common mode, the data
|
|
|
|
# name is the versioned platform-dependent one.
|
|
|
|
|
2002-03-02 22:16:01 +00:00
|
|
|
ICUDATA_DIR = @pkgicudatadir@/$(PACKAGE)$(ICULIBSUFFIX)/$(VERSION)
|
2002-01-31 01:02:36 +00:00
|
|
|
|
2002-02-12 20:04:52 +00:00
|
|
|
ICUDATA_BASENAME_VERSION = $(ICUPREFIX)dt@LIB_VERSION_MAJOR@
|
2009-09-08 05:31:42 +00:00
|
|
|
# the entry point is almost like the basename, but has the lib suffix.
|
|
|
|
ICUDATA_ENTRY_POINT = $(ICUPREFIX)dt@ICULIBSUFFIXCNAME@@LIB_VERSION_MAJOR@
|
2004-12-04 01:25:57 +00:00
|
|
|
ICUDATA_CHAR = @ICUDATA_CHAR@
|
|
|
|
ICUDATA_PLATFORM_NAME = $(ICUDATA_BASENAME_VERSION)$(ICUDATA_CHAR)
|
2004-05-17 06:37:28 +00:00
|
|
|
PKGDATA_LIBSTATICNAME = -L $(STATIC_PREFIX)$(ICUPREFIX)$(DATA_STUBNAME)$(ICULIBSUFFIX)
|
2000-11-22 07:59:09 +00:00
|
|
|
ifeq ($(strip $(PKGDATA_MODE)),)
|
|
|
|
PKGDATA_MODE=@DATA_PACKAGING_MODE@
|
|
|
|
endif
|
|
|
|
ifeq ($(PKGDATA_MODE),common)
|
2001-12-21 20:10:23 +00:00
|
|
|
ICUDATA_NAME = $(ICUDATA_PLATFORM_NAME)
|
2001-11-10 02:21:37 +00:00
|
|
|
ICUPKGDATA_DIR = $(ICUDATA_DIR)
|
2000-11-22 07:59:09 +00:00
|
|
|
else
|
2001-11-10 01:54:17 +00:00
|
|
|
ifeq ($(PKGDATA_MODE),dll)
|
2004-04-14 19:37:00 +00:00
|
|
|
ICUDATA_NAME = $(ICUDATA_PLATFORM_NAME)
|
2004-04-19 17:32:30 +00:00
|
|
|
PKGDATA_LIBNAME = -L $(ICUPREFIX)$(DATA_STUBNAME)$(ICULIBSUFFIX)
|
2001-11-10 01:54:17 +00:00
|
|
|
ICUPKGDATA_DIR = $(libdir)
|
|
|
|
else
|
2009-09-25 01:56:41 +00:00
|
|
|
ifeq ($(PKGDATA_MODE),static)
|
|
|
|
ICUDATA_NAME = $(ICUDATA_PLATFORM_NAME)
|
|
|
|
PKGDATA_LIBNAME = -L $(ICUPREFIX)$(DATA_STUBNAME)$(ICULIBSUFFIX)
|
|
|
|
ICUPKGDATA_DIR = $(libdir)
|
|
|
|
else
|
2004-06-15 17:49:56 +00:00
|
|
|
ICUDATA_NAME = $(ICUDATA_PLATFORM_NAME)
|
2001-11-10 02:21:37 +00:00
|
|
|
ICUPKGDATA_DIR = $(ICUDATA_DIR)
|
2001-11-10 01:54:17 +00:00
|
|
|
endif
|
2000-11-22 07:59:09 +00:00
|
|
|
endif
|
2009-09-25 01:56:41 +00:00
|
|
|
endif
|
2000-11-22 05:08:51 +00:00
|
|
|
|
2004-06-17 18:14:07 +00:00
|
|
|
# These are defined here because mh-cygwin-msvc needs to override these values.
|
|
|
|
ICUPKGDATA_INSTALL_DIR = $(DESTDIR)$(ICUPKGDATA_DIR)
|
|
|
|
ICUPKGDATA_INSTALL_LIBDIR = $(DESTDIR)$(libdir)
|
|
|
|
|
2004-03-02 00:38:39 +00:00
|
|
|
# If defined to a valid value, pkgdata will generate a data library more quickly
|
|
|
|
GENCCODE_ASSEMBLY = @GENCCODE_ASSEMBLY@
|
|
|
|
|
2000-10-24 19:50:20 +00:00
|
|
|
# ICU specific directories
|
|
|
|
|
2002-03-02 22:16:01 +00:00
|
|
|
pkgdatadir = $(datadir)/$(PACKAGE)$(ICULIBSUFFIX)/$(VERSION)
|
|
|
|
pkglibdir = $(libdir)/$(PACKAGE)$(ICULIBSUFFIX)/$(VERSION)
|
2002-03-02 22:25:56 +00:00
|
|
|
pkgsysconfdir = $(sysconfdir)/$(PACKAGE)$(ICULIBSUFFIX)
|
2000-10-24 19:50:20 +00:00
|
|
|
|
|
|
|
# Installation programs
|
|
|
|
|
|
|
|
MKINSTALLDIRS = $(SHELL) $(top_srcdir)/mkinstalldirs
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
2012-04-02 05:44:59 +00:00
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
2000-10-24 19:50:20 +00:00
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
|
|
|
2001-09-21 03:41:21 +00:00
|
|
|
# Library suffix (to support different C++ compilers)
|
|
|
|
|
|
|
|
ICULIBSUFFIX=@ICULIBSUFFIX@
|
|
|
|
|
2000-10-24 19:50:20 +00:00
|
|
|
# Compiler and tools
|
|
|
|
|
2004-01-12 22:01:28 +00:00
|
|
|
ENABLE_DEBUG = @ENABLE_DEBUG@
|
|
|
|
ENABLE_RELEASE = @ENABLE_RELEASE@
|
2002-04-19 02:19:24 +00:00
|
|
|
EXEEXT = @EXEEXT@
|
2000-10-24 19:50:20 +00:00
|
|
|
CC = @CC@
|
|
|
|
CXX = @CXX@
|
2002-03-12 03:51:04 +00:00
|
|
|
AR = @AR@
|
2007-07-13 08:10:41 +00:00
|
|
|
ARFLAGS = @ARFLAGS@ r
|
2002-03-12 03:51:04 +00:00
|
|
|
RANLIB = @RANLIB@
|
2003-05-23 03:45:30 +00:00
|
|
|
COMPILE_LINK_ENVVAR = @COMPILE_LINK_ENVVAR@
|
2009-09-03 20:40:02 +00:00
|
|
|
UCLN_NO_AUTO_CLEANUP = @UCLN_NO_AUTO_CLEANUP@
|
2017-04-06 21:21:34 +00:00
|
|
|
SED = @SED@
|
2000-10-24 19:50:20 +00:00
|
|
|
|
2002-04-19 02:19:24 +00:00
|
|
|
# Various flags for the tools
|
|
|
|
|
2004-07-18 09:00:39 +00:00
|
|
|
# DEFS is for common macro definitions.
|
|
|
|
# configure prevents user defined DEFS, and configure's DEFS is not needed
|
|
|
|
# So we ignore the DEFS that comes from configure
|
2011-06-10 18:56:08 +00:00
|
|
|
# U_ATTRIBUTE_DEPRECATED is defined to hide warnings about deprecated API warnings.
|
|
|
|
DEFS = -DU_ATTRIBUTE_DEPRECATED=
|
2002-05-13 23:51:50 +00:00
|
|
|
# CFLAGS is for C only flags
|
2002-04-19 02:19:24 +00:00
|
|
|
CFLAGS = @CFLAGS@
|
2002-05-13 23:51:50 +00:00
|
|
|
# CXXFLAGS is for C++ only flags
|
2002-04-19 02:19:24 +00:00
|
|
|
CXXFLAGS = @CXXFLAGS@
|
2002-05-13 23:51:50 +00:00
|
|
|
# CPPFLAGS is for C Pre-Processor flags
|
2002-07-30 21:16:13 +00:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
2007-06-04 05:52:08 +00:00
|
|
|
# LIBCFLAGS are the flags for static and shared libraries.
|
|
|
|
LIBCFLAGS = @LIBCFLAGS@
|
|
|
|
# LIBCXXFLAGS are the flags for static and shared libraries.
|
|
|
|
LIBCXXFLAGS = @LIBCXXFLAGS@
|
2002-05-13 23:51:50 +00:00
|
|
|
# DEFAULT_LIBS are the default libraries to link against
|
2002-04-19 02:19:24 +00:00
|
|
|
DEFAULT_LIBS = @LIBS@
|
2002-05-13 23:51:50 +00:00
|
|
|
# LIB_M is for linking against the math library
|
2002-04-19 02:19:24 +00:00
|
|
|
LIB_M = @LIB_M@
|
2007-06-26 01:52:09 +00:00
|
|
|
# LIB_THREAD is for linking against the threading library
|
|
|
|
LIB_THREAD = @LIB_THREAD@
|
2003-02-11 00:13:48 +00:00
|
|
|
# OUTOPT is for creating a specific output name
|
2007-06-26 01:52:09 +00:00
|
|
|
OUTOPT = -o # The extra space after the argument is needed.
|
2007-07-13 08:10:41 +00:00
|
|
|
# AR_OUTOPT is for creating a specific output name for static libraries.
|
|
|
|
AR_OUTOPT =
|
2002-04-19 02:19:24 +00:00
|
|
|
|
|
|
|
ENABLE_RPATH = @ENABLE_RPATH@
|
|
|
|
ifeq ($(ENABLE_RPATH),YES)
|
|
|
|
RPATHLDFLAGS = $(LD_RPATH)$(LD_RPATH_PRE)$(libdir)
|
|
|
|
endif
|
|
|
|
LDFLAGS = @LDFLAGS@ $(RPATHLDFLAGS)
|
|
|
|
|
|
|
|
# What kind of libraries are we building and linking against?
|
|
|
|
ENABLE_STATIC = @ENABLE_STATIC@
|
|
|
|
ENABLE_SHARED = @ENABLE_SHARED@
|
|
|
|
|
2000-10-24 19:50:20 +00:00
|
|
|
# Echo w/o newline
|
|
|
|
|
2010-06-17 19:50:26 +00:00
|
|
|
#ECHO_N = @ICU_ECHO_N@
|
|
|
|
#ECHO_C = @ICU_ECHO_C@
|
2000-10-24 19:50:20 +00:00
|
|
|
|
2001-10-03 23:32:12 +00:00
|
|
|
# Commands to compile
|
2002-05-13 23:51:50 +00:00
|
|
|
COMPILE.c= $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c
|
|
|
|
COMPILE.cc= $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c
|
2001-10-03 23:32:12 +00:00
|
|
|
|
|
|
|
# Commands to link
|
2016-02-26 11:25:33 +00:00
|
|
|
LINK.c= $(CC) $(CFLAGS) $(LDFLAGS) $(LINKFLAGS)
|
|
|
|
LINK.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS) $(LINKFLAGS)
|
2001-10-03 23:32:12 +00:00
|
|
|
|
|
|
|
# Commands to make a shared library
|
2009-07-14 16:50:23 +00:00
|
|
|
SHLIB.c= $(CC) $(CFLAGS) $(LDFLAGS) -shared $(LD_SOOPTIONS)
|
|
|
|
SHLIB.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(LD_SOOPTIONS)
|
2001-10-03 23:32:12 +00:00
|
|
|
|
2012-09-27 19:04:34 +00:00
|
|
|
# ICU_MSG
|
|
|
|
ICU_MSG=@echo " $(1) "
|
|
|
|
|
2012-09-11 00:00:37 +00:00
|
|
|
# Do not show the large compiling arguments by default.
|
|
|
|
# To use:
|
|
|
|
# change
|
|
|
|
# $(CC) -o foo
|
|
|
|
# to
|
|
|
|
# $(call SILENT_COMPILE,$(CC) -o foo)
|
|
|
|
ifndef VERBOSE
|
2012-09-27 19:04:34 +00:00
|
|
|
SILENT_COMPILE=$(call ICU_MSG,$(notdir $(firstword $(1)))) "... " $< && $(1) || \
|
2012-09-11 00:00:37 +00:00
|
|
|
( echo "*** Failed compilation command follows: ----------------------------------------------------------" ; \
|
|
|
|
echo "$(1)" ; \
|
|
|
|
echo "--- ( rebuild with \"$(MAKE) VERBOSE=1 $(MAKECMDGOALS)\" to show all parameters ) --------" ; \
|
|
|
|
false )
|
|
|
|
else
|
|
|
|
SILENT_COMPILE=$(1)
|
|
|
|
endif
|
|
|
|
|
2001-10-03 23:32:12 +00:00
|
|
|
# Environment variable to set a runtime search path
|
|
|
|
LDLIBRARYPATH_ENVVAR = LD_LIBRARY_PATH
|
|
|
|
|
|
|
|
# Versioned target for a shared library.
|
|
|
|
FINAL_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION)
|
|
|
|
MIDDLE_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION_MAJOR)
|
2005-09-20 20:41:08 +00:00
|
|
|
SHARED_OBJECT = $(FINAL_SO_TARGET)
|
2001-10-03 23:32:12 +00:00
|
|
|
|
|
|
|
## How ICU libraries are named... ex. $(LIBICU)uc$(SO)
|
|
|
|
# Prefix for the ICU library names
|
|
|
|
ICUPREFIX = icu
|
2004-04-05 21:24:22 +00:00
|
|
|
LIBPREFIX = lib
|
2004-04-28 06:34:25 +00:00
|
|
|
LIBICU = $(LIBPREFIX)$(ICUPREFIX)
|
2004-04-28 05:46:02 +00:00
|
|
|
|
|
|
|
## If we can't use the shared libraries, use the static libraries
|
|
|
|
ifneq ($(ENABLE_SHARED),YES)
|
2004-04-28 06:34:25 +00:00
|
|
|
STATIC_PREFIX_WHEN_USED = s
|
2004-04-28 05:46:02 +00:00
|
|
|
else
|
2004-04-28 06:34:25 +00:00
|
|
|
STATIC_PREFIX_WHEN_USED =
|
2004-04-28 05:46:02 +00:00
|
|
|
endif
|
2001-10-03 23:32:12 +00:00
|
|
|
|
2004-01-07 07:07:17 +00:00
|
|
|
# Static library prefix and file extension
|
|
|
|
STATIC_PREFIX = s
|
2004-04-05 21:24:22 +00:00
|
|
|
LIBSICU = $(LIBPREFIX)$(STATIC_PREFIX)$(ICUPREFIX)
|
2004-01-07 07:07:17 +00:00
|
|
|
A = a
|
2005-09-20 07:28:28 +00:00
|
|
|
SOBJ = $(SO)
|
2004-01-07 07:07:17 +00:00
|
|
|
|
2001-10-03 23:32:12 +00:00
|
|
|
# Force removal [for make clean]
|
|
|
|
RMV = rm -rf
|
2004-01-16 23:17:31 +00:00
|
|
|
|
2001-10-03 23:32:12 +00:00
|
|
|
# Platform commands to remove or move executable and library targets
|
2004-01-16 23:17:31 +00:00
|
|
|
# INSTALL-L installs libraries. Override in mh-* file to INSTALL_PROGRAM
|
|
|
|
# when the library needs to have executable permissions
|
2001-10-03 23:32:12 +00:00
|
|
|
INSTALL-S = $(INSTALL_PROGRAM)
|
2008-01-30 00:38:05 +00:00
|
|
|
INSTALL-L = $(INSTALL_PROGRAM)
|
|
|
|
#INSTALL-L = $(INSTALL_DATA)
|
2001-10-03 23:32:12 +00:00
|
|
|
|
2004-03-26 01:22:25 +00:00
|
|
|
# Location of the libraries before "make install" is used
|
|
|
|
LIBDIR=$(top_builddir)/lib
|
|
|
|
|
|
|
|
# Location of the executables before "make install" is used
|
|
|
|
BINDIR=$(top_builddir)/bin
|
|
|
|
|
2009-04-01 01:54:14 +00:00
|
|
|
# overridden by icucross.mk
|
|
|
|
TOOLBINDIR=$(BINDIR)
|
|
|
|
TOOLLIBDIR=$(LIBDIR)
|
|
|
|
|
2004-04-19 17:32:30 +00:00
|
|
|
# Name flexibility for the library naming scheme. Any modifications should
|
|
|
|
# be made in the mh- file for the specific platform.
|
|
|
|
DATA_STUBNAME = data
|
|
|
|
COMMON_STUBNAME = uc
|
|
|
|
I18N_STUBNAME = i18n
|
|
|
|
LAYOUTEX_STUBNAME = lx
|
|
|
|
IO_STUBNAME = io
|
|
|
|
TOOLUTIL_STUBNAME = tu
|
|
|
|
CTESTFW_STUBNAME = test
|
|
|
|
|
2014-09-10 02:20:50 +00:00
|
|
|
# get these from pkg-config, if available
|
|
|
|
ICULEHB_CFLAGS=@ICULEHB_CFLAGS@
|
|
|
|
ICULEHB_LIBS=@ICULEHB_LIBS@
|
|
|
|
ifneq ($(ICULEHB_CFLAGS),)
|
|
|
|
USING_ICULEHB=yes
|
|
|
|
ICULEHB_TRUE=
|
|
|
|
ICULEHB_FALSE=#
|
|
|
|
ICULIBS_LE=$(ICULEHB_LIBS)
|
|
|
|
ICULE_CFLAGS=$(ICULEHB_CFLAGS) -DUSING_ICULEHB
|
|
|
|
else
|
|
|
|
USING_ICULEHB=no
|
|
|
|
ICULEHB_TRUE=#
|
|
|
|
ICULEHB_FALSE=
|
|
|
|
endif
|
|
|
|
|
2010-08-30 18:59:02 +00:00
|
|
|
# Just the libs.
|
|
|
|
ICULIBS_DT = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(DATA_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX)
|
|
|
|
ICULIBS_UC = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(COMMON_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX)
|
|
|
|
ICULIBS_I18N = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(I18N_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX)
|
|
|
|
ICULIBS_LX = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(LAYOUTEX_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX)
|
|
|
|
ICULIBS_IO = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(IO_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX)
|
|
|
|
ICULIBS_CTESTFW = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(CTESTFW_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX)
|
|
|
|
ICULIBS_TOOLUTIL = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(TOOLUTIL_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX)
|
2001-10-03 23:32:12 +00:00
|
|
|
# Link commands to link to ICU libs
|
2010-08-30 18:59:02 +00:00
|
|
|
LLIBDIR = -L$(LIBDIR)
|
|
|
|
LSTUBDIR = -L$(top_builddir)/stubdata
|
|
|
|
LCTESTFW = -L$(top_builddir)/tools/ctestfw
|
|
|
|
|
|
|
|
LIBICUDT = $(LLIBDIR) $(LSTUBDIR) $(ICULIBS_DT)
|
|
|
|
LIBICUUC = $(LLIBDIR) $(ICULIBS_UC) $(LSTUBDIR) $(ICULIBS_DT)
|
|
|
|
LIBICUI18N = $(LLIBDIR) $(ICULIBS_I18N)
|
2014-09-10 02:20:50 +00:00
|
|
|
LIBICULE = $(ICULEHB_CFLAGS) $(LLIBDIR) $(ICULIBS_LE)
|
2010-08-30 18:59:02 +00:00
|
|
|
LIBICULX = $(LLIBDIR) $(ICULIBS_LX)
|
|
|
|
LIBCTESTFW = $(LCTESTFW) $(ICULIBS_CTESTFW)
|
|
|
|
LIBICUTOOLUTIL = $(LLIBDIR) $(ICULIBS_TOOLUTIL)
|
|
|
|
LIBICUIO = $(LLIBDIR) $(ICULIBS_IO)
|
2001-10-03 23:32:12 +00:00
|
|
|
|
2001-10-31 18:43:45 +00:00
|
|
|
# Invoke, set library path for all ICU libraries.
|
2009-04-01 01:54:14 +00:00
|
|
|
# overridden by icucross.mk
|
2005-07-18 21:04:12 +00:00
|
|
|
INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(LIBRARY_PATH_PREFIX)$(LIBDIR):$(top_builddir)/stubdata:$(top_builddir)/tools/ctestfw:$$$(LDLIBRARYPATH_ENVVAR) $(LEAK_CHECKER)
|
2009-04-01 01:54:14 +00:00
|
|
|
# prefer stubdata
|
2012-05-17 19:58:22 +00:00
|
|
|
PKGDATA_INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(top_builddir)/stubdata:$(top_builddir)/tools/ctestfw:$(LIBRARY_PATH_PREFIX)$(LIBDIR):$$$(LDLIBRARYPATH_ENVVAR) $(LEAK_CHECKER)
|
2012-02-21 04:35:07 +00:00
|
|
|
INSTALLED_INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(libdir):$$$(LDLIBRARYPATH_ENVVAR)
|
2002-04-19 02:19:24 +00:00
|
|
|
|
2013-01-23 22:20:45 +00:00
|
|
|
# Current full path directory for cross compilation
|
|
|
|
ifneq ($(strip $(cross_buildroot)),)
|
|
|
|
include $(cross_buildroot)/config/icucross.inc
|
|
|
|
endif
|
|
|
|
|
2002-04-19 02:19:24 +00:00
|
|
|
# Platform-specific setup
|
|
|
|
include @platform_make_fragment@
|
|
|
|
|
2012-04-05 17:14:32 +00:00
|
|
|
# Current full path directory.
|
2012-05-14 16:31:28 +00:00
|
|
|
CURR_FULL_DIR?=$(shell pwd | sed 's/ /\\ /g')
|
2012-04-05 17:14:32 +00:00
|
|
|
# Current full path directory for use in source code in a -D compiler option.
|
2012-05-14 16:31:28 +00:00
|
|
|
CURR_SRCCODE_FULL_DIR?=$(shell pwd | sed 's/ /\\ /')
|
2012-04-05 17:14:32 +00:00
|
|
|
|
2004-09-22 05:01:01 +00:00
|
|
|
# When shared libraries are disabled and static libraries are enabled,
|
|
|
|
# the C++ compiler must be used to link in the libraries for the tools.
|
|
|
|
ifneq ($(ENABLE_SHARED),YES)
|
|
|
|
LINK.c = $(LINK.cc)
|
|
|
|
endif
|
|
|
|
|
2009-04-01 01:54:14 +00:00
|
|
|
# some imported things from the cross env
|
|
|
|
TOOLEXEEXT = $(EXEEXT)
|
|
|
|
ifneq ($(strip $(cross_buildroot)),)
|
|
|
|
include $(cross_buildroot)/config/icucross.mk
|
|
|
|
else
|
|
|
|
cross_buildroot = $(top_builddir)
|
|
|
|
endif
|
|
|
|
|
2013-07-09 01:16:33 +00:00
|
|
|
# for tests
|
|
|
|
ifneq ($(TEST_STATUS_FILE),)
|
|
|
|
TEST_OUTPUT_OPTS="-E$(TEST_STATUS_FILE)"
|
|
|
|
endif
|
|
|
|
|
2008-10-14 22:55:22 +00:00
|
|
|
# optional include at top
|
|
|
|
-include $(top_builddir)/icudefs.local
|