* .hgignore: Removed tests/regression/codepatching/*.class.
[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         assertion \
26         bugzilla \
27         jasmin \
28         junit \
29         native \
30         resolving
31
32 JAVA     = $(top_builddir)/src/cacao/cacao
33 JAVACMD  = $(JAVA) -Xbootclasspath:$(BOOTCLASSPATH)
34 JAVACCMD = $(JAVAC) -bootclasspath $(BOOTCLASSPATH)
35
36 SOURCE_FILES = \
37         $(srcdir)/HelloWorld.java \
38         $(srcdir)/jctest.java \
39         $(srcdir)/fptest.java \
40         $(srcdir)/fp.java \
41         $(srcdir)/extest.java \
42         $(srcdir)/LoadDisplacementOverflow.java \
43         $(srcdir)/FieldDisplacementOverflow.java \
44         $(srcdir)/StackDisplacementOverflow.java \
45         $(srcdir)/MinimalClassReflection.java \
46         $(srcdir)/TestAnnotations.java
47
48 EXTRA_DIST = \
49         $(SOURCE_FILES) \
50         Test.sh \
51         \
52         jctest.output \
53         fptest.output \
54         fp.output\
55         extest.2output \
56         LoadDisplacementOverflow.output \
57         FieldDisplacementOverflow.output \
58         StackDisplacementOverflow.output \
59         MinimalClassReflection.output \
60         TestAnnotations.output
61
62 CLEANFILES = \
63         *.class \
64         *.thisoutput
65
66 SIMPLE_JAVA_TESTS = \
67         HelloWorld
68
69 OUTPUT_JAVA_TESTS = \
70         jctest \
71         fptest \
72         fp \
73         extest \
74         \
75         LoadDisplacementOverflow \
76         FieldDisplacementOverflow \
77         StackDisplacementOverflow \
78         MinimalClassReflection \
79         TestAnnotations
80
81 check: build $(SIMPLE_JAVA_TESTS) $(OUTPUT_JAVA_TESTS)
82
83 build:
84         $(JAVACCMD) -d . $(SOURCE_FILES)
85
86 $(SIMPLE_JAVA_TESTS):
87         @echo "$@: "
88         @LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(JAVACMD) $@
89
90 $(OUTPUT_JAVA_TESTS):
91         @LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(SHELL) $(srcdir)/Test.sh "$(JAVACMD)" $@ $(srcdir)
92
93
94 ## Local variables:
95 ## mode: Makefile
96 ## indent-tabs-mode: t
97 ## c-basic-offset: 4
98 ## tab-width: 8
99 ## compile-command: "automake --add-missing"
100 ## End: