intl/icu/source/config/Makefile.inc.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 ## -*-makefile-*-
michael@0 2 #******************************************************************************
michael@0 3 # Copyright (C) 1999-2012, International Business Machines
michael@0 4 # Corporation and others. All Rights Reserved.
michael@0 5 #******************************************************************************
michael@0 6 # This Makefile.inc is designed to be included into projects which make use
michael@0 7 # of the ICU.
michael@0 8
michael@0 9 # CONTENTS OF THIS FILE
michael@0 10 # 1). Base configuration information and linkage
michael@0 11 # 2). Variables giving access to ICU tools
michael@0 12 # 3). Host information
michael@0 13 # 4). Compiler flags and settings
michael@0 14 # 5). Data Packaging directives
michael@0 15 # 6). Include of platform make fragment (mh-* file)
michael@0 16
michael@0 17 ##################################################################
michael@0 18 ##################################################################
michael@0 19 #
michael@0 20 # *1* base configuration information and linkage
michael@0 21 #
michael@0 22 ##################################################################
michael@0 23 # The PREFIX is the base of where ICU is installed.
michael@0 24 # Inside this directory you should find bin, lib, include/unicode,
michael@0 25 # etc. If ICU is not installed in this directory, you must change the
michael@0 26 # following line. There should exist $(prefix)/include/unicode/utypes.h
michael@0 27 # for example.
michael@0 28 prefix = @prefix@
michael@0 29 exec_prefix = @exec_prefix@
michael@0 30 libdir = @libdir@
michael@0 31 libexecdir = @libexecdir@
michael@0 32 bindir = @bindir@
michael@0 33 datarootdir = @datarootdir@
michael@0 34 datadir = @datadir@
michael@0 35 sbindir = @sbindir@
michael@0 36
michael@0 37 # about the ICU version
michael@0 38 VERSION = @VERSION@
michael@0 39 UNICODE_VERSION = @UNICODE_VERSION@
michael@0 40
michael@0 41 # The prefix for ICU libraries, normally 'icu'
michael@0 42 ICUPREFIX = icu
michael@0 43 PACKAGE = @PACKAGE@
michael@0 44 LIBICU = lib$(ICUPREFIX)
michael@0 45
michael@0 46 # Static library prefix and file extension
michael@0 47 STATIC_PREFIX = s
michael@0 48 LIBSICU = lib$(STATIC_PREFIX)$(ICUPREFIX)
michael@0 49 A = a
michael@0 50
michael@0 51 # Suffix at the end of libraries. Usually empty.
michael@0 52 ICULIBSUFFIX = @ICULIBSUFFIX@
michael@0 53 # ICULIBSUFFIX_VERSION is non-empty if it is to contain a library
michael@0 54 # version. For example, if it is 21, it means libraries are named
michael@0 55 # libicuuc21.so for example.
michael@0 56
michael@0 57 # rpath links a library search path right into the binaries.
michael@0 58 ## mh-files MUST NOT override RPATHLDFLAGS unless they provide
michael@0 59 ## equivalent '#SH#' lines for icu-config fixup
michael@0 60 ENABLE_RPATH = @ENABLE_RPATH@
michael@0 61 ifeq ($(ENABLE_RPATH),YES)
michael@0 62 RPATHLDFLAGS = $(LD_RPATH)$(LD_RPATH_PRE)$(libdir)
michael@0 63 endif
michael@0 64
michael@0 65 #SH## icu-config version of above 'if':
michael@0 66 #SH#case "x$ENABLE_RPATH" in
michael@0 67 #SH# x[yY]*)
michael@0 68 #SH# ENABLE_RPATH=YES
michael@0 69 #SH# RPATHLDFLAGS="${LD_RPATH}${LD_RPATH_PRE}${libdir}"
michael@0 70 #SH# ;;
michael@0 71 #SH#
michael@0 72 #SH# x[nN]*)
michael@0 73 #SH# ENABLE_RPATH=NO
michael@0 74 #SH# RPATHLDFLAGS=""
michael@0 75 #SH# ;;
michael@0 76 #SH#
michael@0 77 #SH# x)
michael@0 78 #SH# ENABLE_RPATH=NO
michael@0 79 #SH# RPATHLDFLAGS=""
michael@0 80 #SH# ;;
michael@0 81 #SH#
michael@0 82 #SH# *)
michael@0 83 #SH# echo $0: Unknown --enable-rpath value ${ENABLE_RPATH} 1>&2
michael@0 84 #SH# exit 3
michael@0 85 #SH# ;;
michael@0 86 #SH#esac
michael@0 87
michael@0 88 # Name flexibility for the library naming scheme. Any modifications should
michael@0 89 # be made in the mh- file for the specific platform.
michael@0 90 DATA_STUBNAME = data
michael@0 91 COMMON_STUBNAME = uc
michael@0 92 I18N_STUBNAME = i18n
michael@0 93 LAYOUT_STUBNAME = le
michael@0 94 LAYOUTEX_STUBNAME = lx
michael@0 95 IO_STUBNAME = io
michael@0 96 TOOLUTIL_STUBNAME = tu
michael@0 97 CTESTFW_STUBNAME = test
michael@0 98
michael@0 99
michael@0 100
michael@0 101 ### To link your application with ICU:
michael@0 102 # 1. use LDFLAGS, CFLAGS, etc from above
michael@0 103 # 2. link with $(ICULIBS)
michael@0 104 # 3. optionally, add one or more of:
michael@0 105 # - $(ICULIBS_I18N) - i18n library, formatting, etc.
michael@0 106 # - $(ICULIBS_LAYOUT) - ICU layout library.
michael@0 107 # - $(ICULIBS_ICUIO) - ICU stdio equivalent library
michael@0 108
michael@0 109 ICULIBS_COMMON = -l$(ICUPREFIX)uc$(ICULIBSUFFIX)$(ICULIBSUFFIX_VERSION)
michael@0 110 ICULIBS_DATA = -l$(ICUPREFIX)$(DATA_STUBNAME)$(ICULIBSUFFIX)$(ICULIBSUFFIX_VERSION)
michael@0 111 ICULIBS_I18N = -l$(ICUPREFIX)$(I18N_STUBNAME)$(ICULIBSUFFIX)$(ICULIBSUFFIX_VERSION)
michael@0 112 ICULIBS_TOOLUTIL = -l$(ICUPREFIX)tu$(ICULIBSUFFIX)$(ICULIBSUFFIX_VERSION)
michael@0 113 ICULIBS_CTESTFW = -l$(ICUPREFIX)ctestfw$(ICULIBSUFFIX)$(ICULIBSUFFIX_VERSION)
michael@0 114 ICULIBS_ICUIO = -l$(ICUPREFIX)io$(ICULIBSUFFIX)$(ICULIBSUFFIX_VERSION)
michael@0 115 ICULIBS_OBSOLETE = -l$(ICUPREFIX)obsolete$(ICULIBSUFFIX)$(ICULIBSUFFIX_VERSION)
michael@0 116 ICULIBS_LAYOUT = -l$(ICUPREFIX)le$(ICULIBSUFFIX)$(ICULIBSUFFIX_VERSION)
michael@0 117 ICULIBS_LAYOUTEX = -l$(ICUPREFIX)lx$(ICULIBSUFFIX)$(ICULIBSUFFIX_VERSION)
michael@0 118 ICULIBS_BASE = $(LIBS) -L$(libdir)
michael@0 119
michael@0 120 # for icu-config to test with
michael@0 121 ICULIBS_COMMON_LIB_NAME = ${LIBICU}${COMMON_STUBNAME}${ICULIBSUFFIX}${ICULIBSUFFIX_VERSION}.${SO}
michael@0 122 ICULIBS_COMMON_LIB_NAME_A = ${LIBICU}${COMMON_STUBNAME}${ICULIBSUFFIX}.${A}
michael@0 123
michael@0 124 # ICULIBS is the set of libraries your application should link
michael@0 125 # with usually. Many applications will want to add $(ICULIBS_I18N) as well.
michael@0 126 ICULIBS = $(ICULIBS_BASE) $(ICULIBS_I18N) $(ICULIBS_COMMON) $(ICULIBS_DATA)
michael@0 127
michael@0 128 # Proper echo newline handling is needed in icu-config
michael@0 129 ECHO_N=@ICU_ECHO_N@
michael@0 130 ECHO_C=@ICU_ECHO_C@
michael@0 131 # Not currently being used but good to have for proper tab handling
michael@0 132 ECHO_T=@ICU_ECHO_T@
michael@0 133
michael@0 134 ##################################################################
michael@0 135 ##################################################################
michael@0 136 #
michael@0 137 # *2* access to ICU tools
michael@0 138 #
michael@0 139 ##################################################################
michael@0 140 # Environment variable to set a runtime search path
michael@0 141 # (Overridden when necessary in -mh files)
michael@0 142 LDLIBRARYPATH_ENVVAR = LD_LIBRARY_PATH
michael@0 143
michael@0 144 # Versioned target for a shared library
michael@0 145 FINAL_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION)
michael@0 146 MIDDLE_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION_MAJOR)
michael@0 147
michael@0 148 # Access to important ICU tools.
michael@0 149 # Use as follows: $(INVOKE) $(GENRB) arguments ..
michael@0 150 INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(libdir):$$$(LDLIBRARYPATH_ENVVAR) $(LEAK_CHECKER)
michael@0 151 GENCCODE = $(sbindir)/genccode
michael@0 152 ICUPKG = $(sbindir)/icupkg
michael@0 153 GENCMN = $(sbindir)/gencmn
michael@0 154 GENRB = $(bindir)/genrb
michael@0 155 PKGDATA = $(bindir)/pkgdata
michael@0 156
michael@0 157 # moved here because of dependencies
michael@0 158 pkgdatadir = $(datadir)/$(PACKAGE)$(ICULIBSUFFIX)/$(VERSION)
michael@0 159 pkglibdir = $(libdir)/$(PACKAGE)$(ICULIBSUFFIX)/$(VERSION)
michael@0 160
michael@0 161 ##################################################################
michael@0 162 ##################################################################
michael@0 163 #
michael@0 164 # *3* Information about the host
michael@0 165 #
michael@0 166 ##################################################################
michael@0 167
michael@0 168 # Information about the host that 'configure' was run on.
michael@0 169 host = @host@
michael@0 170 host_alias = @host_alias@
michael@0 171 host_cpu = @host_cpu@
michael@0 172 host_vendor = @host_vendor@
michael@0 173 host_os = @host_os@
michael@0 174 # Our platform canonical name (as determined by configure)
michael@0 175 # this is a #define value (i.e. U_XXXX or XXXX)
michael@0 176 platform = @platform@
michael@0 177
michael@0 178 ##################################################################
michael@0 179 ##################################################################
michael@0 180 #
michael@0 181 # *4* compiler flags and misc. options
michael@0 182 #
michael@0 183 ##################################################################
michael@0 184 AR = @AR@
michael@0 185 # initial tab keeps it out of the shell version.
michael@0 186 ARFLAGS := @ARFLAGS@ $(ARFLAGS)
michael@0 187 #SH#ARFLAGS="@ARFLAGS@ ${ARFLAGS}"
michael@0 188 CC = @CC@
michael@0 189 CFLAGS = @CFLAGS@
michael@0 190 CPP = @CPP@
michael@0 191 CPPFLAGS = @CPPFLAGS@ $(LIBCPPFLAGS) -I$(prefix)/include
michael@0 192 CXX = @CXX@
michael@0 193 CXXFLAGS = @CXXFLAGS@
michael@0 194 DEFAULT_MODE = @DATA_PACKAGING_MODE@
michael@0 195 DEFS = @DEFS@
michael@0 196 FFLAGS = @FFLAGS@
michael@0 197 # use a consistent INSTALL
michael@0 198 INSTALL = $(SHELL) $(pkgdatadir)/install-sh -c
michael@0 199 INSTALL_DATA = @INSTALL_DATA@
michael@0 200 INSTALL_DATA = @INSTALL_DATA@
michael@0 201 INSTALL_PROGRAM = @INSTALL_PROGRAM@
michael@0 202 INSTALL_PROGRAM = @INSTALL_PROGRAM@
michael@0 203 INSTALL_SCRIPT = @INSTALL_SCRIPT@
michael@0 204 LDFLAGS = @LDFLAGS@ $(RPATHLDFLAGS)
michael@0 205 LIBS = @LIBS@
michael@0 206 LIB_M = @LIB_M@
michael@0 207 LIB_VERSION = @LIB_VERSION@
michael@0 208 LIB_VERSION_MAJOR = @LIB_VERSION_MAJOR@
michael@0 209 MKINSTALLDIRS = $(SHELL) $(pkgdatadir)/mkinstalldirs
michael@0 210 RANLIB = @RANLIB@
michael@0 211 RMV = rm -rf
michael@0 212 SHELL = @SHELL@
michael@0 213 SHLIB.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared
michael@0 214 SHLIB.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -shared
michael@0 215 U_IS_BIG_ENDIAN = @U_IS_BIG_ENDIAN@
michael@0 216 includedir = @includedir@
michael@0 217 infodir = @infodir@
michael@0 218 localstatedir = @localstatedir@
michael@0 219 mandir = @mandir@
michael@0 220 oldincludedir = @oldincludedir@
michael@0 221 program_transform_name = @program_transform_name@
michael@0 222 sharedstatedir = @sharedstatedir@
michael@0 223 sysconfdir = @sysconfdir@
michael@0 224 INSTALL-L = ${INSTALL_DATA}
michael@0 225
michael@0 226 # for derivative builds - don't bother with VERBOSE/NONVERBOSE SILENT_COMPILE
michael@0 227 SILENT_COMPILE=$(1) #M#
michael@0 228 ICU_MSG=@echo " $(1) " #M#
michael@0 229
michael@0 230 ##################################################################
michael@0 231 ##################################################################
michael@0 232 #
michael@0 233 # *5* packaging options and directories
michael@0 234 #
michael@0 235 ##################################################################
michael@0 236
michael@0 237
michael@0 238 # The basename of the ICU data file (i.e. icudt21b )
michael@0 239 ICUDATA_CHAR = @ICUDATA_CHAR@
michael@0 240 ICUDATA_NAME = icudt@LIB_VERSION_MAJOR@@ICUDATA_CHAR@
michael@0 241
michael@0 242 # Defaults for pkgdata's mode and directories
michael@0 243 # The default data dir changes depending on what packaging mode
michael@0 244 # is being used
michael@0 245 ifeq ($(strip $(PKGDATA_MODE)),)
michael@0 246 #SH# if [ "x$PKGDATA_MODE" = "x" ];
michael@0 247 #SH# then
michael@0 248 PKGDATA_MODE=@DATA_PACKAGING_MODE@
michael@0 249 #SH# fi
michael@0 250 endif
michael@0 251
michael@0 252 #SH# case "$PKGDATA_MODE" in
michael@0 253 ifeq ($(PKGDATA_MODE),common)
michael@0 254 #SH# common)
michael@0 255 ICUDATA_DIR = $(pkgdatadir)
michael@0 256 ICUPKGDATA_DIR = $(ICUDATA_DIR)
michael@0 257 #SH# ;;
michael@0 258 else
michael@0 259 ifeq ($(PKGDATA_MODE),dll)
michael@0 260 #SH# dll)
michael@0 261 ICUDATA_DIR = $(pkgdatadir)
michael@0 262 ICUPKGDATA_DIR = $(libdir)
michael@0 263 #SH# ;;
michael@0 264 else
michael@0 265 #SH# *)
michael@0 266 ICUDATA_DIR = $(pkgdatadir)
michael@0 267 ICUPKGDATA_DIR = $(ICUDATA_DIR)
michael@0 268 #SH# ;;
michael@0 269 endif
michael@0 270 endif
michael@0 271
michael@0 272 #SH# esac
michael@0 273
michael@0 274 GENCCODE_ASSEMBLY = @GENCCODE_ASSEMBLY@
michael@0 275
michael@0 276 ##################################################################
michael@0 277 ##################################################################
michael@0 278 #
michael@0 279 # *6* Inclusion of platform make fragment (mh-* file)
michael@0 280 #
michael@0 281 ##################################################################
michael@0 282 # The mh- file ("make fragment") for the platform is included here.
michael@0 283 # It may override the above settings.
michael@0 284 # It is put last so that the mh-file can override anything.
michael@0 285 # The selfcheck is just a sanity check that this makefile is
michael@0 286 # parseable. The mh fragment is only included if this does not occur.
michael@0 287
michael@0 288 ifeq (selfcheck,$(MAKECMDGOALS)) #M#
michael@0 289 selfcheck: #M#
michael@0 290 @echo passed #M#
michael@0 291 else #M#
michael@0 292 include $(pkgdatadir)/config/@platform_make_fragment_name@
michael@0 293 endif #M#
michael@0 294

mercurial