* Removed all Id tags.
[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         loop \
34         optimizing \
35         schedule \
36         verify \
37         \
38         intrp \
39         alpha \
40         arm \
41         i386 \
42         m68k \
43         mips \
44         parisc \
45         powerpc \
46         powerpc64 \
47         s390 \
48         sparc64 \
49         x86_64
50
51 SUBDIRS = \
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         md.h \
135         methodheader.h \
136         patcher.h 
137
138 noinst_LTLIBRARIES = \
139         libjit.la
140
141 libjit_la_SOURCES = \
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         icmdtable.inc \
153         jit.c \
154         jit.h \
155         parse.c \
156         parse.h \
157         patcher-common.c \
158         patcher-common.h \
159         $(RECOMPILE_SOURCES) \
160         $(REG_SOURCES) \
161         $(REPLACE_SOURCES) \
162         show.c \
163         show.h \
164         $(STACK_SOURCES) \
165         stacktrace.c \
166         stacktrace.h \
167         trace.c \
168         trace.h
169
170 libjit_la_SOURCES += \
171         cfg.c \
172         cfg.h
173
174 libjit_la_LIBADD = \
175         allocator/liballocator.la \
176         $(ALLOCATOR_LIB) \
177         $(INLINE_LIB) \
178         $(LOOP_LIB) \
179         $(OPTIMIZING_LIB) \
180         $(PROFILE_LIB) \
181         $(SCHEDULE_LIB) \
182         $(VERIFIER_LIB) \
183         $(INTRP_LIB) \
184         $(ARCH_LIB)
185
186
187 ## Local variables:
188 ## mode: Makefile
189 ## indent-tabs-mode: t
190 ## c-basic-offset: 4
191 ## tab-width: 8
192 ## compile-command: "automake --add-missing"
193 ## End: