ICU-511.32.tar.gz
[apple/icu.git] / icuSources / test / iotest / Makefile.in
CommitLineData
73c04bcf
A
1#******************************************************************************
2#
4388f060 3# Copyright (C) 1999-2011, 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
374ca955 36DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
73c04bcf 37LIBS = $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(LIBICUIO) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
b75a7d8f 38
73c04bcf 39OBJECTS = iotest.o stream.o strtst.o filetst.o trnstst.o
b75a7d8f
A
40
41DEPS = $(OBJECTS:.o=.d)
42
73c04bcf
A
43-include Makefile.local
44
b75a7d8f
A
45## List of phony targets
46.PHONY : all all-local install install-local clean clean-local \
4388f060
A
47distclean distclean-local dist dist-local check check-local xcheck \
48check-exhaustive check-exhaustive-local
b75a7d8f
A
49
50## Clear suffix list
51.SUFFIXES :
52
53## List of standard targets
54all: all-local
55install: install-local
56clean: clean-local
57distclean : distclean-local
58dist: dist-local
59check: all check-local
729e4ab9 60xcheck: all xcheck-local
4388f060 61check-exhaustive: all check-exhaustive-local
b75a7d8f
A
62
63all-local: $(TARGET)
64
65install-local:
66
67dist-local:
68
69clean-local:
70 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
71 $(RMV) $(OBJECTS) $(TARGET)
72
73distclean-local: clean-local
74 $(RMV) Makefile
75
b75a7d8f 76check-local: all-local
46f4442e 77 $(INVOKE) ./$(TARGET) $(IOTEST_OPTS)
b75a7d8f 78
4388f060
A
79check-exhaustive-local: all-local
80 $(INVOKE) ./$(TARGET) -e
81
729e4ab9
A
82TESTXML=$(top_builddir)/test-$(TARGET).xml
83xcheck-local: all-local
84 $(INVOKE) ./$(TARGET) $(IOTEST_OPTS) -x $(TESTXML)
85
b75a7d8f
A
86Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
87 cd $(top_builddir) \
88 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
89
90$(TARGET) : $(OBJECTS)
374ca955 91 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
46f4442e 92 $(POST_BUILD_STEP)
b75a7d8f
A
93
94ifeq (,$(MAKECMDGOALS))
95-include $(DEPS)
96else
97ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
98ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
99-include $(DEPS)
100endif
101endif
102endif
73c04bcf 103