1999-08-16 21:50:52 +00:00
|
|
|
## Makefile.in for ICU - tools/ctestfw
|
2003-06-03 20:58:22 +00:00
|
|
|
## Copyright (c) 1999-2003, International Business Machines Corporation and
|
2000-01-17 19:48:20 +00:00
|
|
|
## others. All Rights Reserved.
|
1999-08-16 21:50:52 +00:00
|
|
|
## 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 = ../..
|
|
|
|
|
|
|
|
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'
|
2001-09-28 23:31:01 +00:00
|
|
|
CLEANFILES = *~ $(DEPS) $(ALL_TARGETS)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
## Target information
|
2001-09-28 00:31:53 +00:00
|
|
|
|
|
|
|
ifneq ($(ENABLE_STATIC),)
|
|
|
|
TARGET = $(LIBICU)ctestfw$(ICULIBSUFFIX).a
|
|
|
|
endif
|
|
|
|
|
2002-07-19 21:45:33 +00:00
|
|
|
CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
|
|
|
|
DEFS += -DT_CTEST_IMPLEMENTATION
|
|
|
|
|
|
|
|
|
2001-09-28 00:31:53 +00:00
|
|
|
ifneq ($(ENABLE_SHARED),)
|
|
|
|
SO_TARGET = $(LIBICU)ctestfw$(ICULIBSUFFIX).$(SO)
|
|
|
|
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
|
|
|
|
|
|
|
|
DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
|
|
|
|
DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
|
|
|
|
DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2002-05-01 23:48:15 +00:00
|
|
|
LIBS = $(DEFAULT_LIBS)
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
OBJECTS = ctest.o
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
## 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
|
2003-04-10 17:51:25 +00:00
|
|
|
#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
|
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)
|
2001-09-28 00:31:53 +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),)
|
|
|
|
$(FINAL_SO_TARGET): $(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
|