* Moved all files from vmcore/ to vm/.
[cacao.git] / src / vm / Makefile.am
1 ## src/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 -I$(top_srcdir)/contrib/vmlog -I$(top_srcdir)/src/native
25
26 LIBS =
27
28 SUBDIRS = jit
29
30 if ENABLE_ASSERTION
31 ASSERTION_SOURCES = \
32         assertion.c \
33         assertion.h
34 endif
35
36 if ENABLE_CYCLES_STATS
37 CYCLES_STATS_SOURCES = \
38         cycles-stats.c \
39         cycles-stats.h
40 endif
41
42 if ENABLE_JAVASE
43 if ENABLE_ANNOTATIONS
44 ANNOTATION_SOURCES = \
45         annotation.c \
46         annotation.h
47 endif
48
49 STACKMAP_SOURCES = \
50         stackmap.c \
51         stackmap.h
52 endif
53
54 if ENABLE_RT_TIMING
55 RT_TIMING_SOURCES = \
56         rt-timing.c \
57         rt-timing.h
58 endif
59
60 if ENABLE_STATISTICS
61 STATISTICS_SOURCES = \
62         statistics.c \
63         statistics.h
64 endif
65
66 if ENABLE_ZLIB
67 ZLIB_SOURCES = \
68         zip.c \
69         zip.h
70 endif
71
72 noinst_HEADERS = \
73         global.h \
74         types.h
75
76 noinst_LTLIBRARIES = \
77         libvm.la
78
79 libvm_la_SOURCES = \
80         access.c \
81         access.h \
82         $(ANNOTATION_SOURCES) \
83         array.c \
84         array.h \
85         $(ASSERTION_SOURCES) \
86         builtin.c \
87         builtin.h \
88         builtintable.inc \
89         class.c \
90         class.h \
91         classcache.c \
92         classcache.h \
93         $(CYCLES_STATS_SOURCES) \
94         descriptor.c \
95         descriptor.h \
96         exceptions.cpp \
97         exceptions.hpp \
98         field.c \
99         field.h \
100         finalizer.c \
101         finalizer.h \
102         globals.cpp \
103         globals.hpp \
104         initialize.c \
105         initialize.h \
106         javaobjects.cpp \
107         javaobjects.hpp \
108         jit_interface.h \
109         linker.c \
110         linker.h \
111         loader.c \
112         loader.h \
113         method.c \
114         method.h \
115         options.c \
116         options.h \
117         os.cpp \
118         os.hpp \
119         package.cpp \
120         package.hpp \
121         primitive.cpp \
122         primitive.hpp \
123         primitivecore.c \
124         properties.c \
125         properties.h \
126         references.h \
127         resolve.c \
128         resolve.h \
129         $(RT_TIMING_SOURCES) \
130         signal.c \
131         signallocal.h \
132         $(STACKMAP_SOURCES) \
133         $(STATISTICS_SOURCES) \
134         string.cpp \
135         string.hpp \
136         suck.c \
137         suck.h \
138         utf8.c \
139         utf8.h \
140         vm.cpp \
141         vm.hpp \
142         $(ZLIB_SOURCES)
143
144 libvm_la_LIBADD = \
145         jit/libjit.la
146
147
148 ## Local variables:
149 ## mode: Makefile
150 ## indent-tabs-mode: t
151 ## c-basic-offset: 4
152 ## tab-width: 8
153 ## compile-command: "automake --add-missing"
154 ## End: