2000-10-24 19:50:20 +00:00
|
|
|
|
|
|
|
# Make definitions that are shared by the different subprojects of ICU.
|
|
|
|
#
|
|
|
|
# Yves Arrouye.
|
|
|
|
#
|
2001-10-03 23:32:12 +00:00
|
|
|
# Copyright (C) 2000-2001, International Business Machines Corporation and others.
|
2000-10-24 19:50:20 +00:00
|
|
|
# All Rights Reserved.
|
|
|
|
|
2001-10-03 23:32:12 +00:00
|
|
|
#
|
|
|
|
# Some of these variables are overridden in the config/mh-* files.
|
|
|
|
#
|
|
|
|
|
2000-10-24 19:50:20 +00:00
|
|
|
# Shell to use
|
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
|
|
|
|
# Standard directories
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
datadir = @datadir@
|
|
|
|
libdir = @libdir@
|
|
|
|
includedir = @includedir@
|
|
|
|
mandir = @mandir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
|
|
|
|
# Package information
|
|
|
|
|
|
|
|
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
|
|
|
|
# the version-dependent name (for no particula reason except it was easier
|
|
|
|
# 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@
|
2002-02-14 19:18:14 +00:00
|
|
|
ICUDATA_ENTRY_POINT = $(ICUDATA_BASENAME_VERSION)@ICULIBSUFFIXCNAME@
|
2001-12-21 20:10:23 +00:00
|
|
|
ICUDATA_PLATFORM_NAME = $(ICUDATA_BASENAME_VERSION)@ICUDATA_CHAR@
|
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)
|
2002-02-12 20:04:52 +00:00
|
|
|
ICUDATA_NAME = $(ICUPREFIX)data$(ICULIBSUFFIX)
|
2001-11-10 01:54:17 +00:00
|
|
|
ICUPKGDATA_DIR = $(libdir)
|
|
|
|
else
|
2002-02-12 20:04:52 +00:00
|
|
|
ICUDATA_NAME = $(ICUPREFIX)data
|
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
|
2000-11-22 05:08:51 +00:00
|
|
|
|
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@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
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
|
|
|
|
|
2002-04-19 02:19:24 +00:00
|
|
|
EXEEXT = @EXEEXT@
|
2000-10-24 19:50:20 +00:00
|
|
|
CC = @CC@
|
|
|
|
CXX = @CXX@
|
2002-03-08 00:25:53 +00:00
|
|
|
AIX_SHLIB = @AIX_SHLIB@
|
2002-03-12 03:51:04 +00:00
|
|
|
AR = @AR@
|
2002-03-21 01:26:40 +00:00
|
|
|
ARFLAGS := @ARFLAGS@ $(ARFLAGS)
|
2002-03-12 03:51:04 +00:00
|
|
|
RANLIB = @RANLIB@
|
2000-10-24 19:50:20 +00:00
|
|
|
|
2002-04-19 02:19:24 +00:00
|
|
|
# Various flags for the tools
|
|
|
|
|
2002-05-13 23:51:50 +00:00
|
|
|
# DEFS is for common macro definitions
|
|
|
|
DEFS = @DEFS@
|
|
|
|
# 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
|
|
|
|
CPPFLAGS = -I. @CPPFLAGS@
|
|
|
|
# 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@
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
ECHO_N = @ECHO_N@
|
|
|
|
ECHO_C = @ECHO_C@
|
|
|
|
|
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
|
2002-05-13 23:51:50 +00:00
|
|
|
LINK.c= $(CC) $(CFLAGS) $(LDFLAGS)
|
|
|
|
LINK.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS)
|
2001-10-03 23:32:12 +00:00
|
|
|
|
|
|
|
# Commands to make a shared library
|
2002-05-13 23:51:50 +00:00
|
|
|
SHLIB.c= $(CC) $(CFLAGS) $(LDFLAGS) -shared
|
|
|
|
SHLIB.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared
|
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)
|
|
|
|
|
|
|
|
## How ICU libraries are named... ex. $(LIBICU)uc$(SO)
|
|
|
|
# Prefix for the ICU library names
|
|
|
|
ICUPREFIX = icu
|
|
|
|
LIBICU = lib$(ICUPREFIX)
|
|
|
|
|
|
|
|
# Force removal [for make clean]
|
|
|
|
RMV = rm -rf
|
|
|
|
# Platform commands to remove or move executable and library targets
|
|
|
|
INSTALL-S = $(INSTALL_PROGRAM)
|
|
|
|
INSTALL-L = $(INSTALL_DATA)
|
|
|
|
|
|
|
|
# Link commands to link to ICU libs
|
2002-03-12 03:51:04 +00:00
|
|
|
LIBICUDT= -L$(top_builddir)/data/out -L$(top_builddir)/stubdata -l$(ICUPREFIX)data$(ICULIBSUFFIX)
|
2001-10-03 23:32:12 +00:00
|
|
|
LIBICUUC= -L$(top_builddir)/common -l$(ICUPREFIX)uc$(ICULIBSUFFIX) $(LIBICUDT)
|
2001-10-15 23:11:29 +00:00
|
|
|
LIBICUI18N= -L$(top_builddir)/i18n -l$(ICUPREFIX)i18n$(ICULIBSUFFIX)
|
2002-05-13 23:51:50 +00:00
|
|
|
LIBICULE= -L$(top_builddir)/layout -l$(ICUPREFIX)le$(ICULIBSUFFIX)
|
2001-10-03 23:32:12 +00:00
|
|
|
LIBCTESTFW= -L$(top_builddir)/tools/ctestfw -l$(ICUPREFIX)ctestfw$(ICULIBSUFFIX)
|
|
|
|
LIBICUTOOLUTIL= -L$(top_builddir)/tools/toolutil -l$(ICUPREFIX)toolutil$(ICULIBSUFFIX)
|
|
|
|
LIBUSTDIO= -L$(top_builddir)/extra/ustdio -lustdio$(ICULIBSUFFIX)
|
|
|
|
|
2001-10-31 18:43:45 +00:00
|
|
|
# Invoke, set library path for all ICU libraries.
|
2002-03-19 18:14:04 +00:00
|
|
|
INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(top_builddir)/common:$(top_builddir)/i18n:$(top_builddir)/tools/toolutil:$(top_builddir)/extra/ustdio:$(top_builddir)/tools/ctestfw:$(top_builddir)/data/out:$(top_builddir)/data:$(top_builddir)/stubdata/:$$$(LDLIBRARYPATH_ENVVAR)
|
2002-04-19 02:19:24 +00:00
|
|
|
|
|
|
|
# Platform-specific setup
|
|
|
|
include @platform_make_fragment@
|
|
|
|
|