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