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