Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | #****************************************************************************** |
michael@0 | 2 | # |
michael@0 | 3 | # Copyright (C) 1999-2013, International Business Machines |
michael@0 | 4 | # Corporation and others. All Rights Reserved. |
michael@0 | 5 | # |
michael@0 | 6 | #****************************************************************************** |
michael@0 | 7 | ## Makefile.in for ICU - icuuc.so |
michael@0 | 8 | ## Stephen F. Booth |
michael@0 | 9 | |
michael@0 | 10 | ## Source directory information |
michael@0 | 11 | srcdir = @srcdir@ |
michael@0 | 12 | top_srcdir = @top_srcdir@ |
michael@0 | 13 | |
michael@0 | 14 | top_builddir = .. |
michael@0 | 15 | |
michael@0 | 16 | ## All the flags and other definitions are included here. |
michael@0 | 17 | include $(top_builddir)/icudefs.mk |
michael@0 | 18 | |
michael@0 | 19 | ## Build directory information |
michael@0 | 20 | subdir = common |
michael@0 | 21 | |
michael@0 | 22 | # for service hook |
michael@0 | 23 | LOCALSVC_CPP=localsvc.cpp |
michael@0 | 24 | SVC_HOOK_INC=$(top_builddir)/common/svchook.mk |
michael@0 | 25 | |
michael@0 | 26 | ## Extra files to remove for 'make clean' |
michael@0 | 27 | CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) $(SVC_HOOK_INC) |
michael@0 | 28 | |
michael@0 | 29 | ## Target information |
michael@0 | 30 | |
michael@0 | 31 | TARGET_STUBNAME=$(COMMON_STUBNAME) |
michael@0 | 32 | |
michael@0 | 33 | ifneq ($(ENABLE_STATIC),) |
michael@0 | 34 | TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) |
michael@0 | 35 | endif |
michael@0 | 36 | |
michael@0 | 37 | ifneq ($(ENABLE_SHARED),) |
michael@0 | 38 | SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO) |
michael@0 | 39 | ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT) |
michael@0 | 40 | |
michael@0 | 41 | ifeq ($(ENABLE_SO_VERSION_DATA),1) |
michael@0 | 42 | SO_VERSION_DATA = common.res |
michael@0 | 43 | endif |
michael@0 | 44 | |
michael@0 | 45 | ifeq ($(OS390BATCH),1) |
michael@0 | 46 | BATCH_TARGET = $(BATCH_COMMON_TARGET) |
michael@0 | 47 | BATCH_LIBS = $(BATCH_LIBICUDT) -lm |
michael@0 | 48 | endif # OS390BATCH |
michael@0 | 49 | |
michael@0 | 50 | endif # ENABLE_SHARED |
michael@0 | 51 | |
michael@0 | 52 | ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET) |
michael@0 | 53 | |
michael@0 | 54 | DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) |
michael@0 | 55 | DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) |
michael@0 | 56 | DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) |
michael@0 | 57 | CFLAGS += $(LIBCFLAGS) |
michael@0 | 58 | CXXFLAGS += $(LIBCXXFLAGS) |
michael@0 | 59 | ifeq ($(OS390BATCH),1) |
michael@0 | 60 | CFLAGS += -WI |
michael@0 | 61 | CXXFLAGS += -WI |
michael@0 | 62 | endif |
michael@0 | 63 | |
michael@0 | 64 | CPPFLAGS += -I$(srcdir) $(LIBCPPFLAGS) $(CPPFLAGSICUUC) |
michael@0 | 65 | # we want DEFS here |
michael@0 | 66 | DEFS += -DU_COMMON_IMPLEMENTATION |
michael@0 | 67 | LDFLAGS += $(LDFLAGSICUUC) |
michael@0 | 68 | |
michael@0 | 69 | # for plugin configuration |
michael@0 | 70 | CPPFLAGS += "-DDEFAULT_ICU_PLUGINS=\"$(libdir)/icu\" " |
michael@0 | 71 | |
michael@0 | 72 | # for icu data location |
michael@0 | 73 | ifeq ($(PKGDATA_MODE),common) |
michael@0 | 74 | CPPFLAGS += "-DU_ICU_DATA_DEFAULT_DIR=\"$(ICUDATA_DIR)\"" |
michael@0 | 75 | endif |
michael@0 | 76 | |
michael@0 | 77 | # $(LIBICUDT) is either stub data or the real DLL common data. |
michael@0 | 78 | LIBS = $(LIBICUDT) $(DEFAULT_LIBS) |
michael@0 | 79 | |
michael@0 | 80 | OBJECTS = errorcode.o putil.o umath.o utypes.o uinvchar.o umutex.o ucln_cmn.o \ |
michael@0 | 81 | uinit.o uobject.o cmemory.o charstr.o \ |
michael@0 | 82 | udata.o ucmndata.o udatamem.o umapfile.o udataswp.o ucol_swp.o utrace.o \ |
michael@0 | 83 | uhash.o uhash_us.o uenum.o ustrenum.o uvector.o ustack.o uvectr32.o uvectr64.o \ |
michael@0 | 84 | ucnv.o ucnv_bld.o ucnv_cnv.o ucnv_io.o ucnv_cb.o ucnv_err.o ucnvlat1.o \ |
michael@0 | 85 | ucnv_u7.o ucnv_u8.o ucnv_u16.o ucnv_u32.o ucnvscsu.o ucnvbocu.o \ |
michael@0 | 86 | ucnv_ext.o ucnvmbcs.o ucnv2022.o ucnvhz.o ucnv_lmb.o ucnvisci.o ucnvdisp.o ucnv_set.o ucnv_ct.o \ |
michael@0 | 87 | uresbund.o ures_cnv.o uresdata.o resbund.o resbund_cnv.o \ |
michael@0 | 88 | messagepattern.o ucat.o locmap.o uloc.o locid.o locutil.o locavailable.o locdispnames.o loclikely.o locresdata.o \ |
michael@0 | 89 | bytestream.o stringpiece.o \ |
michael@0 | 90 | stringtriebuilder.o bytestriebuilder.o \ |
michael@0 | 91 | bytestrie.o bytestrieiterator.o \ |
michael@0 | 92 | ucharstrie.o ucharstriebuilder.o ucharstrieiterator.o \ |
michael@0 | 93 | dictionarydata.o \ |
michael@0 | 94 | appendable.o ustr_cnv.o unistr_cnv.o unistr.o unistr_case.o unistr_props.o \ |
michael@0 | 95 | 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 | 96 | unistr_case_locale.o ustrcase_locale.o unistr_titlecase_brkiter.o ustr_titlecase_brkiter.o \ |
michael@0 | 97 | normalizer2impl.o normalizer2.o filterednormalizer2.o normlzr.o unorm.o unormcmp.o unorm_it.o \ |
michael@0 | 98 | chariter.o schriter.o uchriter.o uiter.o \ |
michael@0 | 99 | patternprops.o uchar.o uprops.o ucase.o propname.o ubidi_props.o ubidi.o ubidiwrt.o ubidiln.o ushape.o \ |
michael@0 | 100 | uscript.o uscript_props.o usc_impl.o unames.o \ |
michael@0 | 101 | 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 | 102 | uarrsort.o brkiter.o ubrk.o brkeng.o dictbe.o \ |
michael@0 | 103 | rbbi.o rbbidata.o rbbinode.o rbbirb.o rbbiscan.o rbbisetb.o rbbistbl.o rbbitblb.o \ |
michael@0 | 104 | serv.o servnotf.o servls.o servlk.o servlkf.o servrbf.o servslkf.o \ |
michael@0 | 105 | uidna.o usprep.o uts46.o punycode.o \ |
michael@0 | 106 | util.o util_props.o parsepos.o locbased.o cwchar.o wintz.o dtintrv.o ucnvsel.o propsvec.o \ |
michael@0 | 107 | ulist.o uloc_tag.o icudataver.o icuplug.o listformatter.o |
michael@0 | 108 | |
michael@0 | 109 | ## Header files to install |
michael@0 | 110 | HEADERS = $(srcdir)/unicode/*.h |
michael@0 | 111 | |
michael@0 | 112 | STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) |
michael@0 | 113 | |
michael@0 | 114 | DEPS = $(OBJECTS:.o=.d) |
michael@0 | 115 | |
michael@0 | 116 | -include Makefile.local |
michael@0 | 117 | |
michael@0 | 118 | -include $(SVC_HOOK_INC) |
michael@0 | 119 | |
michael@0 | 120 | |
michael@0 | 121 | ## List of phony targets |
michael@0 | 122 | .PHONY : all all-local install install-local clean clean-local \ |
michael@0 | 123 | distclean distclean-local install-library install-headers dist \ |
michael@0 | 124 | dist-local check check-local check-exhaustive |
michael@0 | 125 | |
michael@0 | 126 | ## Clear suffix list |
michael@0 | 127 | .SUFFIXES : |
michael@0 | 128 | |
michael@0 | 129 | ## List of standard targets |
michael@0 | 130 | all: all-local |
michael@0 | 131 | install: install-local |
michael@0 | 132 | clean: clean-local |
michael@0 | 133 | distclean : distclean-local |
michael@0 | 134 | dist: dist-local |
michael@0 | 135 | check: all check-local |
michael@0 | 136 | |
michael@0 | 137 | check-exhaustive: check |
michael@0 | 138 | |
michael@0 | 139 | all-local: $(ALL_TARGETS) |
michael@0 | 140 | |
michael@0 | 141 | install-local: install-headers install-library |
michael@0 | 142 | |
michael@0 | 143 | install-library: all-local |
michael@0 | 144 | $(MKINSTALLDIRS) $(DESTDIR)$(libdir) |
michael@0 | 145 | ifneq ($(ENABLE_STATIC),) |
michael@0 | 146 | $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) |
michael@0 | 147 | endif |
michael@0 | 148 | ifneq ($(ENABLE_SHARED),) |
michael@0 | 149 | $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
michael@0 | 150 | ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) |
michael@0 | 151 | cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) |
michael@0 | 152 | ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) |
michael@0 | 153 | cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) |
michael@0 | 154 | endif |
michael@0 | 155 | endif |
michael@0 | 156 | ifneq ($(IMPORT_LIB_EXT),) |
michael@0 | 157 | $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) |
michael@0 | 158 | ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) |
michael@0 | 159 | cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) |
michael@0 | 160 | endif |
michael@0 | 161 | ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) |
michael@0 | 162 | cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) |
michael@0 | 163 | endif |
michael@0 | 164 | endif |
michael@0 | 165 | endif |
michael@0 | 166 | |
michael@0 | 167 | $(SVC_HOOK_INC): |
michael@0 | 168 | @echo generating $@ |
michael@0 | 169 | @-test -f $(top_srcdir)/common/$(LOCALSVC_CPP) && ( echo "have $(LOCALSVC_CPP) - U_LOCAL_SERVICE_HOOK=1" ; \ |
michael@0 | 170 | echo 'CPPFLAGS +=-DU_LOCAL_SERVICE_HOOK=1' > $@ ; \ |
michael@0 | 171 | echo 'OBJECTS += $(LOCALSVC_CPP:%.cpp=%.o)' >> $@ \ |
michael@0 | 172 | ) ; true |
michael@0 | 173 | @echo "# Autogenerated by Makefile" >> $@ |
michael@0 | 174 | |
michael@0 | 175 | install-headers: |
michael@0 | 176 | $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode |
michael@0 | 177 | @for file in $(HEADERS); do \ |
michael@0 | 178 | echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \ |
michael@0 | 179 | $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \ |
michael@0 | 180 | done |
michael@0 | 181 | |
michael@0 | 182 | dist-local: |
michael@0 | 183 | |
michael@0 | 184 | clean-local: |
michael@0 | 185 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) |
michael@0 | 186 | $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA) |
michael@0 | 187 | |
michael@0 | 188 | distclean-local: clean-local |
michael@0 | 189 | $(RMV) Makefile icucfg.h $(SVC_HOOK_INC) |
michael@0 | 190 | |
michael@0 | 191 | check-local: |
michael@0 | 192 | |
michael@0 | 193 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(SVC_HOOK_INC) |
michael@0 | 194 | cd $(top_builddir) \ |
michael@0 | 195 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
michael@0 | 196 | |
michael@0 | 197 | ifneq ($(ENABLE_STATIC),) |
michael@0 | 198 | $(TARGET): $(STATIC_OBJECTS) |
michael@0 | 199 | $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ |
michael@0 | 200 | $(RANLIB) $@ |
michael@0 | 201 | endif |
michael@0 | 202 | |
michael@0 | 203 | ifneq ($(ENABLE_SHARED),) |
michael@0 | 204 | $(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA) |
michael@0 | 205 | $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) |
michael@0 | 206 | ifeq ($(ENABLE_RPATH),YES) |
michael@0 | 207 | ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) |
michael@0 | 208 | $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) |
michael@0 | 209 | endif |
michael@0 | 210 | endif |
michael@0 | 211 | |
michael@0 | 212 | ifeq ($(OS390BATCH),1) |
michael@0 | 213 | $(BATCH_TARGET):$(OBJECTS) |
michael@0 | 214 | $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS) |
michael@0 | 215 | endif # OS390BATCH |
michael@0 | 216 | endif # ENABLE_SHARED |
michael@0 | 217 | |
michael@0 | 218 | ifeq (,$(MAKECMDGOALS)) |
michael@0 | 219 | -include $(DEPS) |
michael@0 | 220 | else |
michael@0 | 221 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) |
michael@0 | 222 | -include $(DEPS) |
michael@0 | 223 | endif |
michael@0 | 224 | endif |
michael@0 | 225 |