michael@0: #****************************************************************************** michael@0: # michael@0: # Copyright (C) 1999-2013, International Business Machines michael@0: # Corporation and others. All Rights Reserved. michael@0: # michael@0: #****************************************************************************** michael@0: ## Makefile.in for ICU - layout michael@0: michael@0: ## Source directory information michael@0: srcdir = @srcdir@ michael@0: top_srcdir = @top_srcdir@ michael@0: michael@0: top_builddir = .. michael@0: michael@0: ## All the flags and other definitions are included here. michael@0: include $(top_builddir)/icudefs.mk michael@0: michael@0: ## Build directory information michael@0: subdir = layout michael@0: michael@0: ## Extra files to remove for 'make clean' michael@0: CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) michael@0: michael@0: ## Target information michael@0: michael@0: TARGET_STUBNAME=$(LAYOUT_STUBNAME) michael@0: michael@0: ifneq ($(ENABLE_STATIC),) michael@0: TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) michael@0: endif michael@0: michael@0: ifneq ($(ENABLE_SHARED),) michael@0: SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO) michael@0: ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT) michael@0: michael@0: ifeq ($(ENABLE_SO_VERSION_DATA),1) michael@0: SO_VERSION_DATA = layout.res michael@0: endif michael@0: michael@0: ifeq ($(OS390BATCH),1) michael@0: BATCH_TARGET = $(BATCH_LAYOUT_TARGET) michael@0: BATCH_LIBS = $(BATCH_LIBICUUC) -lm michael@0: endif # OS390BATCH michael@0: michael@0: endif # ENABLE_SHARED michael@0: michael@0: ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET) michael@0: michael@0: DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) michael@0: DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) michael@0: DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) michael@0: CFLAGS += $(LIBCFLAGS) michael@0: CXXFLAGS += $(LIBCXXFLAGS) michael@0: michael@0: CPPFLAGS += -I$(srcdir) -I$(srcdir)/.. -I$(top_srcdir)/common -I$(srcdir)/unicode $(LIBCPPFLAGS) michael@0: DEFS += -DU_LAYOUT_IMPLEMENTATION michael@0: LDFLAGS += $(LDFLAGSICULE) michael@0: LIBS = $(LIBICUUC) $(DEFAULT_LIBS) michael@0: michael@0: OBJECTS = LEFontInstance.o \ michael@0: OpenTypeLayoutEngine.o \ michael@0: ThaiLayoutEngine.o \ michael@0: ThaiShaping.o \ michael@0: ThaiStateTables.o \ michael@0: ArabicLayoutEngine.o \ michael@0: GXLayoutEngine.o \ michael@0: HanLayoutEngine.o \ michael@0: IndicLayoutEngine.o \ michael@0: LayoutEngine.o \ michael@0: ContextualGlyphSubstProc.o \ michael@0: IndicRearrangementProcessor.o \ michael@0: LigatureSubstProc.o \ michael@0: LookupTables.o \ michael@0: MorphTables.o \ michael@0: NonContextualGlyphSubstProc.o \ michael@0: SegmentArrayProcessor.o \ michael@0: SegmentSingleProcessor.o \ michael@0: SimpleArrayProcessor.o \ michael@0: SingleTableProcessor.o \ michael@0: StateTableProcessor.o \ michael@0: SubtableProcessor.o \ michael@0: TrimmedArrayProcessor.o \ michael@0: AlternateSubstSubtables.o \ michael@0: AnchorTables.o \ michael@0: ArabicShaping.o \ michael@0: CanonData.o \ michael@0: CanonShaping.o \ michael@0: ClassDefinitionTables.o \ michael@0: ContextualSubstSubtables.o \ michael@0: CoverageTables.o \ michael@0: CursiveAttachmentSubtables.o \ michael@0: DeviceTables.o \ michael@0: ExtensionSubtables.o \ michael@0: Features.o \ michael@0: GDEFMarkFilter.o \ michael@0: GlyphDefinitionTables.o \ michael@0: GlyphIterator.o \ michael@0: GlyphLookupTables.o \ michael@0: GlyphPosnLookupProc.o \ michael@0: GlyphPositionAdjustments.o \ michael@0: GlyphPositioningTables.o \ michael@0: GlyphSubstLookupProc.o \ michael@0: GlyphSubstitutionTables.o \ michael@0: IndicClassTables.o \ michael@0: IndicReordering.o \ michael@0: LEInsertionList.o \ michael@0: LEGlyphStorage.o \ michael@0: LigatureSubstSubtables.o \ michael@0: LookupProcessor.o \ michael@0: Lookups.o \ michael@0: MarkArrays.o \ michael@0: MarkToBasePosnSubtables.o \ michael@0: MarkToLigaturePosnSubtables.o \ michael@0: MarkToMarkPosnSubtables.o \ michael@0: MirroredCharData.o \ michael@0: MPreFixups.o \ michael@0: MultipleSubstSubtables.o \ michael@0: OpenTypeUtilities.o \ michael@0: PairPositioningSubtables.o \ michael@0: ScriptAndLanguage.o \ michael@0: ScriptAndLanguageTags.o \ michael@0: ShapingTypeData.o \ michael@0: SinglePositioningSubtables.o \ michael@0: SingleSubstitutionSubtables.o \ michael@0: SubstitutionLookups.o \ michael@0: ValueRecords.o \ michael@0: KhmerLayoutEngine.o \ michael@0: KhmerReordering.o \ michael@0: TibetanLayoutEngine.o \ michael@0: TibetanReordering.o \ michael@0: HangulLayoutEngine.o \ michael@0: KernTable.o \ michael@0: loengine.o \ michael@0: ContextualGlyphInsertionProc2.o \ michael@0: ContextualGlyphSubstProc2.o \ michael@0: GXLayoutEngine2.o \ michael@0: IndicRearrangementProcessor2.o \ michael@0: LigatureSubstProc2.o \ michael@0: MorphTables2.o \ michael@0: NonContextualGlyphSubstProc2.o \ michael@0: SegmentArrayProcessor2.o \ michael@0: SegmentSingleProcessor2.o \ michael@0: SimpleArrayProcessor2.o \ michael@0: SingleTableProcessor2.o \ michael@0: StateTableProcessor2.o \ michael@0: SubtableProcessor2.o \ michael@0: TrimmedArrayProcessor2.o michael@0: michael@0: ## Header files to install michael@0: HEADERS= $(srcdir)/LayoutEngine.h $(srcdir)/LE*.h $(srcdir)/loengine.h michael@0: michael@0: STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) michael@0: michael@0: DEPS = $(OBJECTS:.o=.d) michael@0: michael@0: -include Makefile.local michael@0: michael@0: ## List of phony targets michael@0: .PHONY : all all-local install install-local clean clean-local \ michael@0: distclean distclean-local install-library install-headers dist \ michael@0: dist-local check check-local check-exhaustive michael@0: michael@0: ## Clear suffix list michael@0: .SUFFIXES : michael@0: michael@0: ## List of standard targets michael@0: all: all-local michael@0: install: install-local michael@0: clean: clean-local michael@0: distclean : distclean-local michael@0: dist: dist-local michael@0: check: all check-local michael@0: michael@0: check-exhaustive: check michael@0: michael@0: all-local: $(ALL_TARGETS) michael@0: michael@0: install-local: install-headers install-library michael@0: michael@0: install-library: all-local michael@0: $(MKINSTALLDIRS) $(DESTDIR)$(libdir) michael@0: ifneq ($(ENABLE_STATIC),) michael@0: $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) michael@0: endif michael@0: ifneq ($(ENABLE_SHARED),) michael@0: $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) michael@0: ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) michael@0: ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) michael@0: endif michael@0: endif michael@0: ifneq ($(IMPORT_LIB_EXT),) michael@0: $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) michael@0: ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) michael@0: endif michael@0: ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) michael@0: endif michael@0: endif michael@0: endif michael@0: michael@0: install-headers: michael@0: $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/layout michael@0: @for file in $(HEADERS); do \ michael@0: echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout"; \ michael@0: $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout || exit; \ michael@0: done michael@0: michael@0: dist-local: michael@0: michael@0: clean-local: michael@0: test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) michael@0: $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA) michael@0: michael@0: distclean-local: clean-local michael@0: $(RMV) Makefile michael@0: michael@0: check-local: michael@0: michael@0: Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status michael@0: cd $(top_builddir) \ michael@0: && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status michael@0: michael@0: ifneq ($(ENABLE_STATIC),) michael@0: $(TARGET): $(STATIC_OBJECTS) michael@0: $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ michael@0: $(RANLIB) $@ michael@0: endif michael@0: michael@0: ifneq ($(ENABLE_SHARED),) michael@0: $(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA) michael@0: $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) michael@0: ifeq ($(ENABLE_RPATH),YES) michael@0: ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) michael@0: $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) michael@0: endif michael@0: endif michael@0: michael@0: ifeq ($(OS390BATCH),1) michael@0: $(BATCH_TARGET):$(OBJECTS) michael@0: $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS) michael@0: endif # OS390BATCH michael@0: endif # ENABLE_SHARED michael@0: michael@0: ifeq (,$(MAKECMDGOALS)) michael@0: -include $(DEPS) michael@0: else michael@0: ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) michael@0: -include $(DEPS) michael@0: endif michael@0: endif