* src/vm/global.h (CACAO_VM_ZIP_PATH): Set correctly for ifndef
[cacao.git] / src / native / Makefile.am
1 ## src/native/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 ## Changes:
30 ##
31 ## $Id: Makefile.am 4416 2006-02-03 22:03:30Z twisti $
32
33 ## Process this file with automake to produce Makefile.in
34
35 AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_builddir)/src
36
37 SUBDIRS = \
38         include \
39         vm
40
41 CLEANFILES =
42
43 if ENABLE_JVMTI
44 SUBDIRS += jvmti
45 JVMTI_LIB = jvmti/libjvmti.la
46 endif
47
48 if ENABLE_STATICVM
49 SUBDIRS += tools
50 CLEANFILES += nativetable.inc
51
52 $(srcdir)/native.c: nativetable.inc
53
54 noinst_LTLIBRARIES = libnative.la
55
56 libnative_la_SOURCES = \
57         jni.c \
58         jni.h \
59         native.c \
60         native.h
61
62 libnative_la_LIBADD = \
63         vm/libnativevm.la \
64         $(JVMTI_LIB)
65
66 if ENABLE_ZLIB
67 VM_ZIP = $(top_builddir)/src/lib/$(VM_ZIP_FILE)
68 else
69 VM_ZIP = $(top_builddir)/src/lib/classes/
70 endif
71
72 GLIBJ_ZIP = $(CLASSPATH_PREFIX)/share/classpath/$(GLIBJZ)
73
74 CLASSPATH = $(VM_ZIP):$(GLIBJ_ZIP)
75
76 nativetable.inc: $(VM_ZIP) $(GLIBJ_ZIP) $(top_builddir)/src/native/tools/gennativetable
77         $(top_builddir)/src/native/tools/gennativetable -bootclasspath $(CLASSPATH) > $(top_builddir)/src/native/nativetable.inc
78 endif
79
80
81 ## Local variables:
82 ## mode: Makefile
83 ## indent-tabs-mode: t
84 ## c-basic-offset: 4
85 ## tab-width: 8
86 ## compile-command: "automake --add-missing"
87 ## End: