2005-12-02 10:21:39 +00:00
|
|
|
#******************************************************************************
|
|
|
|
#
|
|
|
|
# Copyright (C) 1999-2005, International Business Machines
|
|
|
|
# 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)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2005-12-02 10:21:39 +00:00
|
|
|
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
|
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
|
|
|
|
2004-03-23 06:37:36 +00:00
|
|
|
OBJECTS = ctest.o tstdtmod.o testdata.o datamap.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
|
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),)
|
|
|
|
$(TARGET): $(TARGET)($(STATIC_OBJECTS))
|
|
|
|
$(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)
|
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
|
|
|
|