+#******************************************************************************
+#
+# Copyright (C) 1999-2006, International Business Machines
+# Corporation and others. All Rights Reserved.
+#
+#******************************************************************************
## Makefile.in for ICU - tools/ctestfw
-## Copyright (c) 1999-2004, International Business Machines Corporation and
-## others. All Rights Reserved.
## Stephen F. Booth
## Source directory information
top_builddir = ../..
+## All the flags and other definitions are included here.
include $(top_builddir)/icudefs.mk
## Build directory information
## Target information
+TARGET_STUBNAME=$(CTESTFW_STUBNAME)
+
ifneq ($(ENABLE_STATIC),)
-TARGET = $(LIBSICU)$(CTESTFW_STUBNAME)$(ICULIBSUFFIX).$(A)
+TARGET = $(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
endif
-CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)
-DEFS += -DT_CTEST_IMPLEMENTATION
-
-
ifneq ($(ENABLE_SHARED),)
-SO_TARGET = $(LIBICU)$(CTESTFW_STUBNAME)$(ICULIBSUFFIX).$(SO)
-ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
+SO_TARGET = $(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
+ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
endif
ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
+ifneq ($(top_builddir),$(top_srcdir))
+CPPFLAGS += -I$(top_builddir)/common
+endif
+CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil -I$(srcdir) $(LIBCPPFLAGS)
+DEFS += -DT_CTEST_IMPLEMENTATION
LDFLAGS += $(LDFLAGSCTESTFW)
-LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
+LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS)
-OBJECTS = ctest.o tstdtmod.o testdata.o datamap.o
+OBJECTS = ctest.o tstdtmod.o testdata.o datamap.o uperf.o
STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
DEPS = $(OBJECTS:.o=.d)
+-include Makefile.local
+
## List of phony targets
.PHONY : all all-local install install-local clean clean-local \
distclean distclean-local dist dist-local check check-local
install-local: install-library
install-library: all-local
-#echo This doesn't need to be installed normally
-# $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
-#ifneq ($(ENABLE_STATIC),)
-# $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
-#endif
-#ifneq ($(ENABLE_SHARED),)
-# $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)/$(FINAL_SO_TARGET)
-#ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
-# cd $(DESTDIR)$(libdir) && $(RM) $(MIDDLE_SO_TARGET) && ln -s $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET)
-# cd $(DESTDIR)$(libdir) && $(RM) $(SO_TARGET) && ln -s $(FINAL_SO_TARGET) $(SO_TARGET)
-#endif
-#endif
dist-local:
endif
ifneq ($(ENABLE_SHARED),)
-$(FINAL_SO_TARGET): $(OBJECTS)
+$(SHARED_OBJECT): $(OBJECTS)
$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
endif
-include $(DEPS)
endif
endif
+