* Merged with default branch at rev 16f3633aaa5a.
[cacao.git] / src / native / vm / Makefile.am
1 ## src/native/vm/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 2007 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
26 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
27
28 LIBS =
29
30 DIST_SUBDIRS = \
31         cldc1.1 \
32         gnu \
33         sun
34
35 if WITH_CLASSPATH_CLDC1_1
36 SUBDIRS = \
37         cldc1.1
38
39 NATIVEVM_LIB = \
40         cldc1.1/libnativevmcore.la
41 endif
42
43 if WITH_CLASSPATH_GNU
44 SUBDIRS = \
45         gnu
46
47 NATIVEVM_LIB = \
48         gnu/libnativevmcore.la
49 endif
50
51 if WITH_CLASSPATH_SUN
52 SUBDIRS = \
53         sun
54
55 NATIVEVM_LIB = \
56         sun/libnativevmcore.la
57 endif
58
59 if ENABLE_JAVASE
60 REFLECT_SOURCES = \
61         reflect.c \
62         reflect.h
63
64 CLASSLOADER_SOURCES = \
65         java_lang_ClassLoader.c \
66         java_lang_ClassLoader.h
67
68 JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES = \
69         java_lang_reflect_Constructor.c \
70         java_lang_reflect_Constructor.h
71
72 JAVA_LANG_REFLECT_METHOD_SOURCES = \
73         java_lang_reflect_Method.c \
74         java_lang_reflect_Method.h
75
76 JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES = \
77         java_util_concurrent_atomic_AtomicLong.c \
78         java_util_concurrent_atomic_AtomicLong.h
79
80 SUN_MISC_UNSAFE_SOURCES = \
81         sun_misc_Unsafe.c
82 endif
83
84 noinst_LTLIBRARIES = \
85         libnativevm.la
86
87 libnativevm_la_SOURCES = \
88         nativevm.c \
89         nativevm.h \
90         $(REFLECT_SOURCES) \
91         \
92         java_lang_Class.c \
93         java_lang_Class.h \
94         $(CLASSLOADER_SOURCES) \
95         java_lang_Object.c \
96         java_lang_Object.h \
97         java_lang_Runtime.c \
98         java_lang_Runtime.h \
99         java_lang_String.c \
100         java_lang_String.h \
101         java_lang_Thread.c \
102         java_lang_Thread.h \
103         $(JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES) \
104         $(JAVA_LANG_REFLECT_METHOD_SOURCES) \
105         $(JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES) \
106         $(SUN_MISC_UNSAFE_SOURCES)
107
108 libnativevm_la_LIBADD = \
109         $(NATIVEVM_LIB)
110
111
112 ## Local variables:
113 ## mode: Makefile
114 ## indent-tabs-mode: t
115 ## c-basic-offset: 4
116 ## tab-width: 8
117 ## compile-command: "automake --add-missing"
118 ## End: