1705453c092ab00e04e9dcdd2db051a155d49e81
[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
37 if WITH_CLASSPATH_CLDC1_1
38 SUBDIRS = \
39         cldc1.1
40
41 NATIVEVM_LIB = \
42         cldc1.1/libnativevmcore.la
43 endif
44
45 if WITH_CLASSPATH_GNU
46 SUBDIRS = \
47         gnu
48
49 NATIVEVM_LIB = \
50         gnu/libnativevmcore.la
51 endif
52
53 if ENABLE_JAVASE
54 CLASSLOADER_SOURCES = \
55         java_lang_ClassLoader.c \
56         java_lang_ClassLoader.h
57
58 JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES = \
59         java_lang_reflect_Constructor.c \
60         java_lang_reflect_Constructor.h
61
62 SUN_MISC_UNSAFE_SOURCES = \
63         sun_misc_Unsafe.c
64 endif
65
66 noinst_LTLIBRARIES = \
67         libnativevm.la
68
69 libnativevm_la_SOURCES = \
70         nativevm.c \
71         nativevm.h \
72         \
73         java_lang_Class.c \
74         java_lang_Class.h \
75         $(CLASSLOADER_SOURCES) \
76         java_lang_Object.c \
77         java_lang_Object.h \
78         java_lang_Runtime.c \
79         java_lang_Runtime.h \
80         java_lang_String.c \
81         java_lang_String.h \
82         java_lang_Thread.c \
83         java_lang_Thread.h \
84         $(JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES) \
85         $(SUN_MISC_UNSAFE_SOURCES)
86
87 libnativevm_la_LIBADD = \
88         $(NATIVEVM_LIB)
89
90
91 ## Local variables:
92 ## mode: Makefile
93 ## indent-tabs-mode: t
94 ## c-basic-offset: 4
95 ## tab-width: 8
96 ## compile-command: "automake --add-missing"
97 ## End: