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