]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/ctestfw/Makefile.in
ICU-8.11.4.tar.gz
[apple/icu.git] / icuSources / tools / ctestfw / 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 - tools/ctestfw
b75a7d8f
A
8## Stephen F. Booth
9
10## Source directory information
11srcdir = @srcdir@
12top_srcdir = @top_srcdir@
13
14top_builddir = ../..
15
73c04bcf 16## All the flags and other definitions are included here.
b75a7d8f
A
17include $(top_builddir)/icudefs.mk
18
19## Build directory information
20subdir = tools/ctestfw
21
22## Extra files to remove for 'make clean'
374ca955 23CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
b75a7d8f
A
24
25## Target information
26
73c04bcf
A
27TARGET_STUBNAME=$(CTESTFW_STUBNAME)
28
b75a7d8f 29ifneq ($(ENABLE_STATIC),)
73c04bcf 30TARGET = $(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
b75a7d8f
A
31endif
32
b75a7d8f 33ifneq ($(ENABLE_SHARED),)
73c04bcf
A
34SO_TARGET = $(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
35ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
b75a7d8f
A
36endif
37
38ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
39
40DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
41DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
42DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
43
73c04bcf
A
44ifneq ($(top_builddir),$(top_srcdir))
45CPPFLAGS += -I$(top_builddir)/common
46endif
47CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil -I$(srcdir) $(LIBCPPFLAGS)
48DEFS += -DT_CTEST_IMPLEMENTATION
374ca955 49LDFLAGS += $(LDFLAGSCTESTFW)
73c04bcf 50LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS)
b75a7d8f 51
73c04bcf 52OBJECTS = ctest.o tstdtmod.o testdata.o datamap.o uperf.o
b75a7d8f
A
53
54STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
55
56DEPS = $(OBJECTS:.o=.d)
57
73c04bcf
A
58-include Makefile.local
59
b75a7d8f
A
60## List of phony targets
61.PHONY : all all-local install install-local clean clean-local \
62distclean distclean-local dist dist-local check check-local
63
64## Clear suffix list
65.SUFFIXES :
66
67## List of standard targets
68all: all-local
69install: install-local
70clean: clean-local
71distclean : distclean-local
72dist: dist-local
73check: all check-local
74
75all-local: $(ALL_TARGETS)
76
77install-local: install-library
78
79install-library: all-local
b75a7d8f
A
80
81dist-local:
82
83clean-local:
84 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
374ca955 85 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
b75a7d8f
A
86
87distclean-local: clean-local
88 $(RMV) Makefile
89
90check-local: all-local
91
92Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
93 cd $(top_builddir) \
94 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
95
96ifneq ($(ENABLE_STATIC),)
97$(TARGET): $(TARGET)($(STATIC_OBJECTS))
98 $(RANLIB) $@
99endif
100
101ifneq ($(ENABLE_SHARED),)
73c04bcf 102$(SHARED_OBJECT): $(OBJECTS)
b75a7d8f
A
103 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
104endif
105
106ifeq (,$(MAKECMDGOALS))
107-include $(DEPS)
108else
109ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
110-include $(DEPS)
111endif
112endif
73c04bcf 113