• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
6
7## Source directory information
8srcdir = @srcdir@
9top_srcdir = @top_srcdir@
10
11top_builddir = ../..
12
13include $(top_builddir)/icudefs.mk
14
15## Build directory information
16subdir = test/letest
17
18## Extra files to remove for 'make clean'
19CLEANFILES = *~ $(DEPS)
20
21## Target information
22TESTTARGET  = letest
23GENTARGET   = gendata
24
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/../../=)
32
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)
34DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
35LIBS = $(LIBICULX) $(LIBICUUC) $(LIBICUI18N) $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M) $(ICULEHB_LIBS)
36
37COMMONOBJECTS = letsutil.o cmaps.o FontTableCache.o SimpleFontInstance.o PortableFontInstance.o
38TESTOBJECTS   = letest.o
39CTESTOBJECTS  = cfonts.o xmlreader.o cletest.o
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	\
48distclean distclean-local dist dist-local check check-local xcheck xcheck-local
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
60xcheck: all xcheck-local
61
62all-local: $(TESTTARGET)
63
64install-local:
65
66dist-local:
67
68clean-local:
69	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
70	$(RMV) $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS) $(GENOBJECTS) $(TARGET)
71
72distclean-local: clean-local
73	$(RMV) Makefile
74
75check-local: all-local
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)
81
82Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
83	cd $(top_builddir) \
84	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
85
86$(TESTTARGET) : $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS)
87	$(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
88	$(POST_BUILD_STEP)
89
90$(GENTARGET) : $(COMMONOBJECTS) $(GENOBJECTS)
91	$(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
92	$(POST_BUILD_STEP)
93
94invoke:
95	ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
96
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
100ifeq (,$(MAKECMDGOALS))
101-include $(DEPS)
102else
103ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
104ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
105-include $(DEPS)
106endif
107endif
108endif
109