656f643f260da4df2df42fe37cc6ccbd1ac83c52
[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 5895 2006-11-03 14:03:40Z twisti $
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 if ENABLE_JIT
108 REG_SOURCES = \
109         reg.c \
110         reg.h
111
112 REPLACE_SOURCES = \
113         replace.c \
114         replace.h
115
116 STACK_SOURCES = \
117         stack.c \
118         stack.h
119 endif
120
121 if WITH_BINUTILS_DISASSEMBLER
122 DISASS_SOURCES = disass-common.c
123 else
124 DISASS_SOURCES =
125 endif
126
127 noinst_HEADERS = \
128         abi.h \
129         abi-asm.h \
130         asmpart.h \
131         methodheader.h \
132         patcher.h 
133
134 noinst_LTLIBRARIES = libjit.la
135
136 libjit_la_SOURCES = \
137         code.c \
138         code.h \
139         codegen-common.c \
140         codegen-common.h \
141         disass.h \
142         $(DISASS_SOURCES) \
143         dseg.c \
144         dseg.h \
145         emit-common.c \
146         emit-common.h \
147         icmdtable.inc \
148         jit.c \
149         jit.h \
150         parse.c \
151         parse.h \
152         $(RECOMPILE_SOURCES) \
153         $(REG_SOURCES) \
154         $(REPLACE_SOURCES) \
155         show.c \
156         show.h \
157         $(STACK_SOURCES) \
158         stacktrace.c \
159         stacktrace.h
160
161 libjit_la_SOURCES += \
162         cfg.c \
163         cfg.h
164
165 libjit_la_LIBADD = \
166         allocator/liballocator.la \
167         verify/libverify.la \
168         $(ALLOCATOR_LIB) \
169         $(INLINE_LIB) \
170         $(LOOP_LIB) \
171         $(OPTIMIZING_LIB) \
172         $(PROFILE_LIB) \
173         $(SCHEDULE_LIB) \
174         $(INTRP_LIB) \
175         $(ARCH_LIB)
176
177
178 ## Local variables:
179 ## mode: Makefile
180 ## indent-tabs-mode: t
181 ## c-basic-offset: 4
182 ## tab-width: 8
183 ## compile-command: "automake --add-missing"
184 ## End: