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