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