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