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