]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/ctestfw/Makefile.in
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / tools / ctestfw / Makefile.in
CommitLineData
73c04bcf
A
1#******************************************************************************
2#
729e4ab9 3# Copyright (C) 1999-2010, International Business Machines
73c04bcf
A
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)
46f4442e
A
43CFLAGS += $(LIBCFLAGS)
44CXXFLAGS += $(LIBCXXFLAGS)
b75a7d8f 45
73c04bcf
A
46ifneq ($(top_builddir),$(top_srcdir))
47CPPFLAGS += -I$(top_builddir)/common
48endif
729e4ab9 49CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(srcdir) $(LIBCPPFLAGS) $(CPPFLAGSCTESTFW)
73c04bcf 50DEFS += -DT_CTEST_IMPLEMENTATION
374ca955 51LDFLAGS += $(LDFLAGSCTESTFW)
73c04bcf 52LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS)
b75a7d8f 53
729e4ab9 54OBJECTS = ctest.o tstdtmod.o testdata.o datamap.o uperf.o ucln_ct.o
b75a7d8f
A
55
56STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
57
58DEPS = $(OBJECTS:.o=.d)
59
73c04bcf
A
60-include Makefile.local
61
b75a7d8f
A
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
729e4ab9
A
82 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
83ifneq ($(ENABLE_STATIC),)
84 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
85endif
86ifneq ($(ENABLE_SHARED),)
87 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
88ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
89 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
90ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
91 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
92endif
93endif
94ifneq ($(IMPORT_LIB_EXT),)
95 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
96ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
97 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
98endif
99ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
100 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
101endif
102endif
103endif
b75a7d8f
A
104
105dist-local:
106
107clean-local:
108 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
374ca955 109 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
b75a7d8f
A
110
111distclean-local: clean-local
112 $(RMV) Makefile
113
114check-local: all-local
115
116Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
117 cd $(top_builddir) \
118 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
119
120ifneq ($(ENABLE_STATIC),)
46f4442e
A
121$(TARGET): $(STATIC_OBJECTS)
122 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
b75a7d8f
A
123 $(RANLIB) $@
124endif
125
126ifneq ($(ENABLE_SHARED),)
73c04bcf 127$(SHARED_OBJECT): $(OBJECTS)
b75a7d8f
A
128 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
129endif
130
131ifeq (,$(MAKECMDGOALS))
132-include $(DEPS)
133else
134ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
135-include $(DEPS)
136endif
137endif
73c04bcf 138