1#****************************************************************************** 2# 3# Copyright (C) 1999-2011, International Business Machines 4# Corporation and others. All Rights Reserved. 5# 6#****************************************************************************** 7## Makefile.in for ICU - layout 8 9## Source directory information 10srcdir = @srcdir@ 11top_srcdir = @top_srcdir@ 12 13top_builddir = .. 14 15## All the flags and other definitions are included here. 16include $(top_builddir)/icudefs.mk 17 18## Build directory information 19subdir = layout 20 21## Extra files to remove for 'make clean' 22CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) 23 24## Target information 25 26TARGET_STUBNAME=$(LAYOUT_STUBNAME) 27 28ifneq ($(ENABLE_STATIC),) 29TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) 30endif 31 32ifneq ($(ENABLE_SHARED),) 33SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO) 34ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT) 35 36ifeq ($(ENABLE_SO_VERSION_DATA),1) 37SO_VERSION_DATA = layout.res 38endif 39 40ifeq ($(OS390BATCH),1) 41BATCH_TARGET = $(BATCH_LAYOUT_TARGET) 42BATCH_LIBS = $(BATCH_LIBICUUC) -lm 43endif # OS390BATCH 44 45endif # ENABLE_SHARED 46 47ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET) 48 49DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) 50DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) 51DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) 52CFLAGS += $(LIBCFLAGS) 53CXXFLAGS += $(LIBCXXFLAGS) 54 55CPPFLAGS += -I$(srcdir) -I$(srcdir)/.. -I$(top_srcdir)/common -I$(srcdir)/unicode $(LIBCPPFLAGS) 56DEFS += -DU_LAYOUT_IMPLEMENTATION 57LDFLAGS += $(LDFLAGSICULE) 58LIBS = $(LIBICUUC) $(DEFAULT_LIBS) 59 60OBJECTS = LEFontInstance.o \ 61OpenTypeLayoutEngine.o \ 62ThaiLayoutEngine.o \ 63ThaiShaping.o \ 64ThaiStateTables.o \ 65ArabicLayoutEngine.o \ 66GXLayoutEngine.o \ 67HanLayoutEngine.o \ 68IndicLayoutEngine.o \ 69LayoutEngine.o \ 70ContextualGlyphSubstProc.o \ 71IndicRearrangementProcessor.o \ 72LigatureSubstProc.o \ 73LookupTables.o \ 74MorphTables.o \ 75NonContextualGlyphSubstProc.o \ 76SegmentArrayProcessor.o \ 77SegmentSingleProcessor.o \ 78SimpleArrayProcessor.o \ 79SingleTableProcessor.o \ 80StateTableProcessor.o \ 81SubtableProcessor.o \ 82TrimmedArrayProcessor.o \ 83AlternateSubstSubtables.o \ 84AnchorTables.o \ 85ArabicShaping.o \ 86CanonData.o \ 87CanonShaping.o \ 88ClassDefinitionTables.o \ 89ContextualSubstSubtables.o \ 90CoverageTables.o \ 91CursiveAttachmentSubtables.o \ 92DeviceTables.o \ 93ExtensionSubtables.o \ 94Features.o \ 95GDEFMarkFilter.o \ 96GlyphDefinitionTables.o \ 97GlyphIterator.o \ 98GlyphLookupTables.o \ 99GlyphPosnLookupProc.o \ 100GlyphPositionAdjustments.o \ 101GlyphPositioningTables.o \ 102GlyphSubstLookupProc.o \ 103GlyphSubstitutionTables.o \ 104IndicClassTables.o \ 105IndicReordering.o \ 106LEInsertionList.o \ 107LEGlyphStorage.o \ 108LigatureSubstSubtables.o \ 109LookupProcessor.o \ 110Lookups.o \ 111MarkArrays.o \ 112MarkToBasePosnSubtables.o \ 113MarkToLigaturePosnSubtables.o \ 114MarkToMarkPosnSubtables.o \ 115MirroredCharData.o \ 116MPreFixups.o \ 117MultipleSubstSubtables.o \ 118OpenTypeUtilities.o \ 119PairPositioningSubtables.o \ 120ScriptAndLanguage.o \ 121ScriptAndLanguageTags.o \ 122ShapingTypeData.o \ 123SinglePositioningSubtables.o \ 124SingleSubstitutionSubtables.o \ 125SubstitutionLookups.o \ 126ValueRecords.o \ 127KhmerLayoutEngine.o \ 128KhmerReordering.o \ 129TibetanLayoutEngine.o \ 130TibetanReordering.o \ 131HangulLayoutEngine.o \ 132KernTable.o \ 133loengine.o 134 135## Header files to install 136HEADERS= $(srcdir)/LayoutEngine.h $(srcdir)/LE*.h $(srcdir)/loengine.h 137 138STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) 139 140DEPS = $(OBJECTS:.o=.d) 141 142-include Makefile.local 143 144## List of phony targets 145.PHONY : all all-local install install-local clean clean-local \ 146distclean distclean-local install-library install-headers dist \ 147dist-local check check-local check-exhaustive 148 149## Clear suffix list 150.SUFFIXES : 151 152## List of standard targets 153all: all-local 154install: install-local 155clean: clean-local 156distclean : distclean-local 157dist: dist-local 158check: all check-local 159 160check-exhaustive: check 161 162all-local: $(ALL_TARGETS) 163 164install-local: install-headers install-library 165 166install-library: all-local 167 $(MKINSTALLDIRS) $(DESTDIR)$(libdir) 168ifneq ($(ENABLE_STATIC),) 169 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) 170endif 171ifneq ($(ENABLE_SHARED),) 172 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) 173ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) 174 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) 175ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) 176 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) 177endif 178endif 179ifneq ($(IMPORT_LIB_EXT),) 180 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) 181ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) 182 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) 183endif 184ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) 185 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) 186endif 187endif 188endif 189 190install-headers: 191 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/layout 192 @for file in $(HEADERS); do \ 193 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout"; \ 194 $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout || exit; \ 195 done 196 197dist-local: 198 199clean-local: 200 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 201 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA) 202 203distclean-local: clean-local 204 $(RMV) Makefile 205 206check-local: 207 208Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 209 cd $(top_builddir) \ 210 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 211 212ifneq ($(ENABLE_STATIC),) 213$(TARGET): $(STATIC_OBJECTS) 214 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ 215 $(RANLIB) $@ 216endif 217 218ifneq ($(ENABLE_SHARED),) 219$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA) 220 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) 221ifeq ($(ENABLE_RPATH),YES) 222ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) 223 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) 224endif 225endif 226 227ifeq ($(OS390BATCH),1) 228$(BATCH_TARGET):$(OBJECTS) 229 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS) 230endif # OS390BATCH 231endif # ENABLE_SHARED 232 233ifeq (,$(MAKECMDGOALS)) 234-include $(DEPS) 235else 236ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 237-include $(DEPS) 238endif 239endif 240 241