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