1 ## Makefile.in for ICU - test/letest
2 ## Copyright (c) 2001-2014, International Business Machines Corporation and
3 ## others. All Rights Reserved.
5 ## Source directory information
7 top_srcdir = @top_srcdir@
11 include $(top_builddir)/icudefs.mk
13 ## Build directory information
16 ## Extra files to remove for 'make clean'
17 CLEANFILES = *~ $(DEPS)
23 BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
24 # Simplify the path for Unix
25 BUILDDIR := $(BUILDDIR:test/cintltst/../../=)
26 # Simplify the path for Windows
27 BUILDDIR := $(BUILDDIR:test\\cintltst/../../=)
28 # Simplify the path for Windows 98
29 BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=)
31 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)
32 ifeq ($(USING_ICULEHB),no)
33 CPPFLAGS+=-I$(top_srcdir)/layout
35 DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
36 LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M)
38 COMMONOBJECTS = letsutil.o cmaps.o FontTableCache.o SimpleFontInstance.o PortableFontInstance.o
39 TESTOBJECTS = letest.o
40 CTESTOBJECTS = cfonts.o xmlreader.o cletest.o
41 GENOBJECTS = gendata.o
43 OBJECTS = $(COMMONOBJECTS) $(TESTOBJECTS) $(GENOBJECTS)
45 DEPS = $(OBJECTS:.o=.d)
47 ## List of phony targets
48 .PHONY : all all-local install install-local clean clean-local \
49 distclean distclean-local dist dist-local check check-local xcheck xcheck-local
54 ## List of standard targets
56 install: install-local
58 distclean : distclean-local
60 check: all check-local
61 xcheck: all xcheck-local
63 all-local: $(TESTTARGET)
70 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
71 $(RMV) $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS) $(GENOBJECTS) $(TARGET)
73 distclean-local: clean-local
76 check-local: all-local
77 $(INVOKE) ./$(TESTTARGET) $(TEST_OUTPUT_OPTS) $(LETEST_OPTS)
79 TESTXML=$(top_builddir)/test-$(TESTTARGET).xml
80 xcheck-local: all-local
81 $(INVOKE) ./$(TESTTARGET) $(TEST_OUTPUT_OPTS) $(LETEST_OPTS) -x $(TESTXML)
83 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
85 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
87 $(TESTTARGET) : $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS)
88 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
91 $(GENTARGET) : $(COMMONOBJECTS) $(GENOBJECTS)
92 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
96 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
98 gen-data: $(GENTARGET)
99 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) ./$(GENTARGET) $(top_srcdir)/test/testdata/letest.xml $(srcdir)/gendata.xml
101 ifeq (,$(MAKECMDGOALS))
104 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
105 ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)