]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/cintltst/Makefile.in
ICU-8.11.4.tar.gz
[apple/icu.git] / icuSources / test / cintltst / Makefile.in
CommitLineData
73c04bcf
A
1#******************************************************************************
2#
3# Copyright (C) 1999-2006, International Business Machines
4# Corporation and others. All Rights Reserved.
5#
6#******************************************************************************
b75a7d8f 7## Makefile.in for ICU - test/cintltst
b75a7d8f
A
8
9## Source directory information
10srcdir = @srcdir@
11top_srcdir = @top_srcdir@
12
13top_builddir = ../..
14
73c04bcf 15## All the flags and other definitions are included here.
b75a7d8f
A
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
73c04bcf
A
28# link using a C++ compiler?! This must be done so that library vtables
29# work correctly on all platforms.
b75a7d8f
A
30
31ifneq ($(ENABLE_STATIC),)
32LINK = $(LINK.cc)
33else
34LINK = $(LINK.c)
35endif
36
374ca955 37BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
73c04bcf 38# Simplify the path for Unix
b75a7d8f 39BUILDDIR := $(BUILDDIR:test/cintltst/../../=)
73c04bcf
A
40# Simplify the path for Windows
41BUILDDIR := $(BUILDDIR:test\\cintltst/../../=)
42# Simplify the path for Windows 98
43BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=)
b75a7d8f 44
73c04bcf
A
45ifneq ($(top_builddir),$(top_srcdir))
46CPPFLAGS += -I$(top_builddir)/common
47endif
b75a7d8f 48# we define ICU_UNICODE_VERSION so we can test it
73c04bcf 49CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/tools/toolutil
374ca955 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)"'
b75a7d8f
A
51LIBS = $(LIBCTESTFW) $(LIBICUI18N) $(LIBICUUC) $(LIBICUTOOLUTIL) $(DEFAULT_LIBS) $(LIB_M)
52
53OBJECTS = callcoll.o calltest.o colutil.o capitst.o cbiapts.o cbkittst.o \
73c04bcf 54ccaltst.o cctest.o ccapitst.o ccolltst.o encoll.o cconvtst.o ccurrtst.o \
b75a7d8f
A
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 \
374ca955 57cmsccoll.o cmsgtst.o cposxtst.o cldrtest.o \
73c04bcf
A
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 \
b75a7d8f 60cbiditst.o cbididat.o eurocreg.o udatatst.o utf16tst.o utransts.o \
73c04bcf
A
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
b75a7d8f
A
66
67DEPS = $(OBJECTS:.o=.d)
68
73c04bcf
A
69-include Makefile.local
70
b75a7d8f
A
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
b75a7d8f 99check-local: all-local
374ca955 100 $(INVOKE) ./$(TARGET) $(CINTLTST_OPTS)
b75a7d8f
A
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
73c04bcf 118