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