1#****************************************************************************** 2# 3# Copyright (C) 1998-2015, 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_TARGETS = $(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_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET) 49 50DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) 51DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) 52DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) 53CFLAGS += $(LIBCFLAGS) 54CXXFLAGS += $(LIBCXXFLAGS) 55ifeq ($(OS390BATCH),1) 56CFLAGS += -WI 57CXXFLAGS += -WI 58endif 59 60CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common $(LIBCPPFLAGS) $(CPPFLAGSICUI18N) 61DEFS += -DU_I18N_IMPLEMENTATION 62LDFLAGS += $(LDFLAGSICUI18N) 63LIBS = $(LIBICUUC) $(DEFAULT_LIBS) 64 65OBJECTS = ucln_in.o \ 66fmtable.o format.o msgfmt.o umsg.o numfmt.o unum.o decimfmt.o decimalformatpattern.o dcfmtsym.o \ 67ucurr.o digitlst.o fmtable_cnv.o \ 68choicfmt.o datefmt.o smpdtfmt.o reldtfmt.o dtfmtsym.o udat.o dtptngen.o udatpg.o \ 69nfrs.o nfrule.o nfsubs.o rbnf.o numsys.o unumsys.o ucsdet.o \ 70ucal.o calendar.o gregocal.o timezone.o simpletz.o olsontz.o \ 71astro.o taiwncal.o buddhcal.o persncal.o islamcal.o japancal.o gregoimp.o hebrwcal.o \ 72indiancal.o chnsecal.o cecal.o coptccal.o dangical.o ethpccal.o \ 73coleitr.o coll.o sortkey.o bocsu.o ucoleitr.o \ 74ucol.o ucol_res.o ucol_sit.o \ 75collation.o collationsettings.o collationdata.o collationtailoring.o \ 76collationdatareader.o collationdatawriter.o collationfcd.o \ 77collationiterator.o utf16collationiterator.o utf8collationiterator.o uitercollationiterator.o \ 78collationsets.o \ 79collationcompare.o collationfastlatin.o collationkeys.o rulebasedcollator.o collationroot.o \ 80collationrootelements.o collationdatabuilder.o \ 81collationweights.o collationruleparser.o collationbuilder.o collationfastlatinbuilder.o \ 82strmatch.o usearch.o search.o stsearch.o \ 83translit.o utrans.o esctrn.o unesctrn.o funcrepl.o strrepl.o tridpars.o \ 84cpdtrans.o rbt.o rbt_data.o rbt_pars.o rbt_rule.o rbt_set.o \ 85nultrans.o remtrans.o casetrn.o titletrn.o tolowtrn.o toupptrn.o anytrans.o \ 86name2uni.o uni2name.o nortrans.o quant.o transreg.o brktrans.o \ 87regexcmp.o rematch.o repattrn.o regexst.o regextxt.o regeximp.o uregex.o uregexc.o \ 88ulocdata.o measfmt.o currfmt.o curramt.o currunit.o measure.o utmscale.o \ 89csdetect.o csmatch.o csr2022.o csrecog.o csrmbcs.o csrsbcs.o csrucode.o csrutf8.o inputext.o \ 90wintzimpl.o windtfmt.o winnmfmt.o basictz.o dtrule.o rbtz.o tzrule.o tztrans.o vtzone.o zonemeta.o \ 91upluralrules.o plurrule.o plurfmt.o selfmt.o dtitvfmt.o dtitvinf.o udateintervalformat.o \ 92tmunit.o tmutamt.o tmutfmt.o currpinf.o \ 93uspoof.o uspoof_impl.o uspoof_build.o uspoof_conf.o uspoof_wsconf.o decfmtst.o smpdtfst.o \ 94ztrans.o zrule.o vzone.o fphdlimp.o fpositer.o ufieldpositer.o locdspnm.o \ 95decNumber.o decContext.o alphaindex.o tznames.o tznames_impl.o tzgnames.o \ 96tzfmt.o compactdecimalformat.o gender.o region.o scriptset.o identifier_info.o \ 97uregion.o reldatefmt.o quantityformatter.o measunit.o filteredbrk.o \ 98sharedbreakiterator.o scientificnumberformatter.o 99 100## Header files to install 101HEADERS = $(srcdir)/unicode/*.h 102 103STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) 104 105DEPS = $(OBJECTS:.o=.d) 106 107-include Makefile.local 108 109## List of phony targets 110.PHONY : all all-local install install-local clean clean-local \ 111distclean distclean-local install-library install-headers dist \ 112dist-local check check-local check-exhaustive 113 114## Clear suffix list 115.SUFFIXES : 116 117## List of standard targets 118all: all-local 119install: install-local 120clean: clean-local 121distclean : distclean-local 122dist: dist-local 123check: all check-local 124 125check-exhaustive: check 126 127all-local: $(ALL_TARGETS) 128 129install-local: install-headers install-library 130 131install-library: all-local 132 $(MKINSTALLDIRS) $(DESTDIR)$(libdir) 133ifneq ($(ENABLE_STATIC),) 134 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) 135endif 136ifneq ($(ENABLE_SHARED),) 137 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) 138ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) 139 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) 140ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) 141 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) 142endif 143endif 144ifneq ($(IMPORT_LIB_EXT),) 145 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) 146ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) 147 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) 148endif 149ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) 150 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) 151endif 152endif 153endif 154 155install-headers: 156 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode 157 @for file in $(HEADERS); do \ 158 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \ 159 $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \ 160 done 161 162dist-local: 163 164clean-local: 165 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 166 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA) 167 168distclean-local: clean-local 169 $(RMV) Makefile 170 171check-local: 172 173Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 174 cd $(top_builddir) \ 175 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 176 177ifneq ($(ENABLE_STATIC),) 178$(TARGET): $(STATIC_OBJECTS) 179 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ 180 $(RANLIB) $@ 181endif 182 183ifneq ($(ENABLE_SHARED),) 184$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA) 185 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) 186ifeq ($(ENABLE_RPATH),YES) 187ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) 188 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) 189endif 190endif 191 192ifeq ($(OS390BATCH),1) 193$(BATCH_TARGET):$(OBJECTS) 194 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS) 195endif # OS390BATCH 196endif # ENABLE_SHARED 197 198ifeq (,$(MAKECMDGOALS)) 199-include $(DEPS) 200else 201ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 202-include $(DEPS) 203endif 204endif 205