1#****************************************************************************** 2# 3# Copyright (C) 1999-2011, International Business Machines 4# Corporation and others. All Rights Reserved. 5# 6#****************************************************************************** 7## Makefile.in for ICU - tools/ctestfw 8## Stephen F. Booth 9 10## Source directory information 11srcdir = @srcdir@ 12top_srcdir = @top_srcdir@ 13 14top_builddir = ../.. 15 16## All the flags and other definitions are included here. 17include $(top_builddir)/icudefs.mk 18 19## Build directory information 20subdir = tools/ctestfw 21 22## Extra files to remove for 'make clean' 23CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) 24 25## Target information 26 27TARGET_STUBNAME=$(CTESTFW_STUBNAME) 28 29ifneq ($(ENABLE_STATIC),) 30TARGET = $(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) 31endif 32 33ifneq ($(ENABLE_SHARED),) 34SO_TARGET = $(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO) 35ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT) 36endif 37 38ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) 39 40DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) 41DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) 42DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) 43CFLAGS += $(LIBCFLAGS) 44CXXFLAGS += $(LIBCXXFLAGS) 45 46CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(srcdir) $(LIBCPPFLAGS) $(CPPFLAGSCTESTFW) 47DEFS += -DT_CTEST_IMPLEMENTATION 48LDFLAGS += $(LDFLAGSCTESTFW) 49LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) 50 51OBJECTS = ctest.o tstdtmod.o testdata.o datamap.o uperf.o ucln_ct.o 52 53STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) 54 55DEPS = $(OBJECTS:.o=.d) 56 57-include Makefile.local 58 59## List of phony targets 60.PHONY : all all-local install install-local clean clean-local \ 61distclean distclean-local dist dist-local check check-local 62 63## Clear suffix list 64.SUFFIXES : 65 66## List of standard targets 67all: all-local 68install: install-local 69clean: clean-local 70distclean : distclean-local 71dist: dist-local 72check: all check-local 73 74all-local: $(ALL_TARGETS) 75 76install-local: install-library 77 78install-library: all-local 79 $(MKINSTALLDIRS) $(DESTDIR)$(libdir) 80ifneq ($(ENABLE_STATIC),) 81 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) 82endif 83ifneq ($(ENABLE_SHARED),) 84 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) 85ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) 86 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) 87ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) 88 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) 89endif 90endif 91ifneq ($(IMPORT_LIB_EXT),) 92 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) 93ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) 94 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) 95endif 96ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) 97 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) 98endif 99endif 100endif 101 102dist-local: 103 104clean-local: 105 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 106 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) 107 108distclean-local: clean-local 109 $(RMV) Makefile 110 111check-local: all-local 112 113Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 114 cd $(top_builddir) \ 115 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 116 117ifneq ($(ENABLE_STATIC),) 118$(TARGET): $(STATIC_OBJECTS) 119 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ 120 $(RANLIB) $@ 121endif 122 123ifneq ($(ENABLE_SHARED),) 124$(SHARED_OBJECT): $(OBJECTS) 125 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) 126ifeq ($(ENABLE_RPATH),YES) 127ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) 128 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) 129endif 130endif 131endif 132 133ifeq (,$(MAKECMDGOALS)) 134-include $(DEPS) 135else 136ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 137-include $(DEPS) 138endif 139endif 140 141