2005-12-02 10:21:39 +00:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
2014-09-10 02:20:50 +00:00
|
|
|
# Copyright (C) 1999-2014, International Business Machines
|
2005-12-02 10:21:39 +00:00
|
|
|
# Corporation and others. All Rights Reserved.
|
|
|
|
#
|
|
|
|
#******************************************************************************
|
2003-04-24 19:29:57 +00:00
|
|
|
## Makefile.in for ICU - layout
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
## Source directory information
|
2003-04-24 19:29:57 +00:00
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
|
|
|
top_builddir = ..
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
## All the flags and other definitions are included here.
|
2003-04-24 19:29:57 +00:00
|
|
|
include $(top_builddir)/icudefs.mk
|
|
|
|
|
|
|
|
## Build directory information
|
|
|
|
subdir = layoutex
|
|
|
|
|
|
|
|
## Extra files to remove for 'make clean'
|
2004-04-05 21:25:47 +00:00
|
|
|
CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
|
2003-04-24 19:29:57 +00:00
|
|
|
|
|
|
|
## Target information
|
|
|
|
|
2004-04-19 17:32:30 +00:00
|
|
|
TARGET_STUBNAME=$(LAYOUTEX_STUBNAME)
|
2003-04-24 19:29:57 +00:00
|
|
|
|
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2004-03-26 01:22:25 +00:00
|
|
|
TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
|
2003-04-24 19:29:57 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2004-03-26 01:22:25 +00:00
|
|
|
SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
|
2005-09-08 18:28:48 +00:00
|
|
|
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
|
2003-09-26 00:04:35 +00:00
|
|
|
|
|
|
|
ifeq ($(ENABLE_SO_VERSION_DATA),1)
|
|
|
|
SO_VERSION_DATA = layoutex.res
|
2003-04-24 19:29:57 +00:00
|
|
|
endif
|
|
|
|
|
2003-09-26 00:04:35 +00:00
|
|
|
ifeq ($(OS390BATCH),1)
|
2004-01-16 22:34:18 +00:00
|
|
|
BATCH_TARGET = $(BATCH_LAYOUTEX_TARGET)
|
2003-09-26 00:04:35 +00:00
|
|
|
BATCH_LIBS = $(BATCH_LIBICUUC) $(BATCH_LIBICULE) -lm
|
|
|
|
endif # OS390BATCH
|
|
|
|
|
|
|
|
endif # ENABLE_SHARED
|
|
|
|
|
|
|
|
ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
|
2003-04-24 19:29:57 +00:00
|
|
|
|
|
|
|
DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
|
|
|
|
DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
|
|
|
|
DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
|
2007-06-04 05:52:08 +00:00
|
|
|
CFLAGS += $(LIBCFLAGS)
|
|
|
|
CXXFLAGS += $(LIBCXXFLAGS)
|
2003-04-24 19:29:57 +00:00
|
|
|
|
2014-09-10 02:20:50 +00:00
|
|
|
|
|
|
|
ifeq ($(USING_ICULEHB),no)
|
|
|
|
# cppflags: load .. so that #include <layout/...> works
|
|
|
|
ICULE_CFLAGS=-I$(srcdir)/..
|
|
|
|
else
|
|
|
|
ICULE_CFLAGS=$(ICULEHB_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
CPPFLAGS += -I$(srcdir) -I$(srcdir)/unicode -I$(top_srcdir)/common $(ICULE_CFLAGS) $(LIBCPPFLAGS)
|
2003-04-24 19:29:57 +00:00
|
|
|
DEFS += -DU_LAYOUTEX_IMPLEMENTATION
|
2005-12-02 10:21:39 +00:00
|
|
|
LDFLAGS += $(LDFLAGSICULX)
|
2003-04-24 19:29:57 +00:00
|
|
|
LIBS = $(LIBICUUC) $(LIBICULE) $(DEFAULT_LIBS)
|
|
|
|
|
|
|
|
OBJECTS = ParagraphLayout.o \
|
|
|
|
RunArrays.o \
|
2007-06-22 03:57:45 +00:00
|
|
|
LXUtilities.o \
|
|
|
|
playout.o \
|
|
|
|
plruns.o
|
2003-04-24 19:29:57 +00:00
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
## Header files to install
|
2008-05-16 04:11:59 +00:00
|
|
|
HEADERS= $(srcdir)/layout/ParagraphLayout.h $(srcdir)/layout/RunArrays.h $(srcdir)/layout/playout.h $(srcdir)/layout/plruns.h
|
2005-12-02 10:21:39 +00:00
|
|
|
|
2003-04-24 19:29:57 +00:00
|
|
|
STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
|
|
|
|
|
|
|
|
DEPS = $(OBJECTS:.o=.d)
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
-include Makefile.local
|
2003-04-24 19:29:57 +00:00
|
|
|
|
|
|
|
## List of phony targets
|
|
|
|
.PHONY : all all-local install install-local clean clean-local \
|
|
|
|
distclean distclean-local install-library install-headers dist \
|
2011-11-14 22:33:19 +00:00
|
|
|
dist-local check check-local check-exhaustive
|
2003-04-24 19:29:57 +00:00
|
|
|
|
|
|
|
## Clear suffix list
|
|
|
|
.SUFFIXES :
|
|
|
|
|
|
|
|
## List of standard targets
|
|
|
|
all: all-local
|
|
|
|
install: install-local
|
|
|
|
clean: clean-local
|
|
|
|
distclean : distclean-local
|
|
|
|
dist: dist-local
|
|
|
|
check: all check-local
|
|
|
|
|
2011-11-14 22:33:19 +00:00
|
|
|
check-exhaustive: check
|
|
|
|
|
2003-04-24 19:29:57 +00:00
|
|
|
all-local: $(ALL_TARGETS)
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
install-local: install-headers install-library
|
2014-09-10 02:20:50 +00:00
|
|
|
ifneq ($(ICULE_CFLAGS),)
|
|
|
|
@echo "Installing icu-lx.pc"
|
|
|
|
$(MAKE) ALL_PKGCONFIG_SUFFIX=lx -C .. install-pkgconfig
|
|
|
|
endif
|
2003-04-24 19:29:57 +00:00
|
|
|
|
|
|
|
install-library: all-local
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
|
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2004-03-26 18:35:15 +00:00
|
|
|
$(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
|
2003-04-24 19:29:57 +00:00
|
|
|
endif
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2004-03-26 18:35:15 +00:00
|
|
|
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
|
2003-04-24 19:29:57 +00:00
|
|
|
ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
|
2003-04-24 19:29:57 +00:00
|
|
|
ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
|
2003-04-24 19:29:57 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifneq ($(IMPORT_LIB_EXT),)
|
2004-03-26 18:35:15 +00:00
|
|
|
$(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
|
2004-10-21 00:08:48 +00:00
|
|
|
ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
|
2005-12-02 10:21:39 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
|
2004-10-21 00:08:48 +00:00
|
|
|
endif
|
2003-04-24 19:29:57 +00:00
|
|
|
ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
|
2004-03-26 17:57:09 +00:00
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
|
2003-04-24 19:29:57 +00:00
|
|
|
endif
|
|
|
|
endif
|
2007-07-13 17:59:16 +00:00
|
|
|
endif
|
2003-04-24 19:29:57 +00:00
|
|
|
|
|
|
|
install-headers:
|
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(includedir)/layout
|
|
|
|
@for file in $(HEADERS); do \
|
|
|
|
echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout"; \
|
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout || exit; \
|
|
|
|
done
|
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
2005-12-02 10:21:39 +00:00
|
|
|
$(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
|
2003-04-24 19:29:57 +00:00
|
|
|
|
|
|
|
distclean-local: clean-local
|
|
|
|
$(RMV) Makefile
|
|
|
|
|
|
|
|
check-local:
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2007-07-13 08:10:41 +00:00
|
|
|
$(TARGET): $(STATIC_OBJECTS)
|
|
|
|
$(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
|
2003-04-24 19:29:57 +00:00
|
|
|
$(RANLIB) $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2005-09-08 18:28:48 +00:00
|
|
|
$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
|
2003-04-24 19:29:57 +00:00
|
|
|
$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
|
2011-11-03 20:48:20 +00:00
|
|
|
ifeq ($(ENABLE_RPATH),YES)
|
|
|
|
ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
|
|
|
|
$(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
|
|
|
|
endif
|
|
|
|
endif
|
2003-09-26 00:04:35 +00:00
|
|
|
|
|
|
|
ifeq ($(OS390BATCH),1)
|
2005-12-02 10:21:39 +00:00
|
|
|
$(BATCH_TARGET):$(OBJECTS)
|
2003-09-26 00:04:35 +00:00
|
|
|
$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
|
|
|
|
endif # OS390BATCH
|
2005-12-02 10:21:39 +00:00
|
|
|
endif # ENABLE_SHARED
|
2003-04-24 19:29:57 +00:00
|
|
|
|
|
|
|
ifeq (,$(MAKECMDGOALS))
|
|
|
|
-include $(DEPS)
|
|
|
|
else
|
|
|
|
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
|
|
|
|
-include $(DEPS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|