8653f4eb7a5eed2a1e1208723b7f58182ff2019e
[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 8349 2007-08-19 15:16:39Z 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         $(srcdir)/TestAnnotations.java
60
61 EXTRA_DIST = \
62         $(SOURCE_FILES) \
63         Test.sh \
64         \
65         jctest.output \
66         fptest.output \
67         fp.output\
68         extest.2output \
69         clinitexception.2output \
70         LoadDisplacementOverflow.output \
71         FieldDisplacementOverflow.output \
72         StackDisplacementOverflow.output \
73         MinimalClassReflection.output \
74         TestAnnotations.output
75
76 CLEANFILES = \
77         *.class \
78         *.thisoutput
79
80 SIMPLE_JAVA_TESTS = \
81         HelloWorld
82
83 OUTPUT_JAVA_TESTS = \
84         jctest \
85         fptest \
86         fp \
87         extest \
88         \
89         clinitexception \
90         LoadDisplacementOverflow \
91         FieldDisplacementOverflow \
92         StackDisplacementOverflow \
93         MinimalClassReflection \
94         TestAnnotations
95
96 check: build $(SIMPLE_JAVA_TESTS) $(OUTPUT_JAVA_TESTS)
97
98 build:
99         @$(JAVAC) -d . $(SOURCE_FILES)
100
101 $(SIMPLE_JAVA_TESTS):
102         @echo "$@: "
103         @LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(JAVA) $(JAVAFLAGS) $@
104
105
106 $(OUTPUT_JAVA_TESTS):
107         @LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(SHELL) $(srcdir)/Test.sh "$(JAVA) $(JAVAFLAGS)" $@ $(srcdir)
108
109
110 ## Local variables:
111 ## mode: Makefile
112 ## indent-tabs-mode: t
113 ## c-basic-offset: 4
114 ## tab-width: 8
115 ## compile-command: "automake --add-missing"
116 ## End: