0efad83d04ebfc54f8a1881c58a77e4bca237523
[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 5797 2006-10-18 15:27:42Z 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         ifconv \
42         inline \
43         loop \
44         optimizing \
45         profile \
46         schedule \
47         tools \
48         verify \
49         \
50         intrp \
51         alpha \
52         i386 \
53         mips \
54         powerpc \
55         powerpc64 \
56         sparc64 \
57         x86_64
58
59 SUBDIRS = \
60         allocator \
61         tools \
62         verify
63
64 if ENABLE_JIT
65 SUBDIRS += $(ARCH_DIR)
66 ARCH_LIB = $(ARCH_DIR)/libarch.la
67 endif
68
69 if ENABLE_INTRP
70 SUBDIRS += intrp
71 INTRP_LIB = intrp/libintrp.la
72 endif
73
74 if ENABLE_IFCONV
75 SUBDIRS += ifconv
76 IFCONV_LIB = ifconv/libifconv.la
77 endif
78
79 if ENABLE_INLINING
80 SUBDIRS += inline
81 INLINE_LIB = inline/libinline.la
82 endif
83
84 if ENABLE_LOOP
85 SUBDIRS += loop
86 LOOP_LIB = loop/libloop.la
87 endif
88
89 if ENABLE_PROFILING
90 SUBDIRS += profile
91 PROFILE_LIB = profile/libprofile.la
92 endif
93
94 if ENABLE_THREADS
95 RECOMPILE_SOURCES = \
96         recompile.c \
97         recompile.h
98 endif
99
100 if USE_SCHEDULER
101 SUBDIRS += schedule
102 SCHEDULE_LIB = schedule/libschedule.la
103 endif
104
105 if ENABLE_SSA
106 SUBDIRS += optimizing
107 OPTIMIZING_LIB = optimizing/liboptimizing.la
108 endif
109
110 if WITH_BINUTILS_DISASSEMBLER
111 DISASS_SOURCES = disass-common.c
112 else
113 DISASS_SOURCES =
114 endif
115
116 noinst_HEADERS = \
117         abi.h \
118         abi-asm.h \
119         asmpart.h \
120         methodheader.h \
121         patcher.h 
122
123 noinst_LTLIBRARIES = libjit.la
124
125 libjit_la_SOURCES = \
126         code.c \
127         code.h \
128         codegen-common.c \
129         codegen-common.h \
130         disass.h \
131         $(DISASS_SOURCES) \
132         dseg.c \
133         dseg.h \
134         emit-common.c \
135         emit-common.h \
136         icmdtable.inc \
137         jit.c \
138         jit.h \
139         parse.c \
140         parse.h \
141         reg.c \
142         reg.h \
143         $(RECOMPILE_SOURCES) \
144         replace.c \
145         replace.h \
146         show.c \
147         show.h \
148         stack.c \
149         stack.h \
150         stacktrace.c \
151         stacktrace.h
152
153 libjit_la_SOURCES += \
154         cfg.c \
155         cfg.h \
156         reorder.c \
157         reorder.h
158
159 libjit_la_LIBADD = \
160         allocator/liballocator.la \
161         verify/libverify.la \
162         $(ALLOCATOR_LIB) \
163         $(IFCONV_LIB) \
164         $(INLINE_LIB) \
165         $(LOOP_LIB) \
166         $(OPTIMIZING_LIB) \
167         $(PROFILE_LIB) \
168         $(SCHEDULE_LIB) \
169         $(INTRP_LIB) \
170         $(ARCH_LIB)
171
172
173 ## Local variables:
174 ## mode: Makefile
175 ## indent-tabs-mode: t
176 ## c-basic-offset: 4
177 ## tab-width: 8
178 ## compile-command: "automake --add-missing"
179 ## End: