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