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