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