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