1 # Copyright (C) 2016 and later: Unicode, Inc. and others.
2 # License & terms of use: http://www.unicode.org/copyright.html
3 #******************************************************************************
5 # Copyright (C) 1999-2014, International Business Machines
6 # Corporation and others. All Rights Reserved.
8 #******************************************************************************
9 ## Makefile.in for ICU - test/iotest
11 ## Source directory information
13 top_srcdir = @top_srcdir@
17 ## All the flags and other definitions are included here.
18 include $(top_builddir)/icudefs.mk
20 ## Build directory information
23 ## Extra files to remove for 'make clean'
24 CLEANFILES = *~ $(DEPS) $(TESTXML)
27 TARGET = iotest$(EXEEXT)
29 BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
30 # Simplify the path for Unix
31 BUILDDIR := $(BUILDDIR:test/iotest/../../=)
32 # Simplify the path for Windows
33 BUILDDIR := $(BUILDDIR:test\\iotest/../../=)
34 # Simplify the path for Windows 98
35 BUILDDIR := $(BUILDDIR:TEST\\IOTEST/../../=)
37 CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/io
38 CPPFLAGS += -DUNISTR_FROM_CHAR_EXPLICIT= -DUNISTR_FROM_STRING_EXPLICIT=
39 DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
40 LIBS = $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(LIBICUIO) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
42 OBJECTS = iotest.o stream.o strtst.o filetst.o trnstst.o
44 DEPS = $(OBJECTS:.o=.d)
46 -include Makefile.local
48 ## List of phony targets
49 .PHONY : all all-local install install-local clean clean-local \
50 distclean distclean-local dist dist-local check check-local xcheck \
51 check-exhaustive check-exhaustive-local
56 ## List of standard targets
58 install: install-local
60 distclean : distclean-local
62 check: all check-local
63 xcheck: all xcheck-local
64 check-exhaustive: all check-exhaustive-local
73 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
74 $(RMV) $(OBJECTS) $(TARGET)
76 distclean-local: clean-local
79 check-local: all-local
80 $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(IOTEST_OPTS)
82 check-exhaustive-local: all-local
83 $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) -e
85 TESTXML=$(top_builddir)/test-$(TARGET).xml
86 xcheck-local: all-local
87 $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(IOTEST_OPTS) -x $(TESTXML)
89 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
91 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
93 $(TARGET) : $(OBJECTS)
94 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
97 ifeq (,$(MAKECMDGOALS))
100 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
101 ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)