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