1 # Copyright (C) 2016 and later: Unicode, Inc. and others.
2 # License & terms of use: http://www.unicode.org/copyright.html
3 #******************************************************************************
5 # Copyright (C) 1999-2016, International Business Machines
6 # Corporation and others. All Rights Reserved.
8 #******************************************************************************
9 ## Makefile.in for ICU - test/cintltst
11 ## Source directory information
13 top_srcdir = @top_srcdir@
17 ## All the flags and other definitions are included here.
18 include $(top_builddir)/icudefs.mk
20 ## Build directory information
21 subdir = test/cintltst
23 ## Extra files to remove for 'make clean'
24 CLEANFILES = *~ $(DEPS) $(TESTXML)
27 TARGET = cintltst$(EXEEXT)
29 BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
30 # Simplify the path for Unix
31 BUILDDIR := $(BUILDDIR:test/cintltst/../../=)
32 # Simplify the path for Windows
33 BUILDDIR := $(BUILDDIR:test\\cintltst/../../=)
34 # Simplify the path for Windows 98
35 BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=)
37 # we define ICU_UNICODE_VERSION so we can test it
38 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/tools/toolutil
39 DEFS += -D'ICU_UNICODE_VERSION="$(UNICODE_VERSION)"' -D'ICU_VERSION="@VERSION@"' -D'ICUDATA_NAME="$(ICUDATA_PLATFORM_NAME)"' -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
40 LIBS = $(LIBCTESTFW) $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
42 OBJECTS = callcoll.o calltest.o capitst.o cbiapts.o cbkittst.o \
43 ccaltst.o ucnvseltst.o cctest.o ccapitst.o ccolltst.o encoll.o cconvtst.o ccurrtst.o \
44 cdateintervalformattest.o cdattst.o cdetst.o cdtdptst.o cdtrgtst.o cestst.o cfintst.o \
45 cformtst.o cfrtst.o cg7coll.o chashtst.o cintltst.o citertst.o cjaptst.o cloctst.o \
46 cmeasureformattest.o \
47 cmsccoll.o cmsgtst.o cpluralrulestest.o cposxtst.o cldrtest.o \
48 cnmdptst.o cnormtst.o cnumtst.o crelativedateformattest.o crestst.o creststn.o cturtst.o \
49 cucdapi.o cucdtst.o custrtst.o cstrcase.o cutiltst.o nucnvtst.o nccbtst.o bocu1tst.o \
50 cbiditst.o cbididat.o eurocreg.o udatatst.o utf16tst.o utransts.o \
51 ncnvfbts.o ncnvtst.o putiltst.o cstrtest.o udatpg_test.o utf8tst.o \
52 stdnmtst.o usrchtst.o custrtrn.o sorttest.o trietest.o trie2test.o ucptrietest.o usettest.o \
53 uenumtst.o utmstest.o currtest.o \
54 idnatest.o nfsprep.o spreptst.o sprpdata.o \
55 hpmufn.o tracetst.o reapits.o uregiontest.o ulistfmttest.o\
56 utexttst.o ucsdetst.o spooftest.o \
59 unumberformattertst.o uformattedvaluetst.o
61 DEPS = $(OBJECTS:.o=.d)
63 -include Makefile.local
65 ## List of phony targets
66 .PHONY : all all-local install install-local clean clean-local \
67 distclean distclean-local dist dist-local check check-local xcheck \
68 check-exhaustive check-exhaustive-local
73 ## List of standard targets
75 install: install-local
77 distclean : distclean-local
79 check: all check-local
80 xcheck: all xcheck-local
81 check-exhaustive: all check-exhaustive-local
90 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
91 $(RMV) $(OBJECTS) $(TARGET)
93 distclean-local: clean-local
96 # cintltest gets $(THREADSENVFLAGS) - just in case we get a threaded cintltst.
98 check-local: all-local
99 $(THREADSENVFLAGS) $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(CINTLTST_OPTS)
101 check-exhaustive-local: all-local
102 $(THREADSENVFLAGS) $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) -e
104 TESTXML=$(top_builddir)/test-$(TARGET).xml
105 xcheck-local: all-local
106 $(THREADSENVFLAGS) $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(CINTLTST_OPTS) -x $(TESTXML)
108 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
110 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
112 $(TARGET) : $(OBJECTS)
113 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
116 ifeq (,$(MAKECMDGOALS))
119 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
120 ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)