* Really support build dirs.
[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 3698 2005-11-17 18:40:04Z twisti $
32
33 ## Process this file with automake to produce Makefile.in
34
35 JAVA      = $(top_builddir)/src/cacao/cacao
36 JAVAFLAGS = -Xbootclasspath:$(top_builddir)/src/lib/vm.zip:$(CLASSPATH_INSTALL_DIR)/share/classpath/$(GLIBJZ)
37 JAVAC     = jikes -classpath $(CLASSPATH_INSTALL_DIR)/share/classpath/$(GLIBJZ) -nowarn
38
39 CLEANFILES = \
40         *.class \
41         *.thisoutput
42
43 SIMPLE_JAVA_TESTS = \
44         HelloWorld
45
46 OUTPUT_JAVA_TESTS = \
47         jctest \
48         fptest \
49         fp \
50         extest \
51         \
52         clinitexception \
53         LoadDisplacementOverflow \
54         FieldDisplacementOverflow \
55         StackDisplacementOverflow
56
57 checkall: $(SIMPLE_JAVA_TESTS) $(OUTPUT_JAVA_TESTS)
58
59 $(SIMPLE_JAVA_TESTS):
60         @$(JAVAC) -d . $(srcdir)/$@.java
61         @echo -n "$@: "
62         @$(JAVA) $(JAVAFLAGS) $@
63
64
65 $(OUTPUT_JAVA_TESTS):
66         @$(JAVAC) -d . $(srcdir)/$@.java
67         @$(SHELL) $(srcdir)/Test.sh "$(JAVA) $(JAVAFLAGS)" $@ $(srcdir)
68
69
70 ## Local variables:
71 ## mode: Makefile
72 ## indent-tabs-mode: t
73 ## c-basic-offset: 4
74 ## tab-width: 8
75 ## compile-command: "automake --add-missing"
76 ## End: