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