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/cintltst 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/cintltst 22 23## Extra files to remove for 'make clean' 24CLEANFILES = *~ $(DEPS) $(TESTXML) 25 26## Target information 27TARGET = cintltst$(EXEEXT) 28 29BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../ 30# Simplify the path for Unix 31BUILDDIR := $(BUILDDIR:test/cintltst/../../=) 32# Simplify the path for Windows 33BUILDDIR := $(BUILDDIR:test\\cintltst/../../=) 34# Simplify the path for Windows 98 35BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=) 36 37# we define ICU_UNICODE_VERSION so we can test it 38CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/tools/toolutil 39ifdef QNX_TARGET 40DEFS += -D'ICU_UNICODE_VERSION="$(UNICODE_VERSION)"' -D'ICU_VERSION="@VERSION@"' -D'ICUDATA_NAME="$(ICUDATA_PLATFORM_NAME)"' -D'U_TOPSRCDIR="/var/icu_tests"' -D'U_TOPBUILDDIR="/var/icu_tests/"' 41else 42DEFS += -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)"' 43endif 44LIBS = $(LIBCTESTFW) $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) 45 46OBJECTS = callcoll.o calltest.o capitst.o cbiapts.o cbkittst.o \ 47ccaltst.o ucnvseltst.o cctest.o ccapitst.o ccolltst.o encoll.o cconvtst.o ccurrtst.o \ 48cdateintervalformattest.o cdattst.o cdetst.o cdtdptst.o cdtrgtst.o cestst.o cfintst.o \ 49cformtst.o cfrtst.o cg7coll.o chashtst.o cintltst.o citertst.o cjaptst.o cloctst.o \ 50ulocaletst.o ulocbuildertst.o \ 51cmsccoll.o cmsgtst.o cpluralrulestest.o cposxtst.o cldrtest.o \ 52cnmdptst.o cnormtst.o cnumtst.o crelativedateformattest.o crestst.o creststn.o cturtst.o \ 53cucdapi.o cucdtst.o custrtst.o cstrcase.o cutiltst.o nucnvtst.o nccbtst.o bocu1tst.o \ 54cbiditst.o cbididat.o eurocreg.o udatatst.o utf16tst.o utransts.o \ 55ncnvfbts.o ncnvtst.o putiltst.o cstrtest.o udatpg_test.o utf8tst.o \ 56stdnmtst.o usrchtst.o custrtrn.o sorttest.o trietest.o trie2test.o ucptrietest.o usettest.o \ 57uenumtst.o utmstest.o currtest.o \ 58idnatest.o nfsprep.o spreptst.o sprpdata.o \ 59hpmufn.o tracetst.o reapits.o uregiontest.o ulistfmttest.o\ 60utexttst.o ucsdetst.o spooftest.o \ 61cbiditransformtst.o \ 62cgendtst.o \ 63unumberformattertst.o uformattedvaluetst.o unumberrangeformattertst.o 64 65DEPS = $(OBJECTS:.o=.d) 66 67-include Makefile.local 68 69## List of phony targets 70.PHONY : all all-local install install-local clean clean-local \ 71distclean distclean-local dist dist-local check check-local xcheck \ 72check-exhaustive check-exhaustive-local 73 74## Clear suffix list 75.SUFFIXES : 76 77## List of standard targets 78all: all-local 79install: install-local 80clean: clean-local 81distclean : distclean-local 82dist: dist-local 83check: all check-local 84xcheck: all xcheck-local 85check-exhaustive: all check-exhaustive-local 86 87all-local: $(TARGET) 88 89install-local: 90 91dist-local: 92 93clean-local: 94 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) 95 $(RMV) $(OBJECTS) $(TARGET) 96 97distclean-local: clean-local 98 $(RMV) Makefile 99 100# cintltest gets $(THREADSENVFLAGS) - just in case we get a threaded cintltst. 101 102check-local: all-local 103 $(THREADSENVFLAGS) $(INVOKE) ./$(TARGET) $(TEST_OUTPUT_OPTS) $(CINTLTST_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) $(CINTLTST_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