michael@0: #****************************************************************************** michael@0: # michael@0: # Copyright (C) 1999-2013, International Business Machines michael@0: # Corporation and others. All Rights Reserved. michael@0: # michael@0: #****************************************************************************** michael@0: ## Makefile.in for ICU - icuuc.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 = common michael@0: michael@0: # for service hook michael@0: LOCALSVC_CPP=localsvc.cpp michael@0: SVC_HOOK_INC=$(top_builddir)/common/svchook.mk michael@0: michael@0: ## Extra files to remove for 'make clean' michael@0: CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) $(SVC_HOOK_INC) michael@0: michael@0: ## Target information michael@0: michael@0: TARGET_STUBNAME=$(COMMON_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 = common.res michael@0: endif michael@0: michael@0: ifeq ($(OS390BATCH),1) michael@0: BATCH_TARGET = $(BATCH_COMMON_TARGET) michael@0: BATCH_LIBS = $(BATCH_LIBICUDT) -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) $(LIBCPPFLAGS) $(CPPFLAGSICUUC) michael@0: # we want DEFS here michael@0: DEFS += -DU_COMMON_IMPLEMENTATION michael@0: LDFLAGS += $(LDFLAGSICUUC) michael@0: michael@0: # for plugin configuration michael@0: CPPFLAGS += "-DDEFAULT_ICU_PLUGINS=\"$(libdir)/icu\" " michael@0: michael@0: # for icu data location michael@0: ifeq ($(PKGDATA_MODE),common) michael@0: CPPFLAGS += "-DU_ICU_DATA_DEFAULT_DIR=\"$(ICUDATA_DIR)\"" michael@0: endif michael@0: michael@0: # $(LIBICUDT) is either stub data or the real DLL common data. michael@0: LIBS = $(LIBICUDT) $(DEFAULT_LIBS) michael@0: michael@0: OBJECTS = errorcode.o putil.o umath.o utypes.o uinvchar.o umutex.o ucln_cmn.o \ michael@0: uinit.o uobject.o cmemory.o charstr.o \ michael@0: udata.o ucmndata.o udatamem.o umapfile.o udataswp.o ucol_swp.o utrace.o \ michael@0: uhash.o uhash_us.o uenum.o ustrenum.o uvector.o ustack.o uvectr32.o uvectr64.o \ michael@0: ucnv.o ucnv_bld.o ucnv_cnv.o ucnv_io.o ucnv_cb.o ucnv_err.o ucnvlat1.o \ michael@0: ucnv_u7.o ucnv_u8.o ucnv_u16.o ucnv_u32.o ucnvscsu.o ucnvbocu.o \ michael@0: ucnv_ext.o ucnvmbcs.o ucnv2022.o ucnvhz.o ucnv_lmb.o ucnvisci.o ucnvdisp.o ucnv_set.o ucnv_ct.o \ michael@0: uresbund.o ures_cnv.o uresdata.o resbund.o resbund_cnv.o \ michael@0: messagepattern.o ucat.o locmap.o uloc.o locid.o locutil.o locavailable.o locdispnames.o loclikely.o locresdata.o \ michael@0: bytestream.o stringpiece.o \ michael@0: stringtriebuilder.o bytestriebuilder.o \ michael@0: bytestrie.o bytestrieiterator.o \ michael@0: ucharstrie.o ucharstriebuilder.o ucharstrieiterator.o \ michael@0: dictionarydata.o \ michael@0: appendable.o ustr_cnv.o unistr_cnv.o unistr.o unistr_case.o unistr_props.o \ michael@0: utf_impl.o ustring.o ustrcase.o ucasemap.o ucasemap_titlecase_brkiter.o cstring.o ustrfmt.o ustrtrns.o ustr_wcs.o utext.o \ michael@0: unistr_case_locale.o ustrcase_locale.o unistr_titlecase_brkiter.o ustr_titlecase_brkiter.o \ michael@0: normalizer2impl.o normalizer2.o filterednormalizer2.o normlzr.o unorm.o unormcmp.o unorm_it.o \ michael@0: chariter.o schriter.o uchriter.o uiter.o \ michael@0: patternprops.o uchar.o uprops.o ucase.o propname.o ubidi_props.o ubidi.o ubidiwrt.o ubidiln.o ushape.o \ michael@0: uscript.o uscript_props.o usc_impl.o unames.o \ michael@0: 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 \ michael@0: uarrsort.o brkiter.o ubrk.o brkeng.o dictbe.o \ michael@0: rbbi.o rbbidata.o rbbinode.o rbbirb.o rbbiscan.o rbbisetb.o rbbistbl.o rbbitblb.o \ michael@0: serv.o servnotf.o servls.o servlk.o servlkf.o servrbf.o servslkf.o \ michael@0: uidna.o usprep.o uts46.o punycode.o \ michael@0: util.o util_props.o parsepos.o locbased.o cwchar.o wintz.o dtintrv.o ucnvsel.o propsvec.o \ michael@0: ulist.o uloc_tag.o icudataver.o icuplug.o listformatter.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: -include $(SVC_HOOK_INC) michael@0: 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: $(SVC_HOOK_INC): michael@0: @echo generating $@ michael@0: @-test -f $(top_srcdir)/common/$(LOCALSVC_CPP) && ( echo "have $(LOCALSVC_CPP) - U_LOCAL_SERVICE_HOOK=1" ; \ michael@0: echo 'CPPFLAGS +=-DU_LOCAL_SERVICE_HOOK=1' > $@ ; \ michael@0: echo 'OBJECTS += $(LOCALSVC_CPP:%.cpp=%.o)' >> $@ \ michael@0: ) ; true michael@0: @echo "# Autogenerated by Makefile" >> $@ 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 icucfg.h $(SVC_HOOK_INC) michael@0: michael@0: check-local: michael@0: michael@0: Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(SVC_HOOK_INC) 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 michael@0: