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@
|
|
|
|
|
2000-11-22 07:59:09 +00:00
|
|
|
# Should be the same as U_ICUDATA_NAME
|
|
|
|
ICUDATA_NAME = icudt@LIB_VERSION_MAJOR@@ICUDATA_CHAR@
|
|
|
|
ifeq ($(strip $(PKGDATA_MODE)),)
|
|
|
|
PKGDATA_MODE=@DATA_PACKAGING_MODE@
|
|
|
|
endif
|
|
|
|
ifeq ($(PKGDATA_MODE),common)
|
|
|
|
ICUDATA_DIR=$(pkgdatadir)
|
|
|
|
else
|
|
|
|
ICUDATA_DIR=$(pkglibdir)
|
|
|
|
endif
|
2000-11-22 05:08:51 +00:00
|
|
|
|
2000-10-24 19:50:20 +00:00
|
|
|
# ICU specific directories
|
|
|
|
|
|
|
|
pkgdatadir = $(datadir)/$(PACKAGE)
|
2000-10-25 22:26:17 +00:00
|
|
|
pkglibdir = $(libdir)/$(PACKAGE)
|
2000-10-24 19:50:20 +00:00
|
|
|
pkgsysconfdir = $(sysconfdir)/$(PACKAGE)
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
CXX = @CXX@
|
|
|
|
|
|
|
|
# Echo w/o newline
|
|
|
|
|
|
|
|
ECHO_N = @ECHO_N@
|
|
|
|
ECHO_C = @ECHO_C@
|
|
|
|
|
2001-10-03 23:32:12 +00:00
|
|
|
# Commands to compile
|
|
|
|
COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c
|
|
|
|
COMPILE.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c
|
|
|
|
|
|
|
|
# Commands to link
|
2001-10-15 23:11:29 +00:00
|
|
|
LINK.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wl,-rpath-link $(top_builddir)/data
|
|
|
|
LINK.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -Wl,-rpath-link $(top_builddir)/data
|
2001-10-03 23:32:12 +00:00
|
|
|
|
|
|
|
# Commands to make a shared library
|
|
|
|
SHLIB.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared
|
|
|
|
SHLIB.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -shared
|
|
|
|
|
|
|
|
# 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
|
|
|
|
LIBICUDT= -L$(top_builddir)/data -L$(top_builddir)/stubdata -l$(ICUPREFIX)data
|
|
|
|
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)
|
2001-10-04 00:29:17 +00:00
|
|
|
LIBICULE= -L$(top_builddir)/layout -l$(ICUPREFIX)le$(ICULIBSSUFFIX)
|
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)
|
|
|
|
|