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