* tests/regression/MinimalClassReflection.output: New file.
[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 ## $Id: Makefile.am 8338 2007-08-17 20:03:06Z panzi $
30
31 ## Process this file with automake to produce Makefile.in
32
33 SUBDIRS = \
34         codepatching \
35         jasmin \
36         native \
37         resolving
38
39 JAVA      = $(top_builddir)/src/cacao/cacao
40
41 if WITH_CLASSPATH_GNU
42 JAVAFLAGS = -Xbootclasspath:$(top_builddir)/src/lib/classes/:$(CLASSPATH_CLASSES)
43 else
44 JAVAFLAGS = -Xbootclasspath:$(CLASSPATH_CLASSES)
45 endif
46
47 SOURCE_FILES = \
48         $(srcdir)/HelloWorld.java \
49         $(srcdir)/jctest.java \
50         $(srcdir)/fptest.java \
51         $(srcdir)/fp.java \
52         $(srcdir)/extest.java \
53         $(srcdir)/extest_clinit.java \
54         $(srcdir)/clinitexception.java \
55         $(srcdir)/LoadDisplacementOverflow.java \
56         $(srcdir)/FieldDisplacementOverflow.java \
57         $(srcdir)/StackDisplacementOverflow.java \
58         $(srcdir)/MinimalClassReflection.java
59
60 EXTRA_DIST = \
61         $(SOURCE_FILES) \
62         Test.sh \
63         \
64         jctest.output \
65         fptest.output \
66         fp.output\
67         extest.2output \
68         clinitexception.2output \
69         LoadDisplacementOverflow.output \
70         FieldDisplacementOverflow.output \
71         StackDisplacementOverflow.output \
72         MinimalClassReflection.output
73
74 CLEANFILES = \
75         *.class \
76         *.thisoutput
77
78 SIMPLE_JAVA_TESTS = \
79         HelloWorld
80
81 OUTPUT_JAVA_TESTS = \
82         jctest \
83         fptest \
84         fp \
85         extest \
86         \
87         clinitexception \
88         LoadDisplacementOverflow \
89         FieldDisplacementOverflow \
90         StackDisplacementOverflow \
91         MinimalClassReflection
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: