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