]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/letest/Makefile.in
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / test / letest / Makefile.in
CommitLineData
b75a7d8f 1## Makefile.in for ICU - test/letest
f3c0d7a5
A
2## Copyright (C) 2016 and later: Unicode, Inc. and others.
3## License & terms of use: http://www.unicode.org/copyright.html
57a6839d 4## Copyright (c) 2001-2014, International Business Machines Corporation and
b75a7d8f
A
5## others. All Rights Reserved.
6
7## Source directory information
8srcdir = @srcdir@
9top_srcdir = @top_srcdir@
10
11top_builddir = ../..
12
13include $(top_builddir)/icudefs.mk
14
b75a7d8f
A
15## Build directory information
16subdir = test/letest
17
18## Extra files to remove for 'make clean'
19CLEANFILES = *~ $(DEPS)
20
21## Target information
46f4442e
A
22TESTTARGET = letest
23GENTARGET = gendata
b75a7d8f 24
73c04bcf
A
25BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
26# Simplify the path for Unix
27BUILDDIR := $(BUILDDIR:test/cintltst/../../=)
28# Simplify the path for Windows
29BUILDDIR := $(BUILDDIR:test\\cintltst/../../=)
30# Simplify the path for Windows 98
31BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=)
b75a7d8f 32
f3c0d7a5 33CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/tools/toolutil -I$(top_srcdir)/layoutex $(ICULE_CFLAGS) $(ICULEHB_CFLAGS)
73c04bcf 34DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
f3c0d7a5 35LIBS = $(LIBICULX) $(LIBICUUC) $(LIBICUI18N) $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M) $(ICULEHB_LIBS)
73c04bcf
A
36
37COMMONOBJECTS = letsutil.o cmaps.o FontTableCache.o SimpleFontInstance.o PortableFontInstance.o
38TESTOBJECTS = letest.o
46f4442e 39CTESTOBJECTS = cfonts.o xmlreader.o cletest.o
b75a7d8f
A
40GENOBJECTS = gendata.o
41
42OBJECTS = $(COMMONOBJECTS) $(TESTOBJECTS) $(GENOBJECTS)
43
44DEPS = $(OBJECTS:.o=.d)
45
46## List of phony targets
47.PHONY : all all-local install install-local clean clean-local \
57a6839d 48distclean distclean-local dist dist-local check check-local xcheck xcheck-local
b75a7d8f
A
49
50## Clear suffix list
51.SUFFIXES :
52
53## List of standard targets
54all: all-local
55install: install-local
56clean: clean-local
57distclean : distclean-local
58dist: dist-local
59check: all check-local
57a6839d 60xcheck: all xcheck-local
b75a7d8f
A
61
62all-local: $(TESTTARGET)
63
64install-local:
65
66dist-local:
67
68clean-local:
69 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
46f4442e 70 $(RMV) $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS) $(GENOBJECTS) $(TARGET)
b75a7d8f
A
71
72distclean-local: clean-local
73 $(RMV) Makefile
74
75check-local: all-local
57a6839d
A
76 $(INVOKE) ./$(TESTTARGET) $(TEST_OUTPUT_OPTS) $(LETEST_OPTS)
77
78TESTXML=$(top_builddir)/test-$(TESTTARGET).xml
79xcheck-local: all-local
80 $(INVOKE) ./$(TESTTARGET) $(TEST_OUTPUT_OPTS) $(LETEST_OPTS) -x $(TESTXML)
b75a7d8f
A
81
82Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
83 cd $(top_builddir) \
84 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
85
46f4442e 86$(TESTTARGET) : $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS)
b331163b 87 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
46f4442e 88 $(POST_BUILD_STEP)
b75a7d8f
A
89
90$(GENTARGET) : $(COMMONOBJECTS) $(GENOBJECTS)
b331163b 91 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
46f4442e 92 $(POST_BUILD_STEP)
b75a7d8f
A
93
94invoke:
95 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
96
57a6839d
A
97gen-data: $(GENTARGET)
98 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) ./$(GENTARGET) $(top_srcdir)/test/testdata/letest.xml $(srcdir)/gendata.xml
99
b75a7d8f
A
100ifeq (,$(MAKECMDGOALS))
101-include $(DEPS)
102else
103ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
104ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
105-include $(DEPS)
106endif
107endif
108endif