]>
Commit | Line | Data |
---|---|---|
73c04bcf A |
1 | #****************************************************************************** |
2 | # | |
4388f060 | 3 | # Copyright (C) 1999-2011, International Business Machines |
73c04bcf A |
4 | # Corporation and others. All Rights Reserved. |
5 | # | |
6 | #****************************************************************************** | |
b75a7d8f | 7 | ## Makefile.in for ICU - test/cintltst |
b75a7d8f A |
8 | |
9 | ## Source directory information | |
10 | srcdir = @srcdir@ | |
11 | top_srcdir = @top_srcdir@ | |
12 | ||
13 | top_builddir = ../.. | |
14 | ||
73c04bcf | 15 | ## All the flags and other definitions are included here. |
b75a7d8f A |
16 | include $(top_builddir)/icudefs.mk |
17 | ||
18 | ## Build directory information | |
19 | subdir = test/cintltst | |
20 | ||
21 | ## Extra files to remove for 'make clean' | |
729e4ab9 | 22 | CLEANFILES = *~ $(DEPS) $(TESTXML) |
b75a7d8f A |
23 | |
24 | ## Target information | |
25 | TARGET = cintltst$(EXEEXT) | |
26 | ||
374ca955 | 27 | BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../ |
73c04bcf | 28 | # Simplify the path for Unix |
b75a7d8f | 29 | BUILDDIR := $(BUILDDIR:test/cintltst/../../=) |
73c04bcf A |
30 | # Simplify the path for Windows |
31 | BUILDDIR := $(BUILDDIR:test\\cintltst/../../=) | |
32 | # Simplify the path for Windows 98 | |
33 | BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=) | |
b75a7d8f A |
34 | |
35 | # we define ICU_UNICODE_VERSION so we can test it | |
73c04bcf | 36 | CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/tools/toolutil |
374ca955 | 37 | DEFS += -D'ICU_UNICODE_VERSION="$(UNICODE_VERSION)"' -D'ICU_VERSION="@VERSION@"' -D'ICUDATA_NAME="$(ICUDATA_PLATFORM_NAME)"' -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"' |
729e4ab9 | 38 | LIBS = $(LIBCTESTFW) $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) |
b75a7d8f A |
39 | |
40 | OBJECTS = callcoll.o calltest.o colutil.o capitst.o cbiapts.o cbkittst.o \ | |
729e4ab9 | 41 | ccaltst.o ucnvseltst.o cctest.o ccapitst.o ccolltst.o encoll.o cconvtst.o ccurrtst.o \ |
4388f060 A |
42 | cdateintervalformattest.o cdattst.o cdetst.o cdtdptst.o cdtrgtst.o cestst.o cfintst.o \ |
43 | cformtst.o cfrtst.o cg7coll.o chashtst.o cintltst.o citertst.o cjaptst.o cloctst.o \ | |
44 | cmsccoll.o cmsgtst.o cpluralrulestest.o cposxtst.o cldrtest.o \ | |
73c04bcf A |
45 | cnmdptst.o cnormtst.o cnumtst.o crestst.o creststn.o cturtst.o \ |
46 | cucdapi.o cucdtst.o custrtst.o cstrcase.o cutiltst.o nucnvtst.o nccbtst.o bocu1tst.o \ | |
b75a7d8f | 47 | cbiditst.o cbididat.o eurocreg.o udatatst.o utf16tst.o utransts.o \ |
46f4442e | 48 | ncnvfbts.o ncnvtst.o putiltst.o cstrtest.o udatpg_test.o utf8tst.o \ |
729e4ab9 | 49 | stdnmtst.o usrchtst.o custrtrn.o sorttest.o trietest.o trie2test.o usettest.o \ |
73c04bcf A |
50 | uenumtst.o utmstest.o currtest.o \ |
51 | idnatest.o nfsprep.o spreptst.o sprpdata.o \ | |
729e4ab9 | 52 | hpmufn.o tracetst.o reapits.o utexttst.o ucsdetst.o spooftest.o |
b75a7d8f A |
53 | |
54 | DEPS = $(OBJECTS:.o=.d) | |
55 | ||
73c04bcf A |
56 | -include Makefile.local |
57 | ||
b75a7d8f A |
58 | ## List of phony targets |
59 | .PHONY : all all-local install install-local clean clean-local \ | |
4388f060 A |
60 | distclean distclean-local dist dist-local check check-local xcheck \ |
61 | check-exhaustive check-exhaustive-local | |
b75a7d8f A |
62 | |
63 | ## Clear suffix list | |
64 | .SUFFIXES : | |
65 | ||
66 | ## List of standard targets | |
67 | all: all-local | |
68 | install: install-local | |
69 | clean: clean-local | |
70 | distclean : distclean-local | |
71 | dist: dist-local | |
72 | check: all check-local | |
729e4ab9 | 73 | xcheck: all xcheck-local |
4388f060 | 74 | check-exhaustive: all check-exhaustive-local |
b75a7d8f A |
75 | |
76 | all-local: $(TARGET) | |
77 | ||
78 | install-local: | |
79 | ||
80 | dist-local: | |
81 | ||
82 | clean-local: | |
83 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
84 | $(RMV) $(OBJECTS) $(TARGET) | |
85 | ||
86 | distclean-local: clean-local | |
87 | $(RMV) Makefile | |
88 | ||
b75a7d8f | 89 | check-local: all-local |
374ca955 | 90 | $(INVOKE) ./$(TARGET) $(CINTLTST_OPTS) |
b75a7d8f | 91 | |
4388f060 A |
92 | check-exhaustive-local: all-local |
93 | $(INVOKE) ./$(TARGET) -e | |
94 | ||
729e4ab9 A |
95 | TESTXML=$(top_builddir)/test-$(TARGET).xml |
96 | xcheck-local: all-local | |
97 | $(INVOKE) ./$(TARGET) $(CINTLTST_OPTS) -x $(TESTXML) | |
98 | ||
b75a7d8f A |
99 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
100 | cd $(top_builddir) \ | |
101 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
102 | ||
103 | $(TARGET) : $(OBJECTS) | |
46f4442e A |
104 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) |
105 | $(POST_BUILD_STEP) | |
b75a7d8f A |
106 | |
107 | ifeq (,$(MAKECMDGOALS)) | |
108 | -include $(DEPS) | |
109 | else | |
110 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
111 | ifneq ($(patsubst %install,,$(MAKECMDGOALS)),) | |
112 | -include $(DEPS) | |
113 | endif | |
114 | endif | |
115 | endif | |
73c04bcf | 116 |