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