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