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