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