]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/test/cintltst/Makefile.in
ICU-8.11.4.tar.gz
[apple/icu.git] / icuSources / test / cintltst / Makefile.in
... / ...
CommitLineData
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
10srcdir = @srcdir@
11top_srcdir = @top_srcdir@
12
13top_builddir = ../..
14
15## All the flags and other definitions are included here.
16include $(top_builddir)/icudefs.mk
17
18## Build directory information
19subdir = test/cintltst
20
21## Extra files to remove for 'make clean'
22CLEANFILES = *~ $(DEPS)
23
24## Target information
25TARGET = 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
31ifneq ($(ENABLE_STATIC),)
32LINK = $(LINK.cc)
33else
34LINK = $(LINK.c)
35endif
36
37BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
38# Simplify the path for Unix
39BUILDDIR := $(BUILDDIR:test/cintltst/../../=)
40# Simplify the path for Windows
41BUILDDIR := $(BUILDDIR:test\\cintltst/../../=)
42# Simplify the path for Windows 98
43BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=)
44
45ifneq ($(top_builddir),$(top_srcdir))
46CPPFLAGS += -I$(top_builddir)/common
47endif
48# we define ICU_UNICODE_VERSION so we can test it
49CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/tools/toolutil
50DEFS += -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)"'
51LIBS = $(LIBCTESTFW) $(LIBICUI18N) $(LIBICUUC) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M)
52
53OBJECTS = callcoll.o calltest.o colutil.o capitst.o cbiapts.o cbkittst.o \
54ccaltst.o cctest.o ccapitst.o ccolltst.o encoll.o cconvtst.o ccurrtst.o \
55cdattst.o cdetst.o cdtdptst.o cdtrgtst.o cestst.o cfintst.o cformtst.o \
56cfrtst.o cg7coll.o chashtst.o cintltst.o citertst.o cjaptst.o cloctst.o \
57cmsccoll.o cmsgtst.o cposxtst.o cldrtest.o \
58cnmdptst.o cnormtst.o cnumtst.o crestst.o creststn.o cturtst.o \
59cucdapi.o cucdtst.o custrtst.o cstrcase.o cutiltst.o nucnvtst.o nccbtst.o bocu1tst.o \
60cbiditst.o cbididat.o eurocreg.o udatatst.o utf16tst.o utransts.o \
61ncnvfbts.o ncnvtst.o putiltst.o cstrtest.o utf8tst.o \
62stdnmtst.o ctstdep.o usrchtst.o custrtrn.o sorttest.o trietest.o usettest.o \
63uenumtst.o utmstest.o currtest.o \
64idnatest.o nfsprep.o spreptst.o sprpdata.o \
65hpmufn.o tracetst.o reapits.o utexttst.o ucsdetst.o
66
67DEPS = $(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 \
73distclean distclean-local dist dist-local check check-local
74
75## Clear suffix list
76.SUFFIXES :
77
78## List of standard targets
79all: all-local
80install: install-local
81clean: clean-local
82distclean : distclean-local
83dist: dist-local
84check: all check-local
85
86all-local: $(TARGET)
87
88install-local:
89
90dist-local:
91
92clean-local:
93 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
94 $(RMV) $(OBJECTS) $(TARGET)
95
96distclean-local: clean-local
97 $(RMV) Makefile
98
99check-local: all-local
100 $(INVOKE) ./$(TARGET) $(CINTLTST_OPTS)
101
102Makefile: $(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
109ifeq (,$(MAKECMDGOALS))
110-include $(DEPS)
111else
112ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
113ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
114-include $(DEPS)
115endif
116endif
117endif
118