]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/ctestfw/Makefile.in
ICU-6.2.22.tar.gz
[apple/icu.git] / icuSources / tools / ctestfw / Makefile.in
CommitLineData
b75a7d8f 1## Makefile.in for ICU - tools/ctestfw
374ca955 2## Copyright (c) 1999-2004, International Business Machines Corporation and
b75a7d8f
A
3## others. All Rights Reserved.
4## Stephen F. Booth
5
6## Source directory information
7srcdir = @srcdir@
8top_srcdir = @top_srcdir@
9
10top_builddir = ../..
11
12include $(top_builddir)/icudefs.mk
13
14## Build directory information
15subdir = tools/ctestfw
16
17## Extra files to remove for 'make clean'
374ca955 18CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
b75a7d8f
A
19
20## Target information
21
22ifneq ($(ENABLE_STATIC),)
374ca955 23TARGET = $(LIBSICU)$(CTESTFW_STUBNAME)$(ICULIBSUFFIX).$(A)
b75a7d8f
A
24endif
25
374ca955 26CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)
b75a7d8f
A
27DEFS += -DT_CTEST_IMPLEMENTATION
28
29
30ifneq ($(ENABLE_SHARED),)
374ca955 31SO_TARGET = $(LIBICU)$(CTESTFW_STUBNAME)$(ICULIBSUFFIX).$(SO)
b75a7d8f
A
32ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
33endif
34
35ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
36
37DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
38DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
39DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
40
374ca955
A
41LDFLAGS += $(LDFLAGSCTESTFW)
42LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
b75a7d8f 43
374ca955 44OBJECTS = ctest.o tstdtmod.o testdata.o datamap.o
b75a7d8f
A
45
46STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
47
48DEPS = $(OBJECTS:.o=.d)
49
50## List of phony targets
51.PHONY : all all-local install install-local clean clean-local \
52distclean distclean-local dist dist-local check check-local
53
54## Clear suffix list
55.SUFFIXES :
56
57## List of standard targets
58all: all-local
59install: install-local
60clean: clean-local
61distclean : distclean-local
62dist: dist-local
63check: all check-local
64
65all-local: $(ALL_TARGETS)
66
67install-local: install-library
68
69install-library: all-local
70#echo This doesn't need to be installed normally
71# $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
72#ifneq ($(ENABLE_STATIC),)
73# $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
74#endif
75#ifneq ($(ENABLE_SHARED),)
76# $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)/$(FINAL_SO_TARGET)
77#ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
78# cd $(DESTDIR)$(libdir) && $(RM) $(MIDDLE_SO_TARGET) && ln -s $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET)
79# cd $(DESTDIR)$(libdir) && $(RM) $(SO_TARGET) && ln -s $(FINAL_SO_TARGET) $(SO_TARGET)
80#endif
81#endif
82
83dist-local:
84
85clean-local:
86 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
374ca955 87 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
b75a7d8f
A
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): $(TARGET)($(STATIC_OBJECTS))
100 $(RANLIB) $@
101endif
102
103ifneq ($(ENABLE_SHARED),)
104$(FINAL_SO_TARGET): $(OBJECTS)
105 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
106endif
107
108ifeq (,$(MAKECMDGOALS))
109-include $(DEPS)
110else
111ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
112-include $(DEPS)
113endif
114endif