1 #******************************************************************************
3 # Copyright (C) 1998-2004, International Business Machines
4 # Corporation and others. All Rights Reserved.
6 #******************************************************************************
7 ## Makefile.in for ICU - icui18n.so
10 ## Source directory information
12 top_srcdir = @top_srcdir@
16 ## All the flags and other definitions are included here.
17 include $(top_builddir)/icudefs.mk
18 -include Makefile.local
20 ## Build directory information
23 ## Extra files to remove for 'make clean'
24 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
28 TARGET_STUBNAME=$(I18N_STUBNAME)
30 ifneq ($(ENABLE_STATIC),)
31 TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
34 ifneq ($(ENABLE_SHARED),)
35 SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
36 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
38 ifeq ($(ENABLE_SO_VERSION_DATA),1)
39 SO_VERSION_DATA = i18n.res
42 ifeq ($(OS390BATCH),1)
43 BATCH_TARGET = $(BATCH_I18N_TARGET)
44 BATCH_LIBS = $(BATCH_LIBICUUC) -lm
49 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
51 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
52 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
53 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
55 LDFLAGS += $(LDFLAGSICUI18N)
56 CPPFLAGS += -I$(srcdir) -I$(top_builddir)/common -I$(top_srcdir)/common $(LIBCPPFLAGS)
57 DEFS += -DU_I18N_IMPLEMENTATION
58 LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
61 fmtable.o format.o msgfmt.o umsg.o numfmt.o unum.o decimfmt.o dcfmtsym.o \
63 choicfmt.o datefmt.o smpdtfmt.o dtfmtsym.o udat.o \
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 \
67 sortkey.o bocsu.o coleitr.o coll.o ucoleitr.o \
68 ucol.o ucol_bld.o ucol_cnt.o ucol_elm.o ucol_sit.o ucol_tok.o ucol_wgt.o tblcoll.o \
69 strmatch.o usearch.o search.o stsearch.o \
70 translit.o utrans.o esctrn.o unesctrn.o \
71 funcrepl.o strrepl.o tridpars.o \
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
79 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
81 DEPS = $(OBJECTS:.o=.d)
83 ## Header files to install
84 HEADERS= $(srcdir)/unicode/*.h
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
94 ## List of standard targets
96 install: install-local
98 distclean : distclean-local
100 check: all check-local
102 all-local: $(ALL_TARGETS)
104 install-local: install-headers install-library
106 install-library: all-local
107 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
108 ifneq ($(ENABLE_STATIC),)
109 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
111 ifneq ($(ENABLE_SHARED),)
112 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
113 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
114 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
115 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
116 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
120 ifneq ($(IMPORT_LIB_EXT),)
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))
125 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
126 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
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; \
140 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
141 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
143 distclean-local: clean-local
148 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
150 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
152 ifneq ($(ENABLE_STATIC),)
153 $(TARGET): $(TARGET)($(STATIC_OBJECTS))
157 ifneq ($(ENABLE_SHARED),)
158 $(FINAL_SO_TARGET): $(OBJECTS) $(SO_VERSION_DATA)
159 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
161 ifeq ($(OS390BATCH),1)
162 $(BATCH_TARGET):$(OBJECTS)
163 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
167 ifeq (,$(MAKECMDGOALS))
170 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)