1 ## Makefile.in for ICU - test/letest
2 ## Copyright (C) 2016 and later: Unicode, Inc. and others.
3 ## License & terms of use: http://www.unicode.org/copyright.html
4 ## Copyright (c) 2001-2014, International Business Machines Corporation and
5 ## others. All Rights Reserved.
7 ## Source directory information
9 top_srcdir = @top_srcdir@
13 include $(top_builddir)/icudefs.mk
15 ## Build directory information
18 ## Extra files to remove for 'make clean'
19 CLEANFILES = *~ $(DEPS)
25 BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
26 # Simplify the path for Unix
27 BUILDDIR := $(BUILDDIR:test/cintltst/../../=)
28 # Simplify the path for Windows
29 BUILDDIR := $(BUILDDIR:test\\cintltst/../../=)
30 # Simplify the path for Windows 98
31 BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=)
33 CPPFLAGS += -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)
34 DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
35 LIBS = $(LIBICULX) $(LIBICUUC) $(LIBICUI18N) $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M) $(ICULEHB_LIBS)
37 COMMONOBJECTS = letsutil.o cmaps.o FontTableCache.o SimpleFontInstance.o PortableFontInstance.o
38 TESTOBJECTS = letest.o
39 CTESTOBJECTS = cfonts.o xmlreader.o cletest.o
40 GENOBJECTS = gendata.o
42 OBJECTS = $(COMMONOBJECTS) $(TESTOBJECTS) $(GENOBJECTS)
44 DEPS = $(OBJECTS:.o=.d)
46 ## List of phony targets
47 .PHONY : all all-local install install-local clean clean-local \
48 distclean distclean-local dist dist-local check check-local xcheck xcheck-local
53 ## List of standard targets
55 install: install-local
57 distclean : distclean-local
59 check: all check-local
60 xcheck: all xcheck-local
62 all-local: $(TESTTARGET)
69 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
70 $(RMV) $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS) $(GENOBJECTS) $(TARGET)
72 distclean-local: clean-local
75 check-local: all-local
76 $(INVOKE) ./$(TESTTARGET) $(TEST_OUTPUT_OPTS) $(LETEST_OPTS)
78 TESTXML=$(top_builddir)/test-$(TESTTARGET).xml
79 xcheck-local: all-local
80 $(INVOKE) ./$(TESTTARGET) $(TEST_OUTPUT_OPTS) $(LETEST_OPTS) -x $(TESTXML)
82 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
84 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
86 $(TESTTARGET) : $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS)
87 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
90 $(GENTARGET) : $(COMMONOBJECTS) $(GENOBJECTS)
91 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
95 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
97 gen-data: $(GENTARGET)
98 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) ./$(GENTARGET) $(top_srcdir)/test/testdata/letest.xml $(srcdir)/gendata.xml
100 ifeq (,$(MAKECMDGOALS))
103 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
104 ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)