3e5ff0c848ea46ea8e7ecbeb3ef68d907bb418a7
[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 7382 2007-02-21 20:24:01Z twisti $
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
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         mips \
47         parisc \
48         powerpc \
49         powerpc64 \
50         sparc64 \
51         x86_64 \
52         s390
53
54 SUBDIRS = \
55         optimizing \
56         tools \
57         $(ARCH_DIR)
58
59 ARCH_LIB = \
60         $(ARCH_DIR)/libarch.la
61
62 if ENABLE_JIT
63 SUBDIRS += \
64         allocator
65
66 OPTIMIZING_LIB = \
67         optimizing/liboptimizing.la
68 endif
69
70 if ENABLE_INTRP
71 SUBDIRS += \
72         intrp
73
74 INTRP_LIB = \
75         intrp/libintrp.la
76 endif
77
78 if ENABLE_INLINING
79 SUBDIRS += \
80         inline
81
82 INLINE_LIB = \
83         inline/libinline.la
84 endif
85
86 if ENABLE_LOOP
87 SUBDIRS += \
88         loop
89
90 LOOP_LIB = \
91         loop/libloop.la
92 endif
93
94 if USE_SCHEDULER
95 SUBDIRS += \
96         schedule
97
98 SCHEDULE_LIB = \
99         schedule/libschedule.la
100 endif
101
102 REPLACE_SOURCES =
103
104 if ENABLE_JIT
105 REG_SOURCES = \
106         reg.c \
107         reg.h
108
109 REPLACE_SOURCES += \
110         replace.h
111
112 STACK_SOURCES = \
113         stack.c \
114         stack.h
115 endif
116
117 if ENABLE_REPLACEMENT
118 REPLACE_SOURCES += \
119         replace.c
120 endif
121
122 if ENABLE_VERIFIER
123 SUBDIRS += \
124         verify
125
126 VERIFIER_LIB = \
127         verify/libverify.la
128 endif
129
130 if WITH_BINUTILS_DISASSEMBLER
131 DISASS_SOURCES = disass-common.c
132 endif
133
134 noinst_HEADERS = \
135         abi.h \
136         abi-asm.h \
137         asmpart.h \
138         md.h \
139         methodheader.h \
140         patcher.h 
141
142 noinst_LTLIBRARIES = \
143         libjit.la
144
145 libjit_la_SOURCES = \
146         code.c \
147         code.h \
148         codegen-common.c \
149         codegen-common.h \
150         disass.h \
151         $(DISASS_SOURCES) \
152         dseg.c \
153         dseg.h \
154         emit-common.c \
155         emit-common.h \
156         icmdtable.inc \
157         jit.c \
158         jit.h \
159         parse.c \
160         parse.h \
161         $(RECOMPILE_SOURCES) \
162         $(REG_SOURCES) \
163         $(REPLACE_SOURCES) \
164         show.c \
165         show.h \
166         $(STACK_SOURCES) \
167         stacktrace.c \
168         stacktrace.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: