X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..2ca993e82fb37b597a3c73ecd1586a139a6579c5:/icuSources/layoutex/Makefile.in diff --git a/icuSources/layoutex/Makefile.in b/icuSources/layoutex/Makefile.in index dcfee970..4129a3c8 100644 --- a/icuSources/layoutex/Makefile.in +++ b/icuSources/layoutex/Makefile.in @@ -1,6 +1,6 @@ #****************************************************************************** # -# Copyright (C) 1999-2005, International Business Machines +# Copyright (C) 1999-2014, International Business Machines # Corporation and others. All Rights Reserved. # #****************************************************************************** @@ -49,21 +49,30 @@ ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET) DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) +CFLAGS += $(LIBCFLAGS) +CXXFLAGS += $(LIBCXXFLAGS) -ifneq ($(top_builddir),$(top_srcdir)) -CPPFLAGS += -I$(top_builddir)/common + +ifeq ($(USING_ICULEHB),no) +# cppflags: load .. so that #include works +ICULE_CFLAGS=-I$(srcdir)/.. +else +ICULE_CFLAGS=$(ICULEHB_CFLAGS) endif -CPPFLAGS += -I$(srcdir) -I$(srcdir)/unicode -I$(srcdir)/.. -I$(top_srcdir)/common $(LIBCPPFLAGS) + +CPPFLAGS += -I$(srcdir) -I$(srcdir)/unicode -I$(top_srcdir)/common $(ICULE_CFLAGS) $(LIBCPPFLAGS) DEFS += -DU_LAYOUTEX_IMPLEMENTATION LDFLAGS += $(LDFLAGSICULX) LIBS = $(LIBICUUC) $(LIBICULE) $(DEFAULT_LIBS) OBJECTS = ParagraphLayout.o \ RunArrays.o \ -LXUtilities.o +LXUtilities.o \ +playout.o \ +plruns.o ## Header files to install -HEADERS= $(srcdir)/layout/ParagraphLayout.h $(srcdir)/layout/RunArrays.h +HEADERS= $(srcdir)/layout/ParagraphLayout.h $(srcdir)/layout/RunArrays.h $(srcdir)/layout/playout.h $(srcdir)/layout/plruns.h STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) @@ -74,7 +83,7 @@ DEPS = $(OBJECTS:.o=.d) ## List of phony targets .PHONY : all all-local install install-local clean clean-local \ distclean distclean-local install-library install-headers dist \ -dist-local check check-local +dist-local check check-local check-exhaustive ## Clear suffix list .SUFFIXES : @@ -87,9 +96,15 @@ distclean : distclean-local dist: dist-local check: all check-local +check-exhaustive: check + all-local: $(ALL_TARGETS) install-local: install-headers install-library +ifneq ($(ICULE_CFLAGS),) + @echo "Installing icu-lx.pc" + $(MAKE) ALL_PKGCONFIG_SUFFIX=lx -C .. install-pkgconfig +endif install-library: all-local $(MKINSTALLDIRS) $(DESTDIR)$(libdir) @@ -104,7 +119,6 @@ ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) endif endif -endif ifneq ($(IMPORT_LIB_EXT),) $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) @@ -114,6 +128,7 @@ ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) endif endif +endif install-headers: $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/layout @@ -138,13 +153,19 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status ifneq ($(ENABLE_STATIC),) -$(TARGET): $(TARGET)($(STATIC_OBJECTS)) +$(TARGET): $(STATIC_OBJECTS) + $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ $(RANLIB) $@ endif ifneq ($(ENABLE_SHARED),) $(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA) $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) +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 ifeq ($(OS390BATCH),1) $(BATCH_TARGET):$(OBJECTS)