]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/iotest/Makefile.in
ICU-8.11.4.tar.gz
[apple/icu.git] / icuSources / test / iotest / Makefile.in
1 #******************************************************************************
2 #
3 # Copyright (C) 1999-2005, International Business Machines
4 # Corporation and others. All Rights Reserved.
5 #
6 #******************************************************************************
7 ## Makefile.in for ICU - test/iotest
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/iotest
20
21 ## Extra files to remove for 'make clean'
22 CLEANFILES = *~ $(DEPS)
23
24 ## Target information
25 TARGET = iotest$(EXEEXT)
26
27 BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
28 # Simplify the path for Unix
29 BUILDDIR := $(BUILDDIR:test/iotest/../../=)
30 # Simplify the path for Windows
31 BUILDDIR := $(BUILDDIR:test\\iotest/../../=)
32 # Simplify the path for Windows 98
33 BUILDDIR := $(BUILDDIR:TEST\\IOTEST/../../=)
34
35 ifneq ($(top_builddir),$(top_srcdir))
36 CPPFLAGS += -I$(top_builddir)/common
37 endif
38 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/io
39 DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
40 LIBS = $(LIBCTESTFW) $(LIBICUTOOLUTIL) $(LIBICUIO) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
41
42 OBJECTS = iotest.o stream.o strtst.o filetst.o trnstst.o
43
44 DEPS = $(OBJECTS:.o=.d)
45
46 -include Makefile.local
47
48 ## List of phony targets
49 .PHONY : all all-local install install-local clean clean-local \
50 distclean distclean-local dist dist-local check check-local
51
52 ## Clear suffix list
53 .SUFFIXES :
54
55 ## List of standard targets
56 all: all-local
57 install: install-local
58 clean: clean-local
59 distclean : distclean-local
60 dist: dist-local
61 check: all check-local
62
63 all-local: $(TARGET)
64
65 install-local:
66
67 dist-local:
68
69 clean-local:
70 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
71 $(RMV) $(OBJECTS) $(TARGET)
72
73 distclean-local: clean-local
74 $(RMV) Makefile
75
76 check-local: all-local
77 $(INVOKE) ./$(TARGET) $(IOTEST_OPTS) || true
78
79 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
80 cd $(top_builddir) \
81 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
82
83 $(TARGET) : $(OBJECTS)
84 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
85
86 ifeq (,$(MAKECMDGOALS))
87 -include $(DEPS)
88 else
89 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
90 ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
91 -include $(DEPS)
92 endif
93 endif
94 endif
95