a968ac0d4929e509f84fb8d95a2527f5d622dfdf
[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 7344 2007-02-13 12:23:54Z ajordan $
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 else
133 DISASS_SOURCES =
134 endif
135
136 noinst_HEADERS = \
137         abi.h \
138         abi-asm.h \
139         asmpart.h \
140         md.h \
141         methodheader.h \
142         patcher.h 
143
144 noinst_LTLIBRARIES = \
145         libjit.la
146
147 libjit_la_SOURCES = \
148         code.c \
149         code.h \
150         codegen-common.c \
151         codegen-common.h \
152         disass.h \
153         $(DISASS_SOURCES) \
154         dseg.c \
155         dseg.h \
156         emit-common.c \
157         emit-common.h \
158         icmdtable.inc \
159         jit.c \
160         jit.h \
161         parse.c \
162         parse.h \
163         $(RECOMPILE_SOURCES) \
164         $(REG_SOURCES) \
165         $(REPLACE_SOURCES) \
166         show.c \
167         show.h \
168         $(STACK_SOURCES) \
169         stacktrace.c \
170         stacktrace.h
171
172 libjit_la_SOURCES += \
173         cfg.c \
174         cfg.h
175
176 libjit_la_LIBADD = \
177         allocator/liballocator.la \
178         $(ALLOCATOR_LIB) \
179         $(INLINE_LIB) \
180         $(LOOP_LIB) \
181         $(OPTIMIZING_LIB) \
182         $(PROFILE_LIB) \
183         $(SCHEDULE_LIB) \
184         $(VERIFIER_LIB) \
185         $(INTRP_LIB) \
186         $(ARCH_LIB)
187
188
189 ## Local variables:
190 ## mode: Makefile
191 ## indent-tabs-mode: t
192 ## c-basic-offset: 4
193 ## tab-width: 8
194 ## compile-command: "automake --add-missing"
195 ## End: