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