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