]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/test/iotest/Makefile.in
ICU-62141.0.1.tar.gz
[apple/icu.git] / icuSources / test / iotest / Makefile.in
... / ...
CommitLineData
1# Copyright (C) 2016 and later: Unicode, Inc. and others.
2# License & terms of use: http://www.unicode.org/copyright.html
3#******************************************************************************
4#
5# Copyright (C) 1999-2014, International Business Machines
6# Corporation and others. All Rights Reserved.
7#
8#******************************************************************************
9## Makefile.in for ICU - test/iotest
10
11## Source directory information
12srcdir = @srcdir@
13top_srcdir = @top_srcdir@
14
15top_builddir = ../..
16
17## All the flags and other definitions are included here.
18include $(top_builddir)/icudefs.mk
19
20## Build directory information
21subdir = test/iotest
22
23## Extra files to remove for 'make clean'
24CLEANFILES = *~ $(DEPS) $(TESTXML)
25
26## Target information
27TARGET = iotest$(EXEEXT)
28
29BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
30# Simplify the path for Unix
31BUILDDIR := $(BUILDDIR:test/iotest/../../=)
32# Simplify the path for Windows
33BUILDDIR := $(BUILDDIR:test\\iotest/../../=)
34# Simplify the path for Windows 98
35BUILDDIR := $(BUILDDIR:TEST\\IOTEST/../../=)
36
37CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/io
38CPPFLAGS += -DUNISTR_FROM_CHAR_EXPLICIT= -DUNISTR_FROM_STRING_EXPLICIT=
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 \
51check-exhaustive check-exhaustive-local
52
53## Clear suffix list
54.SUFFIXES :
55
56## List of standard targets
57all: all-local
58install: install-local
59clean: clean-local
60distclean : distclean-local
61dist: dist-local
62check: all check-local
63xcheck: all xcheck-local
64check-exhaustive: all check-exhaustive-local
65
66all-local: $(TARGET)
67
68install-local:
69
70dist-local:
71
72clean-local:
73 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
74 $(RMV) $(OBJECTS) $(TARGET)
75
76distclean-local: clean-local
77 $(RMV) Makefile
78
79check-local: all-local
80 $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(IOTEST_OPTS)
81
82check-exhaustive-local: all-local
83 $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) -e
84
85TESTXML=$(top_builddir)/test-$(TARGET).xml
86xcheck-local: all-local
87 $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(IOTEST_OPTS) -x $(TESTXML)
88
89Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
90 cd $(top_builddir) \
91 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
92
93$(TARGET) : $(OBJECTS)
94 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
95 $(POST_BUILD_STEP)
96
97ifeq (,$(MAKECMDGOALS))
98-include $(DEPS)
99else
100ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
101ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
102-include $(DEPS)
103endif
104endif
105endif
106