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