]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/i18n/Makefile.in
ICU-62135.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / Makefile.in
... / ...
CommitLineData
1# Copyright (C) 2016 and later: Unicode, Inc. and others.
2# License & terms of use: http://www.unicode.org/copyright.html
3#******************************************************************************
4#
5# Copyright (C) 1998-2016, International Business Machines
6# Corporation and others. All Rights Reserved.
7#
8#******************************************************************************
9## Makefile.in for ICU - icui18n.so
10## Stephen F. Booth
11
12## Source directory information
13srcdir = @srcdir@
14top_srcdir = @top_srcdir@
15
16top_builddir = ..
17
18## All the flags and other definitions are included here.
19include $(top_builddir)/icudefs.mk
20
21## Build directory information
22subdir = i18n
23
24## Extra files to remove for 'make clean'
25CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
26
27## Target information
28
29TARGET_STUBNAME=$(I18N_STUBNAME)
30
31ifneq ($(ENABLE_STATIC),)
32TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
33endif
34
35ifneq ($(ENABLE_SHARED),)
36SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
37ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
38
39ifeq ($(ENABLE_SO_VERSION_DATA),1)
40SO_VERSION_DATA = i18n.res
41endif
42
43ifeq ($(OS390BATCH),1)
44BATCH_TARGET = $(BATCH_I18N_TARGET)
45BATCH_LIBS = $(BATCH_LIBICUUC) -lm
46endif # OS390BATCH
47
48endif # ENABLE_SHARED
49
50ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
51
52DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
53DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
54DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
55CFLAGS += $(LIBCFLAGS)
56CXXFLAGS += $(LIBCXXFLAGS)
57ifeq ($(OS390BATCH),1)
58CFLAGS += -WI
59CXXFLAGS += -WI
60endif
61
62CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common $(LIBCPPFLAGS) $(CPPFLAGSICUI18N)
63DEFS += -DU_I18N_IMPLEMENTATION
64LDFLAGS += $(LDFLAGSICUI18N)
65LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
66
67OBJECTS = ucln_in.o \
68fmtable.o format.o msgfmt.o umsg.o numfmt.o unum.o decimfmt.o decimalformatpattern.o dcfmtsym.o \
69digitlst.o fmtable_cnv.o \
70choicfmt.o datefmt.o smpdtfmt.o reldtfmt.o dtfmtsym.o udat.o dtptngen.o udatpg.o \
71nfrs.o nfrule.o nfsubs.o rbnf.o numsys.o unumsys.o ucsdet.o \
72ucal.o calendar.o gregocal.o timezone.o simpletz.o olsontz.o \
73astro.o taiwncal.o buddhcal.o persncal.o islamcal.o japancal.o gregoimp.o hebrwcal.o \
74indiancal.o chnsecal.o cecal.o coptccal.o dangical.o ethpccal.o \
75coleitr.o coll.o sortkey.o bocsu.o ucoleitr.o \
76ucol.o ucol_res.o ucol_sit.o \
77collation.o collationsettings.o collationdata.o collationtailoring.o \
78collationdatareader.o collationdatawriter.o collationfcd.o \
79collationiterator.o utf16collationiterator.o utf8collationiterator.o uitercollationiterator.o \
80collationsets.o \
81collationcompare.o collationfastlatin.o collationkeys.o rulebasedcollator.o collationroot.o \
82collationrootelements.o collationdatabuilder.o \
83collationweights.o collationruleparser.o collationbuilder.o collationfastlatinbuilder.o \
84strmatch.o usearch.o search.o stsearch.o \
85translit.o utrans.o esctrn.o unesctrn.o funcrepl.o strrepl.o tridpars.o \
86cpdtrans.o rbt.o rbt_data.o rbt_pars.o rbt_rule.o rbt_set.o \
87nultrans.o remtrans.o casetrn.o titletrn.o tolowtrn.o toupptrn.o anytrans.o \
88name2uni.o uni2name.o nortrans.o quant.o transreg.o brktrans.o \
89regexcmp.o rematch.o repattrn.o regexst.o regextxt.o regeximp.o uregex.o uregexc.o \
90ulocdata.o measfmt.o currfmt.o curramt.o currunit.o measure.o utmscale.o \
91csdetect.o csmatch.o csr2022.o csrecog.o csrmbcs.o csrsbcs.o csrucode.o csrutf8.o inputext.o \
92wintzimpl.o windtfmt.o winnmfmt.o basictz.o dtrule.o rbtz.o tzrule.o tztrans.o vtzone.o zonemeta.o \
93standardplural.o upluralrules.o plurrule.o plurfmt.o selfmt.o dtitvfmt.o dtitvinf.o udateintervalformat.o \
94tmunit.o tmutamt.o tmutfmt.o currpinf.o \
95uspoof.o uspoof_impl.o uspoof_build.o uspoof_conf.o decfmtst.o smpdtfst.o \
96ztrans.o zrule.o vzone.o fphdlimp.o fpositer.o ufieldpositer.o \
97decNumber.o decContext.o alphaindex.o tznames.o tznames_impl.o tzgnames.o \
98tzfmt.o compactdecimalformat.o gender.o region.o scriptset.o \
99uregion.o reldatefmt.o quantityformatter.o measunit.o \
100sharedbreakiterator.o scientificnumberformatter.o digitgrouping.o \
101digitinterval.o digitformatter.o digitaffix.o valueformatter.o \
102digitaffixesandpadding.o pluralaffix.o precision.o \
103affixpatternparser.o smallintformatter.o decimfmtimpl.o \
104visibledigits.o dayperiodrules.o \
105nounit.o \
106number_affixutils.o number_compact.o number_decimalquantity.o \
107number_decimfmtprops.o number_fluent.o number_formatimpl.o number_grouping.o \
108number_integerwidth.o number_longnames.o number_modifiers.o number_notation.o \
109number_padding.o number_patternmodifier.o number_patternstring.o \
110number_rounding.o number_scientific.o number_stringbuilder.o number_utils.o number_asformat.o \
111number_mapper.o number_multiplier.o number_currencysymbols.o number_skeletons.o number_capi.o \
112double-conversion.o double-conversion-bignum-dtoa.o double-conversion-bignum.o \
113double-conversion-cached-powers.o double-conversion-diy-fp.o \
114double-conversion-fast-dtoa.o double-conversion-strtod.o \
115numparse_stringsegment.o numparse_parsednumber.o numparse_impl.o \
116numparse_symbols.o numparse_decimal.o numparse_scientific.o numparse_currency.o \
117numparse_affixes.o numparse_compositions.o numparse_validators.o \
118erarules.o
119
120## Header files to install
121HEADERS = $(srcdir)/unicode/*.h
122
123STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
124
125DEPS = $(OBJECTS:.o=.d)
126
127-include Makefile.local
128
129## List of phony targets
130.PHONY : all all-local install install-local clean clean-local \
131distclean distclean-local install-library install-headers dist \
132dist-local check check-local check-exhaustive
133
134## Clear suffix list
135.SUFFIXES :
136
137## List of standard targets
138all: all-local
139install: install-local
140clean: clean-local
141distclean : distclean-local
142dist: dist-local
143check: all check-local
144
145check-exhaustive: check
146
147all-local: $(ALL_TARGETS)
148
149install-local: install-headers install-library
150
151install-library: all-local
152 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
153ifneq ($(ENABLE_STATIC),)
154 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
155endif
156ifneq ($(ENABLE_SHARED),)
157 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
158ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
159 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
160ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
161 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
162endif
163endif
164ifneq ($(IMPORT_LIB_EXT),)
165 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
166ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
167 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
168endif
169ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
170 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
171endif
172endif
173endif
174
175install-headers:
176 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode
177 @for file in $(HEADERS); 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)
186 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
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): $(STATIC_OBJECTS)
199 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
200 $(RANLIB) $@
201endif
202
203ifneq ($(ENABLE_SHARED),)
204$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
205 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
206ifeq ($(ENABLE_RPATH),YES)
207ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
208 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
209endif
210endif
211
212ifeq ($(OS390BATCH),1)
213$(BATCH_TARGET):$(OBJECTS)
214 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
215endif # OS390BATCH
216endif # ENABLE_SHARED
217
218ifeq (,$(MAKECMDGOALS))
219-include $(DEPS)
220else
221ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
222-include $(DEPS)
223endif
224endif