xref: /aosp_15_r20/external/icu/icu4c/source/test/intltest/Makefile.in (revision 0e209d3975ff4a8c132096b14b0e9364a753506e)
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-2016, International Business Machines
6#   Corporation and others.  All Rights Reserved.
7#
8#******************************************************************************
9## Makefile.in for ICU - test/intltest
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/intltest
22
23## Extra files to remove for 'make clean'
24CLEANFILES = *~ $(DEPS) $(TESTXML)
25
26## Target information
27TARGET = intltest$(EXEEXT)
28
29BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
30# Simplify the path for Unix
31BUILDDIR := $(BUILDDIR:test/intltest/../../=)
32# Simplify the path for Windows
33BUILDDIR := $(BUILDDIR:test\\intltest/../../=)
34# Simplify the path for Windows 98
35BUILDDIR := $(BUILDDIR:TEST\\INTLTEST/../../=)
36
37CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/io -I$(top_srcdir)/tools/toolutil -I$(top_srcdir)/tools/ctestfw
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) $(LIBICUI18N) $(LIBICUUC) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M) $(LIB_THREAD)
45
46OBJECTS = aliastst.o allcoll.o apicoll.o astrotst.o callimts.o calregts.o caltest.o \
47caltztst.o canittst.o citrtest.o colldata.o convtest.o currcoll.o collationtest.o \
48fldset.o dadrfmt.o dadrcal.o dcfmapts.o decoll.o dtfmapts.o dtfmrgts.o dtfmtrtts.o dtfmttst.o	\
49dtptngts.o encoll.o escoll.o ficoll.o frcoll.o g7coll.o intltest.o	\
50itercoll.o itformat.o itmajor.o itutil.o jacoll.o lcukocol.o	\
51loctest.o localebuildertest.o localematchertest.o \
52messageformat2test.o messageformat2test_builtin.o messageformat2test_custom.o messageformat2test_features.o messageformat2test_fromjson.o messageformat2test_icu.o \
53miscdtfm.o mnkytst.o msfmrgts.o nmfmapts.o nmfmtrt.o		\
54numfmtst.o numrgts.o  plurults.o plurfmts.o pptest.o regcoll.o restest.o restsnew.o \
55sdtfmtts.o svccoll.o tchcfmt.o	selfmts.o \
56tfsmalls.o tmsgfmt.o trcoll.o tscoll.o tsdate.o tsdcfmsy.o tsdtfmsy.o	\
57tsmthred.o tsnmfmt.o tsputil.o tstnrapi.o tstnorm.o tzbdtest.o		\
58tzregts.o tztest.o ucdtest.o usettest.o ustrtest.o strcase.o transtst.o strtest.o thcoll.o \
59bytestrietest.o ucharstrietest.o \
60itrbbi.o lstmbetst.o rbbiapts.o rbbitst.o rbbimonkeytest.o ittrans.o transapi.o cpdtrtst.o \
61testutil.o transrt.o trnserr.o normconf.o sfwdchit.o \
62jamotest.o srchtest.o reptest.o regextst.o \
63itrbnf.o itrbnfrt.o itrbnfp.o ucaconf.o icusvtst.o \
64uobjtest.o idnaref.o idnaconf.o nptrans.o punyref.o testidn.o testidna.o uts46test.o \
65incaltst.o calcasts.o v32test.o uvectest.o textfile.o tokiter.o utxttest.o \
66windttst.o winnmtst.o winutil.o csdetest.o tzrulets.o tzoffloc.o tzfmttst.o ssearch.o dtifmtts.o \
67tufmtts.o itspoof.o simplethread.o bidiconf.o locnmtst.o dcfmtest.o alphaindextst.o listformattertest.o genderinfotest.o compactdecimalformattest.o regiontst.o \
68reldatefmttest.o simpleformattertest.o measfmttest.o numfmtspectest.o unifiedcachetest.o quantityformattertest.o \
69scientificnumberformattertest.o datadrivennumberformattestsuite.o \
70numberformattesttuple.o pluralmaptest.o \
71numbertest_affixutils.o numbertest_api.o numbertest_decimalquantity.o \
72numbertest_modifiers.o numbertest_patternmodifier.o numbertest_patternstring.o \
73string_segment_test.o \
74numbertest_parse.o numbertest_doubleconversion.o numbertest_skeletons.o \
75static_unisets_test.o numfmtdatadriventest.o numbertest_range.o erarulestest.o \
76formattedvaluetest.o formatted_string_builder_test.o numbertest_permutation.o \
77units_data_test.o units_router_test.o units_test.o displayoptions_test.o \
78numbertest_simple.o uchar_type_build_test.o
79
80DEPS = $(OBJECTS:.o=.d)
81
82-include Makefile.local
83
84## List of phony targets
85.PHONY : all all-local install install-local clean clean-local	\
86distclean distclean-local dist dist-local check check-local xcheck xcheck-local	\
87check-exhaustive check-exhaustive-local
88
89## Clear suffix list
90.SUFFIXES :
91
92## List of standard targets
93all: all-local
94install: install-local
95clean: clean-local
96distclean : distclean-local
97dist: dist-local
98check: all check-local
99xcheck: all xcheck-local
100check-exhaustive: all check-exhaustive-local
101
102all-local: $(TARGET)
103
104install-local:
105
106dist-local:
107
108clean-local:
109	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
110	$(RMV) $(OBJECTS) $(TARGET)
111
112distclean-local: clean-local
113	$(RMV) Makefile
114
115# note- intltest gets $(THREADSENVFLAGS) so that it runs threaded on OS400
116check-local: all-local
117	$(THREADSENVFLAGS) $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(INTLTEST_OPTS)
118
119check-exhaustive-local: all-local
120	$(THREADSENVFLAGS) $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) -e
121
122TESTXML=$(top_builddir)/test-$(TARGET).xml
123xcheck-local: all-local
124	$(THREADSENVFLAGS) $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(INTLTEST_OPTS) -x $(TESTXML)
125
126Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
127	cd $(top_builddir) \
128	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
129
130$(TARGET) : $(OBJECTS)
131	$(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
132	$(POST_BUILD_STEP)
133
134ifeq (,$(MAKECMDGOALS))
135-include $(DEPS)
136else
137ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
138ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
139-include $(DEPS)
140endif
141endif
142endif
143