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