1#****************************************************************************** 2# 3# Copyright (C) 1999-2010, International Business Machines 4# Corporation and others. All Rights Reserved. 5# 6#****************************************************************************** 7## Makefile.in for ICU - test/iotest 8 9## Source directory information 10srcdir = @srcdir@ 11top_srcdir = @top_srcdir@ 12 13top_builddir = ../.. 14 15## All the flags and other definitions are included here. 16include $(top_builddir)/icudefs.mk 17 18## Build directory information 19subdir = test/iotest 20 21## Extra files to remove for 'make clean' 22CLEANFILES = *~ $(DEPS) $(TESTXML) 23 24## Target information 25TARGET = iotest$(EXEEXT) 26 27BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../ 28# Simplify the path for Unix 29BUILDDIR := $(BUILDDIR:test/iotest/../../=) 30# Simplify the path for Windows 31BUILDDIR := $(BUILDDIR:test\\iotest/../../=) 32# Simplify the path for Windows 98 33BUILDDIR := $(BUILDDIR:TEST\\IOTEST/../../=) 34 35ifneq ($(top_builddir),$(top_srcdir)) 36CPPFLAGS += -I$(top_builddir)/common 37endif 38CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/io 39DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"' 40LIBS = $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(LIBICUIO) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) 41 42OBJECTS = iotest.o stream.o strtst.o filetst.o trnstst.o 43 44DEPS = $(OBJECTS:.o=.d) 45 46-include Makefile.local 47 48## List of phony targets 49.PHONY : all all-local install install-local clean clean-local \ 50distclean distclean-local dist dist-local check check-local xcheck 51 52## Clear suffix list 53.SUFFIXES : 54 55## List of standard targets 56all: all-local 57install: install-local 58clean: clean-local 59distclean : distclean-local 60dist: dist-local 61check: all check-local 62xcheck: all xcheck-local 63 64all-local: $(TARGET) 65 66install-local: 67 68dist-local: 69 70clean-local: 71 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 72 $(RMV) $(OBJECTS) $(TARGET) 73 74distclean-local: clean-local 75 $(RMV) Makefile 76 77check-local: all-local 78 $(INVOKE) ./$(TARGET) $(IOTEST_OPTS) 79 80TESTXML=$(top_builddir)/test-$(TARGET).xml 81xcheck-local: all-local 82 $(INVOKE) ./$(TARGET) $(IOTEST_OPTS) -x $(TESTXML) 83 84Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 85 cd $(top_builddir) \ 86 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 87 88$(TARGET) : $(OBJECTS) 89 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) 90 $(POST_BUILD_STEP) 91 92ifeq (,$(MAKECMDGOALS)) 93-include $(DEPS) 94else 95ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) 96ifneq ($(patsubst %install,,$(MAKECMDGOALS)),) 97-include $(DEPS) 98endif 99endif 100endif 101 102