]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | #****************************************************************************** |
2 | # | |
374ca955 | 3 | # Copyright (C) 1998-2004, 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 | |
374ca955 | 18 | -include Makefile.local |
b75a7d8f A |
19 | |
20 | ## Build directory information | |
21 | subdir = i18n | |
22 | ||
23 | ## Extra files to remove for 'make clean' | |
374ca955 | 24 | CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) |
b75a7d8f A |
25 | |
26 | ## Target information | |
27 | ||
374ca955 | 28 | TARGET_STUBNAME=$(I18N_STUBNAME) |
b75a7d8f A |
29 | |
30 | ifneq ($(ENABLE_STATIC),) | |
374ca955 | 31 | TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) |
b75a7d8f A |
32 | endif |
33 | ||
34 | ifneq ($(ENABLE_SHARED),) | |
374ca955 | 35 | SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO) |
b75a7d8f A |
36 | ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) |
37 | ||
374ca955 A |
38 | ifeq ($(ENABLE_SO_VERSION_DATA),1) |
39 | SO_VERSION_DATA = i18n.res | |
40 | endif | |
41 | ||
b75a7d8f A |
42 | ifeq ($(OS390BATCH),1) |
43 | BATCH_TARGET = $(BATCH_I18N_TARGET) | |
44 | BATCH_LIBS = $(BATCH_LIBICUUC) -lm | |
45 | endif # OS390BATCH | |
46 | ||
47 | endif # ENABLE_SHARED | |
48 | ||
49 | ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET) | |
50 | ||
51 | DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) | |
52 | DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) | |
53 | DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) | |
54 | ||
374ca955 | 55 | LDFLAGS += $(LDFLAGSICUI18N) |
b75a7d8f A |
56 | CPPFLAGS += -I$(srcdir) -I$(top_builddir)/common -I$(top_srcdir)/common $(LIBCPPFLAGS) |
57 | DEFS += -DU_I18N_IMPLEMENTATION | |
58 | LIBS = $(LIBICUUC) $(DEFAULT_LIBS) | |
59 | ||
60 | OBJECTS = ucln_in.o \ | |
61 | fmtable.o format.o msgfmt.o umsg.o numfmt.o unum.o decimfmt.o dcfmtsym.o \ | |
374ca955 | 62 | ucurr.o digitlst.o \ |
b75a7d8f | 63 | choicfmt.o datefmt.o smpdtfmt.o dtfmtsym.o udat.o \ |
374ca955 A |
64 | nfrs.o nfrule.o nfsubs.o rbnf.o \ |
65 | ucal.o calendar.o gregocal.o timezone.o simpletz.o olsontz.o \ | |
66 | astro.o buddhcal.o islamcal.o japancal.o gregoimp.o hebrwcal.o chnsecal.o \ | |
b75a7d8f | 67 | sortkey.o bocsu.o coleitr.o coll.o ucoleitr.o \ |
374ca955 | 68 | ucol.o ucol_bld.o ucol_cnt.o ucol_elm.o ucol_sit.o ucol_tok.o ucol_wgt.o tblcoll.o \ |
b75a7d8f | 69 | strmatch.o usearch.o search.o stsearch.o \ |
374ca955 | 70 | translit.o utrans.o esctrn.o unesctrn.o \ |
b75a7d8f | 71 | funcrepl.o strrepl.o tridpars.o \ |
374ca955 A |
72 | cpdtrans.o rbt.o rbt_data.o rbt_pars.o rbt_rule.o rbt_set.o \ |
73 | nultrans.o remtrans.o casetrn.o titletrn.o tolowtrn.o toupptrn.o anytrans.o \ | |
74 | name2uni.o uni2name.o nortrans.o quant.o transreg.o \ | |
75 | regexcmp.o rematch.o repattrn.o regexst.o uregex.o ulocdata.o \ | |
76 | measfmt.o currfmt.o curramt.o currunit.o measure.o utmscale.o | |
b75a7d8f A |
77 | |
78 | ||
79 | STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) | |
80 | ||
81 | DEPS = $(OBJECTS:.o=.d) | |
82 | ||
83 | ## Header files to install | |
84 | HEADERS= $(srcdir)/unicode/*.h | |
85 | ||
86 | ## List of phony targets | |
87 | .PHONY : all all-local install install-local clean clean-local \ | |
88 | distclean distclean-local install-library install-headers dist \ | |
89 | dist-local check check-local | |
90 | ||
91 | ## Clear suffix list | |
92 | .SUFFIXES : | |
93 | ||
94 | ## List of standard targets | |
95 | all: all-local | |
96 | install: install-local | |
97 | clean: clean-local | |
98 | distclean : distclean-local | |
99 | dist: dist-local | |
100 | check: all check-local | |
101 | ||
102 | all-local: $(ALL_TARGETS) | |
103 | ||
104 | install-local: install-headers install-library | |
105 | ||
106 | install-library: all-local | |
107 | $(MKINSTALLDIRS) $(DESTDIR)$(libdir) | |
108 | ifneq ($(ENABLE_STATIC),) | |
374ca955 | 109 | $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) |
b75a7d8f A |
110 | endif |
111 | ifneq ($(ENABLE_SHARED),) | |
374ca955 | 112 | $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
b75a7d8f | 113 | ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) |
374ca955 | 114 | cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) |
b75a7d8f | 115 | ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) |
374ca955 | 116 | cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) |
b75a7d8f A |
117 | endif |
118 | endif | |
119 | endif | |
120 | ifneq ($(IMPORT_LIB_EXT),) | |
374ca955 A |
121 | $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) |
122 | ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) | |
123 | cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) | |
124 | endif | |
b75a7d8f | 125 | ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) |
374ca955 | 126 | cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) |
b75a7d8f A |
127 | endif |
128 | endif | |
129 | ||
130 | install-headers: | |
131 | $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode | |
132 | @for file in $(HEADERS); do \ | |
133 | echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \ | |
134 | $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \ | |
135 | done | |
136 | ||
137 | dist-local: | |
138 | ||
139 | clean-local: | |
140 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
374ca955 | 141 | $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA) |
b75a7d8f A |
142 | |
143 | distclean-local: clean-local | |
144 | $(RMV) Makefile | |
145 | ||
146 | check-local: | |
147 | ||
148 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
149 | cd $(top_builddir) \ | |
150 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
151 | ||
152 | ifneq ($(ENABLE_STATIC),) | |
153 | $(TARGET): $(TARGET)($(STATIC_OBJECTS)) | |
154 | $(RANLIB) $@ | |
155 | endif | |
156 | ||
157 | ifneq ($(ENABLE_SHARED),) | |
374ca955 | 158 | $(FINAL_SO_TARGET): $(OBJECTS) $(SO_VERSION_DATA) |
b75a7d8f A |
159 | $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) |
160 | ||
161 | ifeq ($(OS390BATCH),1) | |
162 | $(BATCH_TARGET):$(OBJECTS) | |
163 | $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS) | |
164 | endif # OS390BATCH | |
165 | endif | |
166 | ||
167 | ifeq (,$(MAKECMDGOALS)) | |
168 | -include $(DEPS) | |
169 | else | |
170 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
171 | -include $(DEPS) | |
172 | endif | |
173 | endif |