6398b9ddc65ba03fc872a235c1580586fee805bd
[cacao.git] / tests / regression / Makefile.am
1 ## tests/regression/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
4 ## R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
5 ## C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
6 ## 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., 59 Temple Place - Suite 330, Boston, MA
23 ## 02111-1307, USA.
24 ##
25 ## Contact: cacao@complang.tuwien.ac.at
26 ##
27 ## Authors: Christian Thalinger
28 ##
29 ## Changes:
30 ##
31 ## $Id: Makefile.am 4348 2006-01-22 21:38:47Z twisti $
32
33 ## Process this file with automake to produce Makefile.in
34
35 SUBDIRS = codepatching native
36
37 JAVA      = $(top_builddir)/src/cacao/cacao
38 JAVAFLAGS = -Xbootclasspath:$(top_builddir)/src/lib/vm.zip:$(CLASSPATH_PREFIX)/share/classpath/$(GLIBJZ)
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)/extest_clinit.java \
47         $(srcdir)/clinitexception.java \
48         $(srcdir)/LoadDisplacementOverflow.java \
49         $(srcdir)/FieldDisplacementOverflow.java \
50         $(srcdir)/StackDisplacementOverflow.java
51
52 EXTRA_DIST = \
53         $(SOURCE_FILES) \
54         Test.sh \
55         \
56         jctest.output \
57         fptest.output \
58         fp.output\
59         extest.2output \
60         clinitexception.2output \
61         LoadDisplacementOverflow.output \
62         FieldDisplacementOverflow.output \
63         StackDisplacementOverflow.output
64
65 CLEANFILES = \
66         *.class \
67         *.thisoutput
68
69 SIMPLE_JAVA_TESTS = \
70         HelloWorld
71
72 OUTPUT_JAVA_TESTS = \
73         jctest \
74         fptest \
75         fp \
76         extest \
77         \
78         clinitexception \
79         LoadDisplacementOverflow \
80         FieldDisplacementOverflow \
81         StackDisplacementOverflow
82
83 check: build $(SIMPLE_JAVA_TESTS) $(OUTPUT_JAVA_TESTS)
84
85 build:
86         @$(JAVAC) -d . $(SOURCE_FILES)
87
88 $(SIMPLE_JAVA_TESTS):
89         @echo -n "$@: "
90         @$(JAVA) $(JAVAFLAGS) $@
91
92
93 $(OUTPUT_JAVA_TESTS):
94         @$(SHELL) $(srcdir)/Test.sh "$(JAVA) $(JAVAFLAGS)" $@ $(srcdir)
95
96
97 ## Local variables:
98 ## mode: Makefile
99 ## indent-tabs-mode: t
100 ## c-basic-offset: 4
101 ## tab-width: 8
102 ## compile-command: "automake --add-missing"
103 ## End: