OLD | NEW |
| (Empty) |
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 | |
6 srcdir = @srcdir@ | |
7 top_srcdir = @top_srcdir@ | |
8 | |
9 top_builddir = ../.. | |
10 | |
11 include $(top_builddir)/icudefs.mk | |
12 | |
13 ## Build directory information | |
14 subdir = test/letest | |
15 | |
16 ## Extra files to remove for 'make clean' | |
17 CLEANFILES = *~ $(DEPS) | |
18 | |
19 ## Target information | |
20 TESTTARGET = letest | |
21 GENTARGET = gendata | |
22 | |
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/../../=) | |
30 | |
31 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ct
estfw -I$(top_srcdir)/tools/toolutil -I$(top_srcdir)/layoutex $(ICULE_CFLAGS) | |
32 ifeq ($(USING_ICULEHB),no) | |
33 CPPFLAGS+=-I$(top_srcdir)/layout | |
34 endif | |
35 DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"' | |
36 LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) $(LIBCTESTFW) $(LIBICUT
OOLUTIL) $(DEFAULT_LIBS) $(LIB_M) | |
37 | |
38 COMMONOBJECTS = letsutil.o cmaps.o FontTableCache.o SimpleFontInstance.o Portabl
eFontInstance.o | |
39 TESTOBJECTS = letest.o | |
40 CTESTOBJECTS = cfonts.o xmlreader.o cletest.o | |
41 GENOBJECTS = gendata.o | |
42 | |
43 OBJECTS = $(COMMONOBJECTS) $(TESTOBJECTS) $(GENOBJECTS) | |
44 | |
45 DEPS = $(OBJECTS:.o=.d) | |
46 | |
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 | |
50 | |
51 ## Clear suffix list | |
52 .SUFFIXES : | |
53 | |
54 ## List of standard targets | |
55 all: all-local | |
56 install: install-local | |
57 clean: clean-local | |
58 distclean : distclean-local | |
59 dist: dist-local | |
60 check: all check-local | |
61 xcheck: all xcheck-local | |
62 | |
63 all-local: $(TESTTARGET) | |
64 | |
65 install-local: | |
66 | |
67 dist-local: | |
68 | |
69 clean-local: | |
70 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
71 $(RMV) $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS) $(GENOBJECTS) $(T
ARGET) | |
72 | |
73 distclean-local: clean-local | |
74 $(RMV) Makefile | |
75 | |
76 check-local: all-local | |
77 $(INVOKE) ./$(TESTTARGET) $(TEST_OUTPUT_OPTS) $(LETEST_OPTS) | |
78 | |
79 TESTXML=$(top_builddir)/test-$(TESTTARGET).xml | |
80 xcheck-local: all-local | |
81 $(INVOKE) ./$(TESTTARGET) $(TEST_OUTPUT_OPTS) $(LETEST_OPTS) -x $(TESTXM
L) | |
82 | |
83 Makefile: $(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) $(OUTOPT)$@ $^ $(LIBS) | |
89 $(POST_BUILD_STEP) | |
90 | |
91 $(GENTARGET) : $(COMMONOBJECTS) $(GENOBJECTS) | |
92 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | |
93 $(POST_BUILD_STEP) | |
94 | |
95 invoke: | |
96 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVO
CATION) | |
97 | |
98 gen-data: $(GENTARGET) | |
99 ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) ./$(GE
NTARGET) $(top_srcdir)/test/testdata/letest.xml $(srcdir)/gendata.xml | |
100 | |
101 ifeq (,$(MAKECMDGOALS)) | |
102 -include $(DEPS) | |
103 else | |
104 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
105 ifneq ($(patsubst %install,,$(MAKECMDGOALS)),) | |
106 -include $(DEPS) | |
107 endif | |
108 endif | |
109 endif | |
OLD | NEW |