PR156: Preparation
[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.cpp \
33         assertion.hpp
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.cpp \
46         annotation.hpp
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.cpp \
69         zip.hpp
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.cpp \
81         access.hpp \
82         $(ANNOTATION_SOURCES) \
83         array.cpp \
84         array.hpp \
85         $(ASSERTION_SOURCES) \
86         breakpoint.hpp \
87         class.cpp \
88         class.hpp \
89         classcache.cpp \
90         classcache.hpp \
91         $(CYCLES_STATS_SOURCES) \
92         descriptor.cpp \
93         descriptor.hpp \
94         exceptions.cpp \
95         exceptions.hpp \
96         field.cpp \
97         field.hpp \
98         finalizer.cpp \
99         finalizer.hpp \
100         globals.cpp \
101         globals.hpp \
102         hook.cpp \
103         hook.hpp \
104         initialize.cpp \
105         initialize.hpp \
106         javaobjects.cpp \
107         javaobjects.hpp \
108         linker.cpp \
109         linker.hpp \
110         loader.cpp \
111         loader.hpp \
112         method.cpp \
113         method.hpp \
114         options.c \
115         options.h \
116         os.cpp \
117         os.hpp \
118         package.cpp \
119         package.hpp \
120         primitive.cpp \
121         primitive.hpp \
122         properties.cpp \
123         properties.hpp \
124         references.h \
125         resolve.cpp \
126         resolve.hpp \
127         $(RT_TIMING_SOURCES) \
128         signal.cpp \
129         signallocal.hpp \
130         $(STACKMAP_SOURCES) \
131         $(STATISTICS_SOURCES) \
132         string.cpp \
133         string.hpp \
134         suck.cpp \
135         suck.hpp \
136         utf8.c \
137         utf8.h \
138         vftbl.hpp \
139         vm.cpp \
140         vm.hpp \
141         $(ZLIB_SOURCES)
142
143 libvm_la_LIBADD = \
144         jit/libjit.la
145
146
147 ## Local variables:
148 ## mode: Makefile
149 ## indent-tabs-mode: t
150 ## c-basic-offset: 4
151 ## tab-width: 8
152 ## compile-command: "automake --add-missing"
153 ## End: