]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/Makefile.in
ICU-59180.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / Makefile.in
CommitLineData
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
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'
374ca955 25CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
b75a7d8f
A
26
27## Target information
28
374ca955 29TARGET_STUBNAME=$(I18N_STUBNAME)
b75a7d8f
A
30
31ifneq ($(ENABLE_STATIC),)
374ca955 32TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
b75a7d8f
A
33endif
34
35ifneq ($(ENABLE_SHARED),)
374ca955 36SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
73c04bcf 37ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
b75a7d8f 38
374ca955
A
39ifeq ($(ENABLE_SO_VERSION_DATA),1)
40SO_VERSION_DATA = i18n.res
41endif
42
b75a7d8f
A
43ifeq ($(OS390BATCH),1)
44BATCH_TARGET = $(BATCH_I18N_TARGET)
45BATCH_LIBS = $(BATCH_LIBICUUC) -lm
73c04bcf 46endif # OS390BATCH
b75a7d8f 47
73c04bcf 48endif # ENABLE_SHARED
b75a7d8f
A
49
50ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
51
52DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
53DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
54DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
46f4442e
A
55CFLAGS += $(LIBCFLAGS)
56CXXFLAGS += $(LIBCXXFLAGS)
51004dcb
A
57ifeq ($(OS390BATCH),1)
58CFLAGS += -WI
59CXXFLAGS += -WI
60endif
b75a7d8f 61
729e4ab9 62CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common $(LIBCPPFLAGS) $(CPPFLAGSICUI18N)
b75a7d8f 63DEFS += -DU_I18N_IMPLEMENTATION
73c04bcf 64LDFLAGS += $(LDFLAGSICUI18N)
b75a7d8f
A
65LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
66
67OBJECTS = ucln_in.o \
57a6839d 68fmtable.o format.o msgfmt.o umsg.o numfmt.o unum.o decimfmt.o decimalformatpattern.o dcfmtsym.o \
2ca993e8 69digitlst.o fmtable_cnv.o \
4388f060 70choicfmt.o datefmt.o smpdtfmt.o reldtfmt.o dtfmtsym.o udat.o dtptngen.o udatpg.o \
57a6839d 71nfrs.o nfrule.o nfsubs.o rbnf.o numsys.o unumsys.o ucsdet.o \
374ca955 72ucal.o calendar.o gregocal.o timezone.o simpletz.o olsontz.o \
46f4442e 73astro.o taiwncal.o buddhcal.o persncal.o islamcal.o japancal.o gregoimp.o hebrwcal.o \
51004dcb 74indiancal.o chnsecal.o cecal.o coptccal.o dangical.o ethpccal.o \
57a6839d
A
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 \
b331163b 82collationrootelements.o collationdatabuilder.o \
57a6839d 83collationweights.o collationruleparser.o collationbuilder.o collationfastlatinbuilder.o \
b75a7d8f 84strmatch.o usearch.o search.o stsearch.o \
73c04bcf 85translit.o utrans.o esctrn.o unesctrn.o funcrepl.o strrepl.o tridpars.o \
374ca955
A
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 \
46f4442e 88name2uni.o uni2name.o nortrans.o quant.o transreg.o brktrans.o \
4388f060 89regexcmp.o rematch.o repattrn.o regexst.o regextxt.o regeximp.o uregex.o uregexc.o \
73c04bcf
A
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 \
4388f060 92wintzimpl.o windtfmt.o winnmfmt.o basictz.o dtrule.o rbtz.o tzrule.o tztrans.o vtzone.o zonemeta.o \
2ca993e8 93standardplural.o upluralrules.o plurrule.o plurfmt.o selfmt.o dtitvfmt.o dtitvinf.o udateintervalformat.o \
51004dcb 94tmunit.o tmutamt.o tmutfmt.o currpinf.o \
f3c0d7a5 95uspoof.o uspoof_impl.o uspoof_build.o uspoof_conf.o decfmtst.o smpdtfst.o \
2ca993e8 96ztrans.o zrule.o vzone.o fphdlimp.o fpositer.o ufieldpositer.o \
4388f060 97decNumber.o decContext.o alphaindex.o tznames.o tznames_impl.o tzgnames.o \
f3c0d7a5 98tzfmt.o compactdecimalformat.o gender.o region.o scriptset.o \
b331163b 99uregion.o reldatefmt.o quantityformatter.o measunit.o \
2ca993e8
A
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
b75a7d8f 105
73c04bcf
A
106## Header files to install
107HEADERS = $(srcdir)/unicode/*.h
b75a7d8f
A
108
109STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
110
111DEPS = $(OBJECTS:.o=.d)
112
73c04bcf 113-include Makefile.local
b75a7d8f
A
114
115## List of phony targets
116.PHONY : all all-local install install-local clean clean-local \
117distclean distclean-local install-library install-headers dist \
4388f060 118dist-local check check-local check-exhaustive
b75a7d8f
A
119
120## Clear suffix list
121.SUFFIXES :
122
123## List of standard targets
124all: all-local
125install: install-local
126clean: clean-local
127distclean : distclean-local
128dist: dist-local
129check: all check-local
130
4388f060
A
131check-exhaustive: check
132
b75a7d8f
A
133all-local: $(ALL_TARGETS)
134
73c04bcf 135install-local: install-headers install-library
b75a7d8f
A
136
137install-library: all-local
138 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
139ifneq ($(ENABLE_STATIC),)
374ca955 140 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
b75a7d8f
A
141endif
142ifneq ($(ENABLE_SHARED),)
374ca955 143 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
b75a7d8f 144ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
374ca955 145 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
b75a7d8f 146ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
374ca955 147 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
b75a7d8f
A
148endif
149endif
b75a7d8f 150ifneq ($(IMPORT_LIB_EXT),)
374ca955
A
151 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
152ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
153 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
154endif
b75a7d8f 155ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
374ca955 156 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
b75a7d8f
A
157endif
158endif
46f4442e 159endif
b75a7d8f
A
160
161install-headers:
162 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode
163 @for file in $(HEADERS); do \
164 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \
165 $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \
166 done
167
168dist-local:
169
170clean-local:
171 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
374ca955 172 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
b75a7d8f
A
173
174distclean-local: clean-local
175 $(RMV) Makefile
176
177check-local:
178
179Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
180 cd $(top_builddir) \
181 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
182
183ifneq ($(ENABLE_STATIC),)
46f4442e
A
184$(TARGET): $(STATIC_OBJECTS)
185 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
b75a7d8f
A
186 $(RANLIB) $@
187endif
188
189ifneq ($(ENABLE_SHARED),)
73c04bcf 190$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
b75a7d8f 191 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
4388f060
A
192ifeq ($(ENABLE_RPATH),YES)
193ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
194 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
195endif
196endif
b75a7d8f
A
197
198ifeq ($(OS390BATCH),1)
199$(BATCH_TARGET):$(OBJECTS)
200 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
73c04bcf
A
201endif # OS390BATCH
202endif # ENABLE_SHARED
b75a7d8f
A
203
204ifeq (,$(MAKECMDGOALS))
205-include $(DEPS)
206else
207ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
208-include $(DEPS)
209endif
210endif