]>
Commit | Line | Data |
---|---|---|
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 | |
6 | srcdir = @srcdir@ | |
7 | top_srcdir = @top_srcdir@ | |
8 | ||
9 | top_builddir = ../.. | |
10 | ||
11 | include $(top_builddir)/icudefs.mk | |
12 | ||
13 | ## Platform-specific setup | |
14 | include @platform_make_fragment@ | |
15 | ||
16 | ## Build directory information | |
17 | subdir = test/letest | |
18 | ||
19 | ## Extra files to remove for 'make clean' | |
20 | CLEANFILES = *~ $(DEPS) | |
21 | ||
22 | ## Target information | |
23 | TESTTARGET = letest | |
24 | GENTARGET = gendata | |
25 | ||
73c04bcf A |
26 | BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../ |
27 | # Simplify the path for Unix | |
28 | BUILDDIR := $(BUILDDIR:test/cintltst/../../=) | |
29 | # Simplify the path for Windows | |
30 | BUILDDIR := $(BUILDDIR:test\\cintltst/../../=) | |
31 | # Simplify the path for Windows 98 | |
32 | BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=) | |
b75a7d8f | 33 | |
73c04bcf A |
34 | ifneq ($(top_builddir),$(top_srcdir)) |
35 | CPPFLAGS += -I$(top_builddir)/common | |
36 | endif | |
37 | ||
38 | CPPFLAGS += -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) | |
39 | DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"' | |
40 | LIBS = $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) $(LIBCTESTFW) $(LIBICUTOOLUTIL) @LIBS@ @LIB_M@ | |
41 | ||
42 | COMMONOBJECTS = letsutil.o cmaps.o FontTableCache.o SimpleFontInstance.o PortableFontInstance.o | |
43 | TESTOBJECTS = letest.o | |
b75a7d8f A |
44 | GENOBJECTS = gendata.o |
45 | ||
46 | OBJECTS = $(COMMONOBJECTS) $(TESTOBJECTS) $(GENOBJECTS) | |
47 | ||
48 | DEPS = $(OBJECTS:.o=.d) | |
49 | ||
50 | ## List of phony targets | |
51 | .PHONY : all all-local install install-local clean clean-local \ | |
52 | distclean distclean-local dist dist-local check check-local | |
53 | ||
54 | ## Clear suffix list | |
55 | .SUFFIXES : | |
56 | ||
57 | ## List of standard targets | |
58 | all: all-local | |
59 | install: install-local | |
60 | clean: clean-local | |
61 | distclean : distclean-local | |
62 | dist: dist-local | |
63 | check: all check-local | |
64 | ||
65 | all-local: $(TESTTARGET) | |
66 | ||
67 | install-local: | |
68 | ||
69 | dist-local: | |
70 | ||
71 | clean-local: | |
72 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
73 | $(RMV) $(OBJECTS) $(TARGET) | |
74 | ||
75 | distclean-local: clean-local | |
76 | $(RMV) Makefile | |
77 | ||
78 | check-local: all-local | |
79 | $(INVOKE) ./$(TESTTARGET) | |
80 | ||
81 | Makefile: $(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 | ||
91 | invoke: | |
92 | ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION) | |
93 | ||
94 | ifeq (,$(MAKECMDGOALS)) | |
95 | -include $(DEPS) | |
96 | else | |
97 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
98 | ifneq ($(patsubst %install,,$(MAKECMDGOALS)),) | |
99 | -include $(DEPS) | |
100 | endif | |
101 | endif | |
102 | endif |