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