1 #******************************************************************************
3 # Copyright (C) 1999-2011, International Business Machines
4 # Corporation and others. All Rights Reserved.
6 #******************************************************************************
7 ## Makefile.in for ICU - test/iotest
9 ## Source directory information
11 top_srcdir = @top_srcdir@
15 ## All the flags and other definitions are included here.
16 include $(top_builddir)/icudefs.mk
18 ## Build directory information
21 ## Extra files to remove for 'make clean'
22 CLEANFILES = *~ $(DEPS) $(TESTXML)
25 TARGET = iotest$(EXEEXT)
27 BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
28 # Simplify the path for Unix
29 BUILDDIR := $(BUILDDIR:test/iotest/../../=)
30 # Simplify the path for Windows
31 BUILDDIR := $(BUILDDIR:test\\iotest/../../=)
32 # Simplify the path for Windows 98
33 BUILDDIR := $(BUILDDIR:TEST\\IOTEST/../../=)
35 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/io
36 DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
37 LIBS = $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(LIBICUIO) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
39 OBJECTS = iotest.o stream.o strtst.o filetst.o trnstst.o
41 DEPS = $(OBJECTS:.o=.d)
43 -include Makefile.local
45 ## List of phony targets
46 .PHONY : all all-local install install-local clean clean-local \
47 distclean distclean-local dist dist-local check check-local xcheck \
48 check-exhaustive check-exhaustive-local
53 ## List of standard targets
55 install: install-local
57 distclean : distclean-local
59 check: all check-local
60 xcheck: all xcheck-local
61 check-exhaustive: all check-exhaustive-local
70 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
71 $(RMV) $(OBJECTS) $(TARGET)
73 distclean-local: clean-local
76 check-local: all-local
77 $(INVOKE) ./$(TARGET) $(IOTEST_OPTS)
79 check-exhaustive-local: all-local
80 $(INVOKE) ./$(TARGET) -e
82 TESTXML=$(top_builddir)/test-$(TARGET).xml
83 xcheck-local: all-local
84 $(INVOKE) ./$(TARGET) $(IOTEST_OPTS) -x $(TESTXML)
86 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
88 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
90 $(TARGET) : $(OBJECTS)
91 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
94 ifeq (,$(MAKECMDGOALS))
97 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
98 ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)