* src/vm/jit/powerpc/codegen.h (MI_and, MI_anddot, MI_andi, MI_lwarx)
[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         icmdtable.inc \
157         jit.c \
158         jit.h \
159         linenumbertable.c \
160         linenumbertable.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: