* Merged with b23caa4282a5.
[cacao.git] / tests / regression / Makefile.am
1 ## tests/regression/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
4 ## C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 ## E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 ## J. Wenninger, Institut f. Computersprachen - TU Wien
7 ##
8 ## This file is part of CACAO.
9 ##
10 ## This program is free software; you can redistribute it and/or
11 ## modify it under the terms of the GNU General Public License as
12 ## published by the Free Software Foundation; either version 2, or (at
13 ## your option) any later version.
14 ##
15 ## This program is distributed in the hope that it will be useful, but
16 ## WITHOUT ANY WARRANTY; without even the implied warranty of
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 ## General Public License for more details.
19 ##
20 ## You should have received a copy of the GNU General Public License
21 ## along with this program; if not, write to the Free Software
22 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 ## 02110-1301, USA.
24
25
26 SUBDIRS = \
27         codepatching \
28         jasmin \
29         native \
30         resolving
31
32 JAVA      = $(top_builddir)/src/cacao/cacao
33
34 if WITH_CLASSPATH_GNU
35 JAVAFLAGS = -Xbootclasspath:$(top_builddir)/src/lib/classes/:$(CLASSPATH_CLASSES)
36 else
37 JAVAFLAGS = -Xbootclasspath:$(CLASSPATH_CLASSES)
38 endif
39
40 SOURCE_FILES = \
41         $(srcdir)/HelloWorld.java \
42         $(srcdir)/jctest.java \
43         $(srcdir)/fptest.java \
44         $(srcdir)/fp.java \
45         $(srcdir)/extest.java \
46         $(srcdir)/clinitexception.java \
47         $(srcdir)/LoadDisplacementOverflow.java \
48         $(srcdir)/FieldDisplacementOverflow.java \
49         $(srcdir)/StackDisplacementOverflow.java \
50         $(srcdir)/MinimalClassReflection.java \
51         $(srcdir)/TestAnnotations.java
52
53 EXTRA_DIST = \
54         $(SOURCE_FILES) \
55         Test.sh \
56         \
57         jctest.output \
58         fptest.output \
59         fp.output\
60         extest.2output \
61         clinitexception.2output \
62         LoadDisplacementOverflow.output \
63         FieldDisplacementOverflow.output \
64         StackDisplacementOverflow.output \
65         MinimalClassReflection.output \
66         TestAnnotations.output
67
68 CLEANFILES = \
69         *.class \
70         *.thisoutput
71
72 SIMPLE_JAVA_TESTS = \
73         HelloWorld
74
75 OUTPUT_JAVA_TESTS = \
76         jctest \
77         fptest \
78         fp \
79         extest \
80         \
81         clinitexception \
82         LoadDisplacementOverflow \
83         FieldDisplacementOverflow \
84         StackDisplacementOverflow \
85         MinimalClassReflection \
86         TestAnnotations
87
88 check: build $(SIMPLE_JAVA_TESTS) $(OUTPUT_JAVA_TESTS)
89
90 build:
91         @$(JAVAC) -d . $(SOURCE_FILES)
92
93 $(SIMPLE_JAVA_TESTS):
94         @echo "$@: "
95         @LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(JAVA) $(JAVAFLAGS) $@
96
97
98 $(OUTPUT_JAVA_TESTS):
99         @LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(SHELL) $(srcdir)/Test.sh "$(JAVA) $(JAVAFLAGS)" $@ $(srcdir)
100
101
102 ## Local variables:
103 ## mode: Makefile
104 ## indent-tabs-mode: t
105 ## c-basic-offset: 4
106 ## tab-width: 8
107 ## compile-command: "automake --add-missing"
108 ## End: