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