]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/Makefile.in
ICU-461.18.tar.gz
[apple/icu.git] / icuSources / i18n / Makefile.in
CommitLineData
b75a7d8f
A
1#******************************************************************************
2#
729e4ab9 3# Copyright (C) 1998-2010, 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)
b75a7d8f 55
73c04bcf 56ifneq ($(top_builddir),$(top_srcdir))
729e4ab9 57CPPFLAGS += -I- -I$(top_builddir)/common
73c04bcf 58endif
729e4ab9 59CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common $(LIBCPPFLAGS) $(CPPFLAGSICUI18N)
b75a7d8f 60DEFS += -DU_I18N_IMPLEMENTATION
73c04bcf 61LDFLAGS += $(LDFLAGSICUI18N)
b75a7d8f
A
62LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
63
64OBJECTS = ucln_in.o \
65fmtable.o format.o msgfmt.o umsg.o numfmt.o unum.o decimfmt.o dcfmtsym.o \
73c04bcf 66ucurr.o digitlst.o fmtable_cnv.o \
46f4442e 67choicfmt.o datefmt.o smpdtfmt.o reldtfmt.o dtfmtsym.o udat.o dtptngen.o \
729e4ab9 68nfrs.o nfrule.o nfsubs.o rbnf.o numsys.o ucsdet.o \
374ca955 69ucal.o calendar.o gregocal.o timezone.o simpletz.o olsontz.o \
46f4442e
A
70astro.o taiwncal.o buddhcal.o persncal.o islamcal.o japancal.o gregoimp.o hebrwcal.o \
71indiancal.o chnsecal.o cecal.o coptccal.o ethpccal.o \
73c04bcf
A
72coleitr.o coll.o tblcoll.o sortkey.o bocsu.o ucoleitr.o \
73ucol.o ucol_res.o ucol_bld.o ucol_sit.o ucol_tok.o ucol_wgt.o ucol_cnt.o ucol_elm.o \
b75a7d8f 74strmatch.o usearch.o search.o stsearch.o \
73c04bcf 75translit.o utrans.o esctrn.o unesctrn.o funcrepl.o strrepl.o tridpars.o \
374ca955
A
76cpdtrans.o rbt.o rbt_data.o rbt_pars.o rbt_rule.o rbt_set.o \
77nultrans.o remtrans.o casetrn.o titletrn.o tolowtrn.o toupptrn.o anytrans.o \
46f4442e 78name2uni.o uni2name.o nortrans.o quant.o transreg.o brktrans.o \
729e4ab9 79regexcmp.o rematch.o repattrn.o regexst.o regextxt.o udatpg.o uregex.o uregexc.o \
73c04bcf
A
80ulocdata.o measfmt.o currfmt.o curramt.o currunit.o measure.o utmscale.o \
81csdetect.o csmatch.o csr2022.o csrecog.o csrmbcs.o csrsbcs.o csrucode.o csrutf8.o inputext.o \
729e4ab9
A
82wintzimpl.o windtfmt.o winnmfmt.o basictz.o dtrule.o rbtz.o tzrule.o tztrans.o vtzone.o \
83zonemeta.o zstrfmt.o plurrule.o plurfmt.o selfmt.o dtitvfmt.o dtitvinf.o \
84tmunit.o tmutamt.o tmutfmt.o colldata.o bmsearch.o bms.o currpinf.o \
85uspoof.o uspoof_impl.o uspoof_build.o uspoof_conf.o uspoof_wsconf.o decfmtst.o smpdtfst.o \
86ztrans.o zrule.o vzone.o fphdlimp.o fpositer.o locdspnm.o \
87decNumber.o decContext.o
b75a7d8f 88
73c04bcf
A
89## Header files to install
90HEADERS = $(srcdir)/unicode/*.h
b75a7d8f
A
91
92STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
93
94DEPS = $(OBJECTS:.o=.d)
95
73c04bcf 96-include Makefile.local
b75a7d8f
A
97
98## List of phony targets
99.PHONY : all all-local install install-local clean clean-local \
100distclean distclean-local install-library install-headers dist \
101dist-local check check-local
102
103## Clear suffix list
104.SUFFIXES :
105
106## List of standard targets
107all: all-local
108install: install-local
109clean: clean-local
110distclean : distclean-local
111dist: dist-local
112check: all check-local
113
114all-local: $(ALL_TARGETS)
115
73c04bcf 116install-local: install-headers install-library
b75a7d8f
A
117
118install-library: all-local
119 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
120ifneq ($(ENABLE_STATIC),)
374ca955 121 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
b75a7d8f
A
122endif
123ifneq ($(ENABLE_SHARED),)
374ca955 124 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
b75a7d8f 125ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
374ca955 126 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
b75a7d8f 127ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
374ca955 128 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
b75a7d8f
A
129endif
130endif
b75a7d8f 131ifneq ($(IMPORT_LIB_EXT),)
374ca955
A
132 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
133ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
134 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
135endif
b75a7d8f 136ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
374ca955 137 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
b75a7d8f
A
138endif
139endif
46f4442e 140endif
b75a7d8f
A
141
142install-headers:
143 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode
144 @for file in $(HEADERS); do \
145 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \
146 $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \
147 done
148
149dist-local:
150
151clean-local:
152 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
374ca955 153 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
b75a7d8f
A
154
155distclean-local: clean-local
156 $(RMV) Makefile
157
158check-local:
159
160Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
161 cd $(top_builddir) \
162 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
163
164ifneq ($(ENABLE_STATIC),)
46f4442e
A
165$(TARGET): $(STATIC_OBJECTS)
166 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
b75a7d8f
A
167 $(RANLIB) $@
168endif
169
170ifneq ($(ENABLE_SHARED),)
73c04bcf 171$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
b75a7d8f
A
172 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
173
174ifeq ($(OS390BATCH),1)
175$(BATCH_TARGET):$(OBJECTS)
176 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
73c04bcf
A
177endif # OS390BATCH
178endif # ENABLE_SHARED
b75a7d8f
A
179
180ifeq (,$(MAKECMDGOALS))
181-include $(DEPS)
182else
183ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
184-include $(DEPS)
185endif
186endif
73c04bcf 187