1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/tools/toolutil/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,151 @@ 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 - tools/toolutil 1.11 +## Steven R. Loomis 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 = tools/toolutil 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=$(TOOLUTIL_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 +endif 1.40 + 1.41 +ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) 1.42 + 1.43 +DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) 1.44 +DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) 1.45 +DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) 1.46 +CFLAGS += $(LIBCFLAGS) 1.47 +CXXFLAGS += $(LIBCXXFLAGS) 1.48 + 1.49 +CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n $(LIBCPPFLAGS) 1.50 + 1.51 +# from icuinfo 1.52 +CPPFLAGS+= "-DU_BUILD=\"@build@\"" "-DU_HOST=\"@host@\"" "-DU_CC=\"@CC@\"" "-DU_CXX=\"@CXX@\"" 1.53 + 1.54 + 1.55 +DEFS += -DU_TOOLUTIL_IMPLEMENTATION 1.56 +LDFLAGS += $(LDFLAGSICUTOOLUTIL) 1.57 +LIBS = $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) 1.58 + 1.59 +OBJECTS = filestrm.o package.o pkgitems.o swapimpl.o toolutil.o unewdata.o \ 1.60 +denseranges.o \ 1.61 +ucm.o ucmstate.o uoptions.o uparse.o \ 1.62 +ucbuf.o xmlparser.o writesrc.o \ 1.63 +pkg_icu.o pkg_genc.o pkg_gencmn.o ppucd.o flagparser.o filetools.o \ 1.64 +udbgutil.o dbgutil.o ucln_tu.o 1.65 + 1.66 +STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) 1.67 + 1.68 +DEPS = $(OBJECTS:.o=.d) 1.69 + 1.70 +-include Makefile.local 1.71 + 1.72 +## List of phony targets 1.73 +.PHONY : all all-local install install-local clean clean-local \ 1.74 +distclean distclean-local install-library dist \ 1.75 +dist-local check check-local 1.76 + 1.77 +## Clear suffix list 1.78 +.SUFFIXES : 1.79 + 1.80 +## List of standard targets 1.81 +all: all-local 1.82 +install: install-local 1.83 +clean: clean-local 1.84 +distclean : distclean-local 1.85 +dist: dist-local 1.86 +check: all check-local 1.87 + 1.88 +all-local: $(ALL_TARGETS) 1.89 + 1.90 +install-local: install-library 1.91 + 1.92 +install-library: all-local 1.93 + $(MKINSTALLDIRS) $(DESTDIR)$(libdir) 1.94 +ifneq ($(ENABLE_STATIC),) 1.95 + $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) 1.96 +endif 1.97 +ifneq ($(ENABLE_SHARED),) 1.98 + $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) 1.99 +ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) 1.100 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) 1.101 +ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) 1.102 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) 1.103 +endif 1.104 +endif 1.105 +ifneq ($(IMPORT_LIB_EXT),) 1.106 + $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) 1.107 +ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) 1.108 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) 1.109 +endif 1.110 +ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) 1.111 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) 1.112 +endif 1.113 +endif 1.114 +endif 1.115 + 1.116 +dist-local: 1.117 + 1.118 +clean-local: 1.119 + test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 1.120 + $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) 1.121 + 1.122 +distclean-local: clean-local 1.123 + $(RMV) Makefile 1.124 + 1.125 +check-local: all-local 1.126 + 1.127 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 1.128 + cd $(top_builddir) \ 1.129 + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 1.130 + 1.131 +ifneq ($(ENABLE_STATIC),) 1.132 +$(TARGET): $(STATIC_OBJECTS) 1.133 + $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ 1.134 + $(RANLIB) $@ 1.135 +endif 1.136 + 1.137 +ifneq ($(ENABLE_SHARED),) 1.138 +$(SHARED_OBJECT): $(OBJECTS) 1.139 + $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) 1.140 +ifeq ($(ENABLE_RPATH),YES) 1.141 +ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) 1.142 + $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) 1.143 +endif 1.144 +endif 1.145 +endif 1.146 + 1.147 +ifeq (,$(MAKECMDGOALS)) 1.148 +-include $(DEPS) 1.149 +else 1.150 +ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 1.151 +-include $(DEPS) 1.152 +endif 1.153 +endif 1.154 +