• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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=
39ifdef QNX_TARGET
40DEFS += -D'U_TOPSRCDIR="/var/icu_tests"' -D'U_TOPBUILDDIR="/var/icu_tests/"'
41else
42DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
43endif
44LIBS = $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(LIBICUIO) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
45
46OBJECTS = iotest.o stream.o strtst.o filetst.o trnstst.o
47
48DEPS = $(OBJECTS:.o=.d)
49
50-include Makefile.local
51
52## List of phony targets
53.PHONY : all all-local install install-local clean clean-local	\
54distclean distclean-local dist dist-local check check-local xcheck	\
55check-exhaustive check-exhaustive-local
56
57## Clear suffix list
58.SUFFIXES :
59
60## List of standard targets
61all: all-local
62install: install-local
63clean: clean-local
64distclean : distclean-local
65dist: dist-local
66check: all check-local
67xcheck: all xcheck-local
68check-exhaustive: all check-exhaustive-local
69
70all-local: $(TARGET)
71
72install-local:
73
74dist-local:
75
76clean-local:
77	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
78	$(RMV) $(OBJECTS) $(TARGET)
79
80distclean-local: clean-local
81	$(RMV) Makefile
82
83check-local: all-local
84	$(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(IOTEST_OPTS)
85
86check-exhaustive-local: all-local
87	$(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) -e
88
89TESTXML=$(top_builddir)/test-$(TARGET).xml
90xcheck-local: all-local
91	$(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(IOTEST_OPTS) -x $(TESTXML)
92
93Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
94	cd $(top_builddir) \
95	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
96
97$(TARGET) : $(OBJECTS)
98	$(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
99	$(POST_BUILD_STEP)
100
101ifeq (,$(MAKECMDGOALS))
102-include $(DEPS)
103else
104ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
105ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
106-include $(DEPS)
107endif
108endif
109endif
110
111