1 #******************************************************************************
3 # Copyright (C) 1999-2007, International Business Machines
4 # Corporation and others. All Rights Reserved.
6 #******************************************************************************
7 ## Makefile.in for ICU - tools/ctestfw
10 ## Source directory information
12 top_srcdir = @top_srcdir@
16 ## All the flags and other definitions are included here.
17 include $(top_builddir)/icudefs.mk
19 ## Build directory information
20 subdir = tools/ctestfw
22 ## Extra files to remove for 'make clean'
23 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
27 TARGET_STUBNAME=$(CTESTFW_STUBNAME)
29 ifneq ($(ENABLE_STATIC),)
30 TARGET = $(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
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)
38 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
40 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
41 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
42 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
43 CFLAGS += $(LIBCFLAGS)
44 CXXFLAGS += $(LIBCXXFLAGS)
46 ifneq ($(top_builddir),$(top_srcdir))
47 CPPFLAGS += -I$(top_builddir)/common
49 CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(srcdir) $(LIBCPPFLAGS)
50 DEFS += -DT_CTEST_IMPLEMENTATION
51 LDFLAGS += $(LDFLAGSCTESTFW)
52 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS)
54 OBJECTS = ctest.o tstdtmod.o testdata.o datamap.o uperf.o dbgutil.o udbgutil.o
56 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
58 DEPS = $(OBJECTS:.o=.d)
60 -include Makefile.local
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
69 ## List of standard targets
71 install: install-local
73 distclean : distclean-local
75 check: all check-local
77 all-local: $(ALL_TARGETS)
79 install-local: install-library
81 install-library: all-local
86 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
87 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
89 distclean-local: clean-local
92 check-local: all-local
94 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
96 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
98 ifneq ($(ENABLE_STATIC),)
99 $(TARGET): $(STATIC_OBJECTS)
100 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
104 ifneq ($(ENABLE_SHARED),)
105 $(SHARED_OBJECT): $(OBJECTS)
106 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
109 ifeq (,$(MAKECMDGOALS))
112 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)