2005-12-02 10:21:39 +00:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
2011-07-23 00:10:30 +00:00
|
|
|
# Copyright (C) 1999-2011, International Business Machines
|
2005-12-02 10:21:39 +00:00
|
|
|
# Corporation and others. All Rights Reserved.
|
|
|
|
#
|
|
|
|
#******************************************************************************
|
1999-08-16 21:50:52 +00:00
|
|
|
## Makefile.in for ICU - tools/ctestfw
|
|
|
|
## Stephen F. Booth
|
|
|
|
|
2000-10-24 19:50:20 +00:00
|
|
|
## Source directory information
|
1999-08-16 21:50:52 +00:00
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
2000-10-26 19:28:33 +00:00
|
|
|
top_builddir = ../..
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
## All the flags and other definitions are included here.
|
2000-10-26 19:28:33 +00:00
|
|
|
include $(top_builddir)/icudefs.mk
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Build directory information
|
|
|
|
subdir = tools/ctestfw
|
|
|
|
|
|
|
|
## Extra files to remove for 'make clean'
|
2004-04-05 21:25:47 +00:00
|
|
|
CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Target information
|
2001-09-28 00:31:53 +00:00
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
TARGET_STUBNAME=$(CTESTFW_STUBNAME)
|
|
|
|
|
2001-09-28 00:31:53 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2005-12-02 10:21:39 +00:00
|
|
|
TARGET = $(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
|
2001-09-28 00:31:53 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2005-12-02 10:21:39 +00:00
|
|
|
SO_TARGET = $(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
|
2005-09-08 18:39:11 +00:00
|
|
|
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
|
2001-09-28 00:31:53 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
|
|
|
|
|
|
|
|
DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
|
|
|
|
DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
|
|
|
|
DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
|
2007-06-04 05:52:08 +00:00
|
|
|
CFLAGS += $(LIBCFLAGS)
|
|
|
|
CXXFLAGS += $(LIBCXXFLAGS)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2009-09-03 20:40:02 +00:00
|
|
|
CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(srcdir) $(LIBCPPFLAGS) $(CPPFLAGSCTESTFW)
|
2005-12-02 10:21:39 +00:00
|
|
|
DEFS += -DT_CTEST_IMPLEMENTATION
|
2004-05-06 05:56:22 +00:00
|
|
|
LDFLAGS += $(LDFLAGSCTESTFW)
|
2005-04-18 21:16:37 +00:00
|
|
|
LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2010-05-12 17:56:02 +00:00
|
|
|
OBJECTS = ctest.o tstdtmod.o testdata.o datamap.o uperf.o ucln_ct.o
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2001-09-28 00:31:53 +00:00
|
|
|
STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
DEPS = $(OBJECTS:.o=.d)
|
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
-include Makefile.local
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
## List of phony targets
|
|
|
|
.PHONY : all all-local install install-local clean clean-local \
|
|
|
|
distclean distclean-local dist dist-local check check-local
|
|
|
|
|
|
|
|
## Clear suffix list
|
|
|
|
.SUFFIXES :
|
|
|
|
|
|
|
|
## List of standard targets
|
|
|
|
all: all-local
|
|
|
|
install: install-local
|
|
|
|
clean: clean-local
|
|
|
|
distclean : distclean-local
|
|
|
|
dist: dist-local
|
2000-08-01 01:55:54 +00:00
|
|
|
check: all check-local
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2001-09-28 00:31:53 +00:00
|
|
|
all-local: $(ALL_TARGETS)
|
|
|
|
|
|
|
|
install-local: install-library
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2001-09-28 00:31:53 +00:00
|
|
|
install-library: all-local
|
2010-03-29 20:44:11 +00:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
|
|
|
|
ifneq ($(ENABLE_STATIC),)
|
|
|
|
$(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
|
|
|
|
endif
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
|
|
|
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
|
|
|
|
ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
|
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
|
|
|
|
ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
|
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifneq ($(IMPORT_LIB_EXT),)
|
|
|
|
$(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
|
|
|
|
ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
|
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
|
|
|
|
endif
|
|
|
|
ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
|
|
|
|
cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
2000-05-15 22:32:11 +00:00
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
2004-04-05 21:25:47 +00:00
|
|
|
$(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
distclean-local: clean-local
|
2000-10-02 23:37:16 +00:00
|
|
|
$(RMV) Makefile
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-08-01 01:55:54 +00:00
|
|
|
check-local: all-local
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
2001-09-28 00:31:53 +00:00
|
|
|
ifneq ($(ENABLE_STATIC),)
|
2007-07-13 08:10:41 +00:00
|
|
|
$(TARGET): $(STATIC_OBJECTS)
|
|
|
|
$(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
|
2001-09-28 00:31:53 +00:00
|
|
|
$(RANLIB) $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(ENABLE_SHARED),)
|
2005-09-08 18:39:11 +00:00
|
|
|
$(SHARED_OBJECT): $(OBJECTS)
|
2003-02-11 00:13:48 +00:00
|
|
|
$(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
|
2011-11-03 20:48:20 +00:00
|
|
|
ifeq ($(ENABLE_RPATH),YES)
|
|
|
|
ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
|
|
|
|
$(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
|
|
|
|
endif
|
|
|
|
endif
|
2001-09-28 00:31:53 +00:00
|
|
|
endif
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2000-04-13 22:08:07 +00:00
|
|
|
ifeq (,$(MAKECMDGOALS))
|
|
|
|
-include $(DEPS)
|
|
|
|
else
|
2000-04-05 22:14:24 +00:00
|
|
|
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
|
1999-08-16 21:50:52 +00:00
|
|
|
-include $(DEPS)
|
|
|
|
endif
|
2000-04-13 22:08:07 +00:00
|
|
|
endif
|
2005-12-02 10:21:39 +00:00
|
|
|
|