Merged trunk and subtype.
[cacao.git] / src / native / vm / Makefile.am
1 ## src/native/vm/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 2007, 2008
4 ## CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 ##
6 ## This file is part of CACAO.
7 ##
8 ## This program is free software; you can redistribute it and/or
9 ## modify it under the terms of the GNU General Public License as
10 ## published by the Free Software Foundation; either version 2, or (at
11 ## your option) any later version.
12 ##
13 ## This program is distributed in the hope that it will be useful, but
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 ## General Public License for more details.
17 ##
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program; if not, write to the Free Software
20 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 ## 02110-1301, USA.
22
23
24 AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)/$(OS_DIR) -I$(top_builddir)/src
25
26 LIBS =
27
28 DIST_SUBDIRS = \
29         cldc1.1 \
30         gnuclasspath \
31         openjdk
32
33 if WITH_JAVA_RUNTIME_LIBRARY_CLDC1_1
34 SUBDIRS = \
35         cldc1.1
36
37 NATIVEVM_LIB = \
38         cldc1.1/libnativevmcore.la
39 endif
40
41 if WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH
42 SUBDIRS = \
43         gnuclasspath
44
45 NATIVEVM_LIB = \
46         gnuclasspath/libnativevmcore.la
47 endif
48
49 if WITH_JAVA_RUNTIME_LIBRARY_OPENJDK
50 SUBDIRS = \
51         openjdk
52
53 NATIVEVM_LIB = \
54         openjdk/libnativevmcore.la
55 endif
56
57 if ENABLE_JAVASE
58 REFLECTION_SOURCES = \
59         reflection.cpp \
60         reflection.hpp
61
62 SUN_MISC_UNSAFE_SOURCES = \
63         sun_misc_Unsafe.cpp
64 endif
65
66 noinst_LTLIBRARIES = \
67         libnativevm.la
68
69 libnativevm_la_SOURCES = \
70         nativevm.c \
71         nativevm.h \
72         $(REFLECTION_SOURCES) \
73         $(SUN_MISC_UNSAFE_SOURCES)
74
75 libnativevm_la_LIBADD = \
76         $(NATIVEVM_LIB)
77
78
79 ## Local variables:
80 ## mode: Makefile
81 ## indent-tabs-mode: t
82 ## c-basic-offset: 4
83 ## tab-width: 8
84 ## compile-command: "automake --add-missing"
85 ## End: