]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/letest/Makefile.in
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / test / letest / Makefile.in
CommitLineData
b75a7d8f 1## Makefile.in for ICU - test/letest
73c04bcf 2## Copyright (c) 2001-2006, 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
23TESTTARGET = letest
24GENTARGET = gendata
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
73c04bcf
A
34ifneq ($(top_builddir),$(top_srcdir))
35CPPFLAGS += -I$(top_builddir)/common
36endif
37
38CPPFLAGS += -I$(top_builddir)/common -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)
39DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
40LIBS = $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) $(LIBCTESTFW) $(LIBICUTOOLUTIL) @LIBS@ @LIB_M@
41
42COMMONOBJECTS = letsutil.o cmaps.o FontTableCache.o SimpleFontInstance.o PortableFontInstance.o
43TESTOBJECTS = letest.o
b75a7d8f
A
44GENOBJECTS = gendata.o
45
46OBJECTS = $(COMMONOBJECTS) $(TESTOBJECTS) $(GENOBJECTS)
47
48DEPS = $(OBJECTS:.o=.d)
49
50## List of phony targets
51.PHONY : all all-local install install-local clean clean-local \
52distclean distclean-local dist dist-local check check-local
53
54## Clear suffix list
55.SUFFIXES :
56
57## List of standard targets
58all: all-local
59install: install-local
60clean: clean-local
61distclean : distclean-local
62dist: dist-local
63check: all check-local
64
65all-local: $(TESTTARGET)
66
67install-local:
68
69dist-local:
70
71clean-local:
72 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
73 $(RMV) $(OBJECTS) $(TARGET)
74
75distclean-local: clean-local
76 $(RMV) Makefile
77
78check-local: all-local
79 $(INVOKE) ./$(TESTTARGET)
80
81Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
82 cd $(top_builddir) \
83 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
84
85$(TESTTARGET) : $(COMMONOBJECTS) $(TESTOBJECTS)
86 $(LINK.cc) -o $@ $^ $(LIBS)
87
88$(GENTARGET) : $(COMMONOBJECTS) $(GENOBJECTS)
89 $(LINK.cc) -o $@ $^ $(LIBS)
90
91invoke:
92 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
93
94ifeq (,$(MAKECMDGOALS))
95-include $(DEPS)
96else
97ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
98ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
99-include $(DEPS)
100endif
101endif
102endif