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