]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/letest/Makefile.in
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / test / letest / Makefile.in
CommitLineData
b75a7d8f 1## Makefile.in for ICU - test/letest
4388f060 2## Copyright (c) 2001-2011, International Business Machines Corporation and
b75a7d8f
A
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
46f4442e
A
23TESTTARGET = letest
24GENTARGET = gendata
b75a7d8f 25
73c04bcf
A
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/../../=)
b75a7d8f 33
4388f060 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)
73c04bcf 35DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
46f4442e 36LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) $(LIBCTESTFW) $(LIBICUTOOLUTIL) @LIBS@ @LIB_M@
73c04bcf
A
37
38COMMONOBJECTS = letsutil.o cmaps.o FontTableCache.o SimpleFontInstance.o PortableFontInstance.o
39TESTOBJECTS = letest.o
46f4442e 40CTESTOBJECTS = cfonts.o xmlreader.o cletest.o
b75a7d8f
A
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
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
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
76 $(INVOKE) ./$(TESTTARGET)
77
78Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
79 cd $(top_builddir) \
80 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
81
46f4442e 82$(TESTTARGET) : $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS)
b75a7d8f 83 $(LINK.cc) -o $@ $^ $(LIBS)
46f4442e 84 $(POST_BUILD_STEP)
b75a7d8f
A
85
86$(GENTARGET) : $(COMMONOBJECTS) $(GENOBJECTS)
87 $(LINK.cc) -o $@ $^ $(LIBS)
46f4442e 88 $(POST_BUILD_STEP)
b75a7d8f
A
89
90invoke:
91 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
92
93ifeq (,$(MAKECMDGOALS))
94-include $(DEPS)
95else
96ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
97ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
98-include $(DEPS)
99endif
100endif
101endif