1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/io/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,170 @@ 1.4 +#****************************************************************************** 1.5 +# 1.6 +# Copyright (C) 1999-2011, International Business Machines 1.7 +# Corporation and others. All Rights Reserved. 1.8 +# 1.9 +#****************************************************************************** 1.10 +## Makefile.in for ICU - icuio.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 = io 1.24 + 1.25 +## Extra files to remove for 'make clean' 1.26 +CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) 1.27 + 1.28 +## Target information 1.29 + 1.30 +TARGET_STUBNAME=$(IO_STUBNAME) 1.31 + 1.32 +ifneq ($(ENABLE_STATIC),) 1.33 +TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) 1.34 +endif 1.35 + 1.36 +ifneq ($(ENABLE_SHARED),) 1.37 +SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO) 1.38 +ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT) 1.39 + 1.40 +ifeq ($(ENABLE_SO_VERSION_DATA),1) 1.41 +SO_VERSION_DATA = io.res 1.42 +endif 1.43 + 1.44 +ifeq ($(OS390BATCH),1) 1.45 +BATCH_TARGET = $(BATCH_IO_TARGET) 1.46 +BATCH_LIBS = $(BATCH_LIBICUUC) $(BATCH_LIBICUI18N) -lm 1.47 +endif # OS390BATCH 1.48 + 1.49 +endif # ENABLE_SHARED 1.50 + 1.51 +ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET) 1.52 + 1.53 +DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) 1.54 +DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) 1.55 +DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) 1.56 +CFLAGS += $(LIBCFLAGS) 1.57 +CXXFLAGS += $(LIBCXXFLAGS) 1.58 + 1.59 +CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n $(LIBCPPFLAGS) $(CPPFLAGSICUIO) 1.60 +DEFS += -DU_IO_IMPLEMENTATION 1.61 +LDFLAGS += $(LDFLAGSICUIO) 1.62 +LIBS = $(LIBICUUC) $(LIBICUI18N) $(DEFAULT_LIBS) 1.63 + 1.64 +OBJECTS = locbund.o ufile.o ufmt_cmn.o uprintf.o uprntf_p.o \ 1.65 +uscanf.o uscanf_p.o ustdio.o sprintf.o sscanf.o \ 1.66 +ustream.o ucln_io.o 1.67 + 1.68 +## Header files to install 1.69 +HEADERS = $(srcdir)/unicode/*.h 1.70 + 1.71 +STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) 1.72 + 1.73 +DEPS = $(OBJECTS:.o=.d) 1.74 + 1.75 +-include Makefile.local 1.76 + 1.77 +## List of phony targets 1.78 +.PHONY : all all-local install install-local clean clean-local \ 1.79 +distclean distclean-local install-library install-headers dist \ 1.80 +dist-local check check-local check-exhaustive 1.81 + 1.82 +## Clear suffix list 1.83 +.SUFFIXES : 1.84 + 1.85 +## List of standard targets 1.86 +all: all-local 1.87 +install: install-local 1.88 +clean: clean-local 1.89 +distclean : distclean-local 1.90 +dist: dist-local 1.91 +check: all check-local 1.92 + 1.93 +check-exhaustive: check 1.94 + 1.95 +all-local: $(ALL_TARGETS) 1.96 + 1.97 +install-local: install-headers install-library 1.98 + 1.99 +install-library: all-local 1.100 + $(MKINSTALLDIRS) $(DESTDIR)$(libdir) 1.101 +ifneq ($(ENABLE_STATIC),) 1.102 + $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) 1.103 +endif 1.104 +ifneq ($(ENABLE_SHARED),) 1.105 + $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) 1.106 +ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) 1.107 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) 1.108 +ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) 1.109 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) 1.110 +endif 1.111 +endif 1.112 +ifneq ($(IMPORT_LIB_EXT),) 1.113 + $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) 1.114 +ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) 1.115 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) 1.116 +endif 1.117 +ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) 1.118 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) 1.119 +endif 1.120 +endif 1.121 +endif 1.122 + 1.123 +install-headers: 1.124 + $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/unicode 1.125 + @for file in $(HEADERS); do \ 1.126 + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode"; \ 1.127 + $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/unicode || exit; \ 1.128 + done 1.129 + 1.130 +dist-local: 1.131 + 1.132 +clean-local: 1.133 + test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 1.134 + $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA) 1.135 + 1.136 +distclean-local: clean-local 1.137 + $(RMV) Makefile 1.138 + 1.139 +check-local: 1.140 + 1.141 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 1.142 + cd $(top_builddir) \ 1.143 + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 1.144 + 1.145 +ifneq ($(ENABLE_STATIC),) 1.146 +$(TARGET): $(STATIC_OBJECTS) 1.147 + $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ 1.148 + $(RANLIB) $@ 1.149 +endif 1.150 + 1.151 +ifneq ($(ENABLE_SHARED),) 1.152 +$(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA) 1.153 + $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) 1.154 +ifeq ($(ENABLE_RPATH),YES) 1.155 +ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) 1.156 + $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) 1.157 +endif 1.158 +endif 1.159 + 1.160 +ifeq ($(OS390BATCH),1) 1.161 +$(BATCH_TARGET):$(OBJECTS) 1.162 + $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(BATCH_LIBS) 1.163 +endif # OS390BATCH 1.164 +endif # ENABLE_SHARED 1.165 + 1.166 +ifeq (,$(MAKECMDGOALS)) 1.167 +-include $(DEPS) 1.168 +else 1.169 +ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 1.170 +-include $(DEPS) 1.171 +endif 1.172 +endif 1.173 +