1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/tools/ctestfw/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,140 @@ 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/ctestfw 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 = tools/ctestfw 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=$(CTESTFW_STUBNAME) 1.31 + 1.32 +ifneq ($(ENABLE_STATIC),) 1.33 +TARGET = $(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) 1.34 +endif 1.35 + 1.36 +ifneq ($(ENABLE_SHARED),) 1.37 +SO_TARGET = $(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 -I$(srcdir)/../toolutil -I$(srcdir) $(LIBCPPFLAGS) $(CPPFLAGSCTESTFW) 1.50 +DEFS += -DT_CTEST_IMPLEMENTATION 1.51 +LDFLAGS += $(LDFLAGSCTESTFW) 1.52 +LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) 1.53 + 1.54 +OBJECTS = ctest.o tstdtmod.o testdata.o datamap.o uperf.o ucln_ct.o 1.55 + 1.56 +STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) 1.57 + 1.58 +DEPS = $(OBJECTS:.o=.d) 1.59 + 1.60 +-include Makefile.local 1.61 + 1.62 +## List of phony targets 1.63 +.PHONY : all all-local install install-local clean clean-local \ 1.64 +distclean distclean-local dist dist-local check check-local 1.65 + 1.66 +## Clear suffix list 1.67 +.SUFFIXES : 1.68 + 1.69 +## List of standard targets 1.70 +all: all-local 1.71 +install: install-local 1.72 +clean: clean-local 1.73 +distclean : distclean-local 1.74 +dist: dist-local 1.75 +check: all check-local 1.76 + 1.77 +all-local: $(ALL_TARGETS) 1.78 + 1.79 +install-local: install-library 1.80 + 1.81 +install-library: all-local 1.82 + $(MKINSTALLDIRS) $(DESTDIR)$(libdir) 1.83 +ifneq ($(ENABLE_STATIC),) 1.84 + $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) 1.85 +endif 1.86 +ifneq ($(ENABLE_SHARED),) 1.87 + $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) 1.88 +ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) 1.89 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) 1.90 +ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) 1.91 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) 1.92 +endif 1.93 +endif 1.94 +ifneq ($(IMPORT_LIB_EXT),) 1.95 + $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) 1.96 +ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) 1.97 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) 1.98 +endif 1.99 +ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) 1.100 + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) 1.101 +endif 1.102 +endif 1.103 +endif 1.104 + 1.105 +dist-local: 1.106 + 1.107 +clean-local: 1.108 + test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 1.109 + $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) 1.110 + 1.111 +distclean-local: clean-local 1.112 + $(RMV) Makefile 1.113 + 1.114 +check-local: all-local 1.115 + 1.116 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 1.117 + cd $(top_builddir) \ 1.118 + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 1.119 + 1.120 +ifneq ($(ENABLE_STATIC),) 1.121 +$(TARGET): $(STATIC_OBJECTS) 1.122 + $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ 1.123 + $(RANLIB) $@ 1.124 +endif 1.125 + 1.126 +ifneq ($(ENABLE_SHARED),) 1.127 +$(SHARED_OBJECT): $(OBJECTS) 1.128 + $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) 1.129 +ifeq ($(ENABLE_RPATH),YES) 1.130 +ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) 1.131 + $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) 1.132 +endif 1.133 +endif 1.134 +endif 1.135 + 1.136 +ifeq (,$(MAKECMDGOALS)) 1.137 +-include $(DEPS) 1.138 +else 1.139 +ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 1.140 +-include $(DEPS) 1.141 +endif 1.142 +endif 1.143 +