3f58045eedcb0f4c4994aa60dbe5ea555cba543f
[cacao.git] / tests / regression / Makefile.am
1 ## tests/regression/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 2007, 2008
4 ## CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 ##
6 ## This file is part of CACAO.
7 ##
8 ## This program is free software; you can redistribute it and/or
9 ## modify it under the terms of the GNU General Public License as
10 ## published by the Free Software Foundation; either version 2, or (at
11 ## your option) any later version.
12 ##
13 ## This program is distributed in the hope that it will be useful, but
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 ## General Public License for more details.
17 ##
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program; if not, write to the Free Software
20 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 ## 02110-1301, USA.
22
23
24 SUBDIRS = \
25         base \
26         assertion \
27         bugzilla \
28         jasmin \
29         native \
30         resolving
31
32 JAVA     = $(top_builddir)/src/cacao/cacao
33 JAVACMD  = $(JAVA) -Xbootclasspath:$(BOOTCLASSPATH)
34 JAVACCMD = $(JAVAC) -source 1.5 -target 1.5 -nowarn -bootclasspath $(BOOTCLASSPATH)
35
36 SOURCE_FILES = \
37         $(srcdir)/jctest.java \
38         $(srcdir)/fptest.java \
39         $(srcdir)/fp.java \
40         $(srcdir)/extest.java \
41         $(srcdir)/LoadDisplacementOverflow.java \
42         $(srcdir)/FieldDisplacementOverflow.java \
43         $(srcdir)/StackDisplacementOverflow.java \
44         $(srcdir)/MinimalClassReflection.java \
45         $(srcdir)/TestAnnotations.java
46
47 EXTRA_DIST = \
48         $(SOURCE_FILES) \
49         Test.sh \
50         \
51         jctest.output \
52         fptest.output \
53         fp.output\
54         extest.2output \
55         LoadDisplacementOverflow.output \
56         FieldDisplacementOverflow.output \
57         StackDisplacementOverflow.output \
58         MinimalClassReflection.output \
59         TestAnnotations.output
60
61 CLEANFILES = \
62         *.class \
63         *.thisoutput
64
65 OUTPUT_JAVA_TESTS = \
66         jctest \
67         fptest \
68         fp \
69         extest \
70         \
71         LoadDisplacementOverflow \
72         FieldDisplacementOverflow \
73         StackDisplacementOverflow \
74         MinimalClassReflection \
75         TestAnnotations
76
77 check: build run
78
79 build:
80         $(JAVACCMD) -d . $(SOURCE_FILES)
81
82 run: $(OUTPUT_JAVA_TESTS)
83
84 $(OUTPUT_JAVA_TESTS):
85         @LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(SHELL) $(srcdir)/Test.sh "$(JAVACMD)" $@ $(srcdir)
86
87
88 ## Local variables:
89 ## mode: Makefile
90 ## indent-tabs-mode: t
91 ## c-basic-offset: 4
92 ## tab-width: 8
93 ## compile-command: "automake --add-missing"
94 ## End: