michael@0: #****************************************************************************** michael@0: # michael@0: # Copyright (C) 1998-2013, International Business Machines michael@0: # Corporation and others. All Rights Reserved. michael@0: # michael@0: #****************************************************************************** michael@0: ## Makefile.in for ICU - icui18n.so michael@0: ## Stephen F. Booth michael@0: michael@0: ## Source directory information michael@0: srcdir = @srcdir@ michael@0: top_srcdir = @top_srcdir@ michael@0: michael@0: top_builddir = .. michael@0: michael@0: ## All the flags and other definitions are included here. michael@0: include $(top_builddir)/icudefs.mk michael@0: michael@0: ## Build directory information michael@0: subdir = i18n michael@0: michael@0: ## Extra files to remove for 'make clean' michael@0: CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) michael@0: michael@0: ## Target information michael@0: michael@0: TARGET_STUBNAME=$(I18N_STUBNAME) michael@0: michael@0: ifneq ($(ENABLE_STATIC),) michael@0: TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) michael@0: endif michael@0: michael@0: ifneq ($(ENABLE_SHARED),) michael@0: SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO) michael@0: ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT) michael@0: michael@0: ifeq ($(ENABLE_SO_VERSION_DATA),1) michael@0: SO_VERSION_DATA = i18n.res michael@0: endif michael@0: michael@0: ifeq ($(OS390BATCH),1) michael@0: BATCH_TARGET = $(BATCH_I18N_TARGET) michael@0: BATCH_LIBS = $(BATCH_LIBICUUC) -lm michael@0: endif # OS390BATCH michael@0: michael@0: endif # ENABLE_SHARED michael@0: michael@0: ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET) michael@0: michael@0: DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) michael@0: DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) michael@0: DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) michael@0: CFLAGS += $(LIBCFLAGS) michael@0: CXXFLAGS += $(LIBCXXFLAGS) michael@0: ifeq ($(OS390BATCH),1) michael@0: CFLAGS += -WI michael@0: CXXFLAGS += -WI michael@0: endif michael@0: michael@0: CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common $(LIBCPPFLAGS) $(CPPFLAGSICUI18N) michael@0: DEFS += -DU_I18N_IMPLEMENTATION michael@0: LDFLAGS += $(LDFLAGSICUI18N) michael@0: LIBS = $(LIBICUUC) $(DEFAULT_LIBS) michael@0: michael@0: OBJECTS = ucln_in.o \ michael@0: fmtable.o format.o msgfmt.o umsg.o numfmt.o unum.o decimfmt.o dcfmtsym.o \ michael@0: ucurr.o digitlst.o fmtable_cnv.o \ michael@0: choicfmt.o datefmt.o smpdtfmt.o reldtfmt.o dtfmtsym.o udat.o dtptngen.o udatpg.o \ michael@0: nfrs.o nfrule.o nfsubs.o rbnf.o numsys.o unumsys.o ucsdet.o \ michael@0: ucal.o calendar.o gregocal.o timezone.o simpletz.o olsontz.o \ michael@0: astro.o taiwncal.o buddhcal.o persncal.o islamcal.o japancal.o gregoimp.o hebrwcal.o \ michael@0: indiancal.o chnsecal.o cecal.o coptccal.o dangical.o ethpccal.o \ michael@0: coleitr.o coll.o tblcoll.o sortkey.o bocsu.o ucoleitr.o \ michael@0: ucol.o ucol_res.o ucol_bld.o ucol_sit.o ucol_tok.o ucol_wgt.o ucol_cnt.o ucol_elm.o \ michael@0: strmatch.o usearch.o search.o stsearch.o \ michael@0: translit.o utrans.o esctrn.o unesctrn.o funcrepl.o strrepl.o tridpars.o \ michael@0: cpdtrans.o rbt.o rbt_data.o rbt_pars.o rbt_rule.o rbt_set.o \ michael@0: nultrans.o remtrans.o casetrn.o titletrn.o tolowtrn.o toupptrn.o anytrans.o \ michael@0: name2uni.o uni2name.o nortrans.o quant.o transreg.o brktrans.o \ michael@0: regexcmp.o rematch.o repattrn.o regexst.o regextxt.o regeximp.o uregex.o uregexc.o \ michael@0: ulocdata.o measfmt.o currfmt.o curramt.o currunit.o measure.o utmscale.o \ michael@0: csdetect.o csmatch.o csr2022.o csrecog.o csrmbcs.o csrsbcs.o csrucode.o csrutf8.o inputext.o \ michael@0: wintzimpl.o windtfmt.o winnmfmt.o basictz.o dtrule.o rbtz.o tzrule.o tztrans.o vtzone.o zonemeta.o \ michael@0: upluralrules.o plurrule.o plurfmt.o selfmt.o dtitvfmt.o dtitvinf.o udateintervalformat.o \ michael@0: tmunit.o tmutamt.o tmutfmt.o currpinf.o \ michael@0: uspoof.o uspoof_impl.o uspoof_build.o uspoof_conf.o uspoof_wsconf.o decfmtst.o smpdtfst.o \ michael@0: ztrans.o zrule.o vzone.o fphdlimp.o fpositer.o locdspnm.o \ michael@0: decNumber.o decContext.o alphaindex.o tznames.o tznames_impl.o tzgnames.o \ michael@0: tzfmt.o compactdecimalformat.o gender.o region.o scriptset.o identifier_info.o \ michael@0: uregion.o michael@0: michael@0: ## Header files to install michael@0: HEADERS = $(srcdir)/unicode/*.h michael@0: michael@0: STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) michael@0: michael@0: DEPS = $(OBJECTS:.o=.d) michael@0: michael@0: -include Makefile.local michael@0: michael@0: ## List of phony targets michael@0: .PHONY : all all-local install install-local clean clean-local \ michael@0: distclean distclean-local install-library install-headers dist \ michael@0: dist-local check check-local check-exhaustive michael@0: michael@0: ## Clear suffix list michael@0: .SUFFIXES : michael@0: michael@0: ## List of standard targets michael@0: all: all-local michael@0: install: install-local michael@0: clean: clean-local michael@0: distclean : distclean-local michael@0: dist: dist-local michael@0: check: all check-local michael@0: michael@0: check-exhaustive: check michael@0: michael@0: all-local: $(ALL_TARGETS) michael@0: michael@0: install-local: install-headers install-library michael@0: michael@0: install-library: all-local michael@0: $(MKINSTALLDIRS) $(DESTDIR)$(libdir) michael@0: ifneq ($(ENABLE_STATIC),) michael@0: $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) michael@0: endif michael@0: ifneq ($(ENABLE_SHARED),) michael@0: $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) michael@0: ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) michael@0: ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) michael@0: endif michael@0: endif michael@0: ifneq ($(IMPORT_LIB_EXT),) michael@0: $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) michael@0: ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) michael@0: endif michael@0: ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) michael@0: cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) michael@0: endif michael@0: endif michael@0: endif michael@0: michael@0: install-headers: michael@0: $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode michael@0: @for file in $(HEADERS); do \ michael@0: echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \ michael@0: $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \ michael@0: done michael@0: michael@0: dist-local: michael@0: michael@0: clean-local: michael@0: test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) michael@0: $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA) michael@0: michael@0: distclean-local: clean-local michael@0: $(RMV) Makefile michael@0: michael@0: check-local: michael@0: michael@0: Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status michael@0: cd $(top_builddir) \ michael@0: && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status michael@0: michael@0: ifneq ($(ENABLE_STATIC),) michael@0: $(TARGET): $(STATIC_OBJECTS) michael@0: $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ michael@0: $(RANLIB) $@ michael@0: endif michael@0: michael@0: ifneq ($(ENABLE_SHARED),) michael@0: $(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA) michael@0: $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) michael@0: ifeq ($(ENABLE_RPATH),YES) michael@0: ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) michael@0: $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) michael@0: endif michael@0: endif michael@0: michael@0: ifeq ($(OS390BATCH),1) michael@0: $(BATCH_TARGET):$(OBJECTS) michael@0: $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS) michael@0: endif # OS390BATCH michael@0: endif # ENABLE_SHARED michael@0: michael@0: ifeq (,$(MAKECMDGOALS)) michael@0: -include $(DEPS) michael@0: else michael@0: ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) michael@0: -include $(DEPS) michael@0: endif michael@0: endif