* src/vm/jit/methodtree.c: New file.
[cacao.git] / src / vm / jit / Makefile.am
1 ## src/vm/jit/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
25
26 LIBS =
27
28 DIST_SUBDIRS = \
29         allocator \
30         inline \
31         ir \
32         loop \
33         optimizing \
34         schedule \
35         verify \
36         \
37         intrp \
38         alpha \
39         arm \
40         i386 \
41         m68k \
42         mips \
43         parisc \
44         powerpc \
45         powerpc64 \
46         s390 \
47         sparc64 \
48         x86_64
49
50 SUBDIRS = \
51         ir \
52         optimizing \
53         $(ARCH_DIR)
54
55 ARCH_LIB = \
56         $(ARCH_DIR)/libarch.la
57
58 if ENABLE_JIT
59 SUBDIRS += \
60         allocator
61
62 OPTIMIZING_LIB = \
63         optimizing/liboptimizing.la
64 endif
65
66 if ENABLE_INTRP
67 SUBDIRS += \
68         intrp
69
70 INTRP_LIB = \
71         intrp/libintrp.la
72 endif
73
74 if ENABLE_INLINING
75 SUBDIRS += \
76         inline
77
78 INLINE_LIB = \
79         inline/libinline.la
80 endif
81
82 if ENABLE_LOOP
83 SUBDIRS += \
84         loop
85
86 LOOP_LIB = \
87         loop/libloop.la
88 endif
89
90 if USE_SCHEDULER
91 SUBDIRS += \
92         schedule
93
94 SCHEDULE_LIB = \
95         schedule/libschedule.la
96 endif
97
98 REPLACE_SOURCES =
99
100 if ENABLE_JIT
101 REG_SOURCES = \
102         reg.c \
103         reg.h
104
105 REPLACE_SOURCES += \
106         replace.h
107
108 STACK_SOURCES = \
109         stack.c \
110         stack.h
111 endif
112
113 if ENABLE_REPLACEMENT
114 REPLACE_SOURCES += \
115         replace.c
116 endif
117
118 if ENABLE_VERIFIER
119 SUBDIRS += \
120         verify
121
122 VERIFIER_LIB = \
123         verify/libverify.la
124 endif
125
126 if WITH_BINUTILS_DISASSEMBLER
127 DISASS_SOURCES = disass-common.c
128 endif
129
130 noinst_HEADERS = \
131         abi.h \
132         abi-asm.h \
133         asmpart.h \
134         methodheader.h
135
136 noinst_LTLIBRARIES = \
137         libjit.la
138
139 libjit_la_SOURCES = \
140         argument.c \
141         argument.h \
142         code.c \
143         code.h \
144         codegen-common.c \
145         codegen-common.h \
146         disass.h \
147         $(DISASS_SOURCES) \
148         dseg.c \
149         dseg.h \
150         emit-common.c \
151         emit-common.h \
152         exceptiontable.c \
153         exceptiontable.h \
154         icmdtable.inc \
155         jit.c \
156         jit.h \
157         linenumbertable.c \
158         linenumbertable.h \
159         methodtree.c \
160         methodtree.h \
161         parse.c \
162         parse.h \
163         patcher-common.c \
164         patcher-common.h \
165         $(RECOMPILE_SOURCES) \
166         $(REG_SOURCES) \
167         $(REPLACE_SOURCES) \
168         show.c \
169         show.h \
170         $(STACK_SOURCES) \
171         stacktrace.c \
172         stacktrace.h \
173         trace.c \
174         trace.h
175
176 libjit_la_SOURCES += \
177         cfg.c \
178         cfg.h
179
180 libjit_la_LIBADD = \
181         allocator/liballocator.la \
182         $(INLINE_LIB) \
183         ir/libir.la \
184         $(LOOP_LIB) \
185         $(OPTIMIZING_LIB) \
186         $(PROFILE_LIB) \
187         $(SCHEDULE_LIB) \
188         $(VERIFIER_LIB) \
189         $(INTRP_LIB) \
190         $(ARCH_LIB)
191
192 if ENABLE_PYTHON
193 libjit_la_SOURCES += \
194         python.c
195 AM_CPPFLAGS += \
196         @PYTHON_CSPEC@
197 LIBS += \
198         @PYTHON_LSPEC@
199 endif
200
201
202 ## Local variables:
203 ## mode: Makefile
204 ## indent-tabs-mode: t
205 ## c-basic-offset: 4
206 ## tab-width: 8
207 ## compile-command: "automake --add-missing"
208 ## End: