intl/icu/source/common/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/common/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,225 @@
     1.4 +#******************************************************************************
     1.5 +#
     1.6 +#   Copyright (C) 1999-2013, International Business Machines
     1.7 +#   Corporation and others.  All Rights Reserved.
     1.8 +#
     1.9 +#******************************************************************************
    1.10 +## Makefile.in for ICU - icuuc.so
    1.11 +## Stephen F. Booth
    1.12 +
    1.13 +## Source directory information
    1.14 +srcdir = @srcdir@
    1.15 +top_srcdir = @top_srcdir@
    1.16 +
    1.17 +top_builddir = ..
    1.18 +
    1.19 +## All the flags and other definitions are included here.
    1.20 +include $(top_builddir)/icudefs.mk
    1.21 +
    1.22 +## Build directory information
    1.23 +subdir = common
    1.24 +
    1.25 +# for service hook
    1.26 +LOCALSVC_CPP=localsvc.cpp
    1.27 +SVC_HOOK_INC=$(top_builddir)/common/svchook.mk
    1.28 +
    1.29 +## Extra files to remove for 'make clean'
    1.30 +CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) $(SVC_HOOK_INC)
    1.31 +
    1.32 +## Target information
    1.33 +
    1.34 +TARGET_STUBNAME=$(COMMON_STUBNAME)
    1.35 +
    1.36 +ifneq ($(ENABLE_STATIC),)
    1.37 +TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
    1.38 +endif
    1.39 +
    1.40 +ifneq ($(ENABLE_SHARED),)
    1.41 +SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
    1.42 +ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
    1.43 +
    1.44 +ifeq ($(ENABLE_SO_VERSION_DATA),1)
    1.45 +SO_VERSION_DATA = common.res
    1.46 +endif
    1.47 +
    1.48 +ifeq ($(OS390BATCH),1)
    1.49 +BATCH_TARGET = $(BATCH_COMMON_TARGET)
    1.50 +BATCH_LIBS = $(BATCH_LIBICUDT) -lm
    1.51 +endif   # OS390BATCH
    1.52 +
    1.53 +endif   # ENABLE_SHARED
    1.54 +
    1.55 +ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
    1.56 +
    1.57 +DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
    1.58 +DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
    1.59 +DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
    1.60 +CFLAGS += $(LIBCFLAGS)
    1.61 +CXXFLAGS += $(LIBCXXFLAGS)
    1.62 +ifeq ($(OS390BATCH),1)
    1.63 +CFLAGS += -WI
    1.64 +CXXFLAGS += -WI
    1.65 +endif
    1.66 +
    1.67 +CPPFLAGS += -I$(srcdir) $(LIBCPPFLAGS) $(CPPFLAGSICUUC)
    1.68 +# we want DEFS here
    1.69 +DEFS += -DU_COMMON_IMPLEMENTATION 
    1.70 +LDFLAGS += $(LDFLAGSICUUC)
    1.71 +
    1.72 +# for plugin configuration
    1.73 +CPPFLAGS += "-DDEFAULT_ICU_PLUGINS=\"$(libdir)/icu\" "
    1.74 +
    1.75 +# for icu data location
    1.76 +ifeq ($(PKGDATA_MODE),common)
    1.77 +CPPFLAGS += "-DU_ICU_DATA_DEFAULT_DIR=\"$(ICUDATA_DIR)\""
    1.78 +endif
    1.79 +
    1.80 +# $(LIBICUDT) is either stub data or the real DLL common data.
    1.81 +LIBS = $(LIBICUDT) $(DEFAULT_LIBS)
    1.82 +
    1.83 +OBJECTS = errorcode.o putil.o umath.o utypes.o uinvchar.o umutex.o ucln_cmn.o \
    1.84 +uinit.o uobject.o cmemory.o charstr.o \
    1.85 +udata.o ucmndata.o udatamem.o umapfile.o udataswp.o ucol_swp.o utrace.o \
    1.86 +uhash.o uhash_us.o uenum.o ustrenum.o uvector.o ustack.o uvectr32.o uvectr64.o \
    1.87 +ucnv.o ucnv_bld.o ucnv_cnv.o ucnv_io.o ucnv_cb.o ucnv_err.o ucnvlat1.o \
    1.88 +ucnv_u7.o ucnv_u8.o ucnv_u16.o ucnv_u32.o ucnvscsu.o ucnvbocu.o \
    1.89 +ucnv_ext.o ucnvmbcs.o ucnv2022.o ucnvhz.o ucnv_lmb.o ucnvisci.o ucnvdisp.o ucnv_set.o ucnv_ct.o \
    1.90 +uresbund.o ures_cnv.o uresdata.o resbund.o resbund_cnv.o \
    1.91 +messagepattern.o ucat.o locmap.o uloc.o locid.o locutil.o locavailable.o locdispnames.o loclikely.o locresdata.o \
    1.92 +bytestream.o stringpiece.o \
    1.93 +stringtriebuilder.o bytestriebuilder.o \
    1.94 +bytestrie.o bytestrieiterator.o \
    1.95 +ucharstrie.o ucharstriebuilder.o ucharstrieiterator.o \
    1.96 +dictionarydata.o \
    1.97 +appendable.o ustr_cnv.o unistr_cnv.o unistr.o unistr_case.o unistr_props.o \
    1.98 +utf_impl.o ustring.o ustrcase.o ucasemap.o ucasemap_titlecase_brkiter.o cstring.o ustrfmt.o ustrtrns.o ustr_wcs.o utext.o \
    1.99 +unistr_case_locale.o ustrcase_locale.o unistr_titlecase_brkiter.o ustr_titlecase_brkiter.o \
   1.100 +normalizer2impl.o normalizer2.o filterednormalizer2.o normlzr.o unorm.o unormcmp.o unorm_it.o \
   1.101 +chariter.o schriter.o uchriter.o uiter.o \
   1.102 +patternprops.o uchar.o uprops.o ucase.o propname.o ubidi_props.o ubidi.o ubidiwrt.o ubidiln.o ushape.o \
   1.103 +uscript.o uscript_props.o usc_impl.o unames.o \
   1.104 +utrie.o utrie2.o utrie2_builder.o bmpset.o unisetspan.o uset_props.o uniset_props.o uniset_closure.o uset.o uniset.o usetiter.o ruleiter.o caniter.o unifilt.o unifunct.o \
   1.105 +uarrsort.o brkiter.o ubrk.o brkeng.o dictbe.o \
   1.106 +rbbi.o rbbidata.o rbbinode.o rbbirb.o rbbiscan.o rbbisetb.o rbbistbl.o rbbitblb.o \
   1.107 +serv.o servnotf.o servls.o servlk.o servlkf.o servrbf.o servslkf.o \
   1.108 +uidna.o usprep.o uts46.o punycode.o \
   1.109 +util.o util_props.o parsepos.o locbased.o cwchar.o wintz.o dtintrv.o ucnvsel.o propsvec.o \
   1.110 +ulist.o uloc_tag.o icudataver.o icuplug.o listformatter.o
   1.111 +
   1.112 +## Header files to install
   1.113 +HEADERS = $(srcdir)/unicode/*.h
   1.114 +
   1.115 +STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
   1.116 +
   1.117 +DEPS = $(OBJECTS:.o=.d)
   1.118 +
   1.119 +-include Makefile.local
   1.120 +
   1.121 +-include $(SVC_HOOK_INC)
   1.122 +
   1.123 +
   1.124 +## List of phony targets
   1.125 +.PHONY : all all-local install install-local clean clean-local	\
   1.126 +distclean distclean-local install-library install-headers dist	\
   1.127 +dist-local check check-local check-exhaustive
   1.128 +
   1.129 +## Clear suffix list
   1.130 +.SUFFIXES :
   1.131 +
   1.132 +## List of standard targets
   1.133 +all: all-local
   1.134 +install: install-local
   1.135 +clean: clean-local
   1.136 +distclean : distclean-local
   1.137 +dist: dist-local
   1.138 +check: all check-local
   1.139 +
   1.140 +check-exhaustive: check
   1.141 +
   1.142 +all-local: $(ALL_TARGETS)
   1.143 +
   1.144 +install-local: install-headers install-library
   1.145 +
   1.146 +install-library: all-local
   1.147 +	$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
   1.148 +ifneq ($(ENABLE_STATIC),)
   1.149 +	$(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
   1.150 +endif
   1.151 +ifneq ($(ENABLE_SHARED),)
   1.152 +	$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
   1.153 +ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
   1.154 +	cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
   1.155 +ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
   1.156 +	cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
   1.157 +endif
   1.158 +endif
   1.159 +ifneq ($(IMPORT_LIB_EXT),)
   1.160 +	$(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
   1.161 +ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
   1.162 +	cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
   1.163 +endif
   1.164 +ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
   1.165 +	cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
   1.166 +endif
   1.167 +endif
   1.168 +endif
   1.169 +
   1.170 +$(SVC_HOOK_INC):
   1.171 +	@echo generating $@
   1.172 +	@-test -f $(top_srcdir)/common/$(LOCALSVC_CPP) && ( echo "have $(LOCALSVC_CPP) - U_LOCAL_SERVICE_HOOK=1" ; \
   1.173 +		echo 'CPPFLAGS +=-DU_LOCAL_SERVICE_HOOK=1' > $@ ; \
   1.174 +		echo 'OBJECTS += $(LOCALSVC_CPP:%.cpp=%.o)' >> $@ \
   1.175 +		 ) ; true
   1.176 +	@echo "# Autogenerated by Makefile" >> $@
   1.177 +
   1.178 +install-headers:
   1.179 +	$(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode
   1.180 +	@for file in $(HEADERS); do \
   1.181 +	 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \
   1.182 +	 $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \
   1.183 +	done
   1.184 +
   1.185 +dist-local:
   1.186 +
   1.187 +clean-local:
   1.188 +	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
   1.189 +	$(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
   1.190 +
   1.191 +distclean-local: clean-local
   1.192 +	$(RMV) Makefile icucfg.h $(SVC_HOOK_INC)
   1.193 +
   1.194 +check-local:
   1.195 +
   1.196 +Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(SVC_HOOK_INC)
   1.197 +	cd $(top_builddir) \
   1.198 +	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
   1.199 +
   1.200 +ifneq ($(ENABLE_STATIC),)
   1.201 +$(TARGET): $(STATIC_OBJECTS)
   1.202 +	$(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
   1.203 +	$(RANLIB) $@
   1.204 +endif
   1.205 +
   1.206 +ifneq ($(ENABLE_SHARED),)
   1.207 +$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
   1.208 +	$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
   1.209 +ifeq ($(ENABLE_RPATH),YES)
   1.210 +ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
   1.211 +	$(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
   1.212 +endif
   1.213 +endif
   1.214 +
   1.215 +ifeq ($(OS390BATCH),1)
   1.216 +$(BATCH_TARGET):$(OBJECTS)
   1.217 +	$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS)
   1.218 +endif   # OS390BATCH
   1.219 +endif   # ENABLE_SHARED
   1.220 +
   1.221 +ifeq (,$(MAKECMDGOALS))
   1.222 +-include $(DEPS)
   1.223 +else
   1.224 +ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
   1.225 +-include $(DEPS)
   1.226 +endif
   1.227 +endif
   1.228 +

mercurial