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