2001-10-03 21:48:10 +00:00
|
|
|
## Makefile.in for ICU - test/letest
|
2014-03-08 00:49:39 +00:00
|
|
|
## Copyright (c) 2001-2014, International Business Machines Corporation and
|
2001-10-03 21:48:10 +00:00
|
|
|
## others. All Rights Reserved.
|
|
|
|
|
|
|
|
## Source directory information
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
|
|
|
top_builddir = ../..
|
|
|
|
|
|
|
|
include $(top_builddir)/icudefs.mk
|
|
|
|
|
|
|
|
## Platform-specific setup
|
|
|
|
include @platform_make_fragment@
|
|
|
|
|
|
|
|
## Build directory information
|
|
|
|
subdir = test/letest
|
|
|
|
|
|
|
|
## Extra files to remove for 'make clean'
|
|
|
|
CLEANFILES = *~ $(DEPS)
|
|
|
|
|
|
|
|
## Target information
|
2007-06-22 03:57:45 +00:00
|
|
|
TESTTARGET = letest
|
|
|
|
GENTARGET = gendata
|
2001-10-03 21:48:10 +00:00
|
|
|
|
2006-07-28 22:58:29 +00:00
|
|
|
BUILDDIR := $(CURR_SRCCODE_FULL_DIR)/../../
|
|
|
|
# Simplify the path for Unix
|
|
|
|
BUILDDIR := $(BUILDDIR:test/cintltst/../../=)
|
|
|
|
# Simplify the path for Windows
|
|
|
|
BUILDDIR := $(BUILDDIR:test\\cintltst/../../=)
|
|
|
|
# Simplify the path for Windows 98
|
|
|
|
BUILDDIR := $(BUILDDIR:TEST\\CINTLTST/../../=)
|
|
|
|
|
2011-07-23 00:10:30 +00:00
|
|
|
CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/tools/ctestfw -I$(top_srcdir)/tools/toolutil -I$(top_srcdir)/layout -I$(top_srcdir)/layoutex -I$(top_srcdir)
|
2006-04-07 23:51:55 +00:00
|
|
|
DEFS += -D'U_TOPSRCDIR="$(top_srcdir)/"' -D'U_TOPBUILDDIR="$(BUILDDIR)"'
|
2007-09-29 00:55:19 +00:00
|
|
|
LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) $(LIBCTESTFW) $(LIBICUTOOLUTIL) @LIBS@ @LIB_M@
|
2001-10-03 21:48:10 +00:00
|
|
|
|
2006-04-25 19:16:44 +00:00
|
|
|
COMMONOBJECTS = letsutil.o cmaps.o FontTableCache.o SimpleFontInstance.o PortableFontInstance.o
|
2006-04-07 23:51:55 +00:00
|
|
|
TESTOBJECTS = letest.o
|
2007-06-22 03:57:45 +00:00
|
|
|
CTESTOBJECTS = cfonts.o xmlreader.o cletest.o
|
2001-10-03 21:48:10 +00:00
|
|
|
GENOBJECTS = gendata.o
|
|
|
|
|
|
|
|
OBJECTS = $(COMMONOBJECTS) $(TESTOBJECTS) $(GENOBJECTS)
|
|
|
|
|
|
|
|
DEPS = $(OBJECTS:.o=.d)
|
|
|
|
|
|
|
|
## List of phony targets
|
|
|
|
.PHONY : all all-local install install-local clean clean-local \
|
2014-03-08 00:49:39 +00:00
|
|
|
distclean distclean-local dist dist-local check check-local xcheck xcheck-local
|
2001-10-03 21:48:10 +00:00
|
|
|
|
|
|
|
## Clear suffix list
|
|
|
|
.SUFFIXES :
|
|
|
|
|
|
|
|
## List of standard targets
|
|
|
|
all: all-local
|
|
|
|
install: install-local
|
|
|
|
clean: clean-local
|
|
|
|
distclean : distclean-local
|
|
|
|
dist: dist-local
|
|
|
|
check: all check-local
|
2014-03-08 00:49:39 +00:00
|
|
|
xcheck: all xcheck-local
|
2001-10-03 21:48:10 +00:00
|
|
|
|
|
|
|
all-local: $(TESTTARGET)
|
|
|
|
|
|
|
|
install-local:
|
|
|
|
|
|
|
|
dist-local:
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
|
2007-06-22 03:57:45 +00:00
|
|
|
$(RMV) $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS) $(GENOBJECTS) $(TARGET)
|
2001-10-03 21:48:10 +00:00
|
|
|
|
|
|
|
distclean-local: clean-local
|
|
|
|
$(RMV) Makefile
|
|
|
|
|
|
|
|
check-local: all-local
|
2014-03-08 00:49:39 +00:00
|
|
|
$(INVOKE) ./$(TESTTARGET) $(TEST_OUTPUT_OPTS) $(LETEST_OPTS)
|
|
|
|
|
|
|
|
TESTXML=$(top_builddir)/test-$(TESTTARGET).xml
|
|
|
|
xcheck-local: all-local
|
|
|
|
$(INVOKE) ./$(TESTTARGET) $(TEST_OUTPUT_OPTS) $(LETEST_OPTS) -x $(TESTXML)
|
2001-10-03 21:48:10 +00:00
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) \
|
|
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
2007-06-22 03:57:45 +00:00
|
|
|
$(TESTTARGET) : $(COMMONOBJECTS) $(TESTOBJECTS) $(CTESTOBJECTS)
|
2001-10-03 21:48:10 +00:00
|
|
|
$(LINK.cc) -o $@ $^ $(LIBS)
|
2006-12-16 21:07:01 +00:00
|
|
|
$(POST_BUILD_STEP)
|
2001-10-03 21:48:10 +00:00
|
|
|
|
|
|
|
$(GENTARGET) : $(COMMONOBJECTS) $(GENOBJECTS)
|
|
|
|
$(LINK.cc) -o $@ $^ $(LIBS)
|
2006-12-16 21:07:01 +00:00
|
|
|
$(POST_BUILD_STEP)
|
2001-10-03 21:48:10 +00:00
|
|
|
|
|
|
|
invoke:
|
|
|
|
ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
|
|
|
|
|
2013-04-15 23:54:51 +00:00
|
|
|
gen-data: $(GENTARGET)
|
|
|
|
ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) ./$(GENTARGET) $(top_srcdir)/test/testdata/letest.xml $(srcdir)/gendata.xml
|
|
|
|
|
2001-10-03 21:48:10 +00:00
|
|
|
ifeq (,$(MAKECMDGOALS))
|
|
|
|
-include $(DEPS)
|
|
|
|
else
|
|
|
|
ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
|
2002-02-18 22:07:50 +00:00
|
|
|
ifneq ($(patsubst %install,,$(MAKECMDGOALS)),)
|
2001-10-03 21:48:10 +00:00
|
|
|
-include $(DEPS)
|
|
|
|
endif
|
|
|
|
endif
|
2002-02-06 02:08:02 +00:00
|
|
|
endif
|