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