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