1999-04-07 16:42:40 +02:00
|
|
|
## Process this file with automake to produce Makefile.in.
|
|
|
|
|
2001-04-05 01:38:53 +02:00
|
|
|
AUTOMAKE_OPTIONS = foreign dejagnu
|
1999-04-07 16:42:40 +02:00
|
|
|
|
gxx-include-dir.m4: In all substitutions, leave $(gcc_version) to be expanded by the Makefile.
config:
* gxx-include-dir.m4: In all substitutions, leave $(gcc_version)
to be expanded by the Makefile.
libjava:
* configure.ac: Do not invoke TL_AC_GCC_VERSION. Do not
set tool_include_dir. In all substitutions, leave $(gcc_version)
to be expanded by the Makefile.
* aclocal.m4, configure: Regenerate.
* Makefile.am: Set gcc_version. Replace all uses of
@gcc_version@ with $(gcc_version).
* external/Makefile.am, external/sax/Makefile.am
* external/w3c_dom/Makefile.am, gcj/Makefile.am
* testsuite/Makefile.am: Set gcc_version.
* include/Makefile.am: Set gcc_version and tool_include_dir.
* Makefile.in, external/Makefile.in, external/sax/Makefile.in
* external/w3c_dom/Makefile.in, gcj/Makefile.in, include/Makefile.in
* testsuite/Makefile.in: Regenerate.
From-SVN: r96825
2005-03-21 19:12:32 +01:00
|
|
|
# May be used by various substitution variables.
|
|
|
|
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
|
|
|
|
|
2004-07-16 07:36:35 +02:00
|
|
|
# autoconf2.13's target_alias
|
|
|
|
target_noncanonical = @target_noncanonical@
|
|
|
|
|
1999-04-07 16:42:40 +02:00
|
|
|
# Setup the testing framework, if you have one
|
|
|
|
EXPECT = `if [ -f $(top_builddir)/../expect/expect ] ; then \
|
|
|
|
echo $(top_builddir)/../expect/expect ; \
|
|
|
|
else echo expect ; fi`
|
|
|
|
|
2002-06-24 06:44:53 +02:00
|
|
|
RUNTEST = "`if [ -f $(top_srcdir)/../dejagnu/runtest ] ; then \
|
1999-04-07 16:42:40 +02:00
|
|
|
echo $(top_srcdir)/../dejagnu/runtest ; \
|
2002-06-24 06:44:53 +02:00
|
|
|
else echo runtest; fi` $(AM_RUNTESTFLAGS)"
|
1999-04-07 16:42:40 +02:00
|
|
|
|
2002-06-24 06:44:53 +02:00
|
|
|
## Tell dejagnu whether the interpreter is enabled.
|
|
|
|
AM_RUNTESTFLAGS = INTERPRETER=$(INTERPRETER)
|
2007-01-27 00:22:35 +01:00
|
|
|
|
|
|
|
MYGCJH = gjavah
|
|
|
|
|
|
|
|
.PHONY: compile-tests
|
|
|
|
|
|
|
|
check-am: compile-tests
|
|
|
|
|
|
|
|
compile-tests:
|
|
|
|
if JAVA_MAINTAINER_MODE
|
|
|
|
for test in `cd $(srcdir) > /dev/null; \
|
|
|
|
find libjava.cni libjava.jni libjava.jvmti libjava.lang \
|
|
|
|
libjava.loader libjava.verify -name \*.java`; do \
|
|
|
|
testjar=$(srcdir)/`echo $$test | sed -e 's/\.java$$/\.jar/'`; \
|
|
|
|
testdep=; \
|
|
|
|
genheader=; \
|
|
|
|
case "$$test" in \
|
|
|
|
libjava.loader/dummy.java) \
|
|
|
|
testjar=$(srcdir)/libjava.loader/dummy.class;; \
|
|
|
|
libjava.loader/MyLoader.java) \
|
|
|
|
continue;; \
|
|
|
|
libjava.loader/*.java) \
|
|
|
|
testdep="libjava.loader/MyLoader.java";; \
|
|
|
|
libjava.jni/register2.java) \
|
|
|
|
;; \
|
|
|
|
libjava.jni/*.java) \
|
|
|
|
genheader=-jni;; \
|
|
|
|
libjava.jvmti/*.java|libjava.cni/*.java) \
|
|
|
|
genheader=-cni;; \
|
|
|
|
esac; \
|
|
|
|
if test -f $$testjar; then \
|
|
|
|
if ! test $(srcdir)/$$test -nt $$testjar; then \
|
|
|
|
test -z "$$testdep" && continue; \
|
|
|
|
test $(srcdir)/$$testdep -nt $$testjar || continue; \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
echo Compiling $$test; \
|
|
|
|
testtmpdir=`echo $$test | sed -e 's,/,_,g'`T; \
|
|
|
|
rm -rf $$testtmpdir; $(mkdir_p) $$testtmpdir; \
|
|
|
|
if test -n "$$testdep"; then \
|
|
|
|
$(GCJ) -C -g -w --encoding=UTF-8 -bootclasspath \
|
|
|
|
$(top_builddir)/libgcj-$(gcc_version).jar::$testtmpdir \
|
|
|
|
-d $$testtmpdir $(srcdir)/$$testdep || exit; \
|
|
|
|
fi; \
|
|
|
|
$(GCJ) -C -g -w --encoding=UTF-8 -bootclasspath \
|
|
|
|
$(top_builddir)/libgcj-$(gcc_version).jar:$$testtmpdir \
|
|
|
|
-d $$testtmpdir $(srcdir)/$$test || exit; \
|
|
|
|
case "$$test" in \
|
|
|
|
libjava.loader/dummy.java) \
|
|
|
|
cp $$testtmpdir/dummy.class $$testjar;; \
|
|
|
|
*) \
|
|
|
|
$(JAR) cf $$testjar \
|
|
|
|
`ls $$testtmpdir/*.class \
|
|
|
|
| sed -e 's,^,-C ,;s,/\([^/]*\.class\)$$, \1,'` || exit ;; \
|
|
|
|
esac; \
|
|
|
|
if test -n "$$genheader"; then \
|
|
|
|
$(MYGCJH) $$genheader $$testtmpdir/*.class \
|
|
|
|
-bootclasspath $(top_builddir)/libgcj-$(gcc_version).jar \
|
|
|
|
-d $$testtmpdir/ || exit; \
|
|
|
|
mv $$testtmpdir/*.h $(srcdir)/`dirname $$test`/ 2>/dev/null; \
|
|
|
|
fi; \
|
|
|
|
rm -rf $$testtmpdir; \
|
|
|
|
done
|
|
|
|
endif
|