* Updated header: Added 2006. Changed address of FSF. Changed email
[cacao.git] / src / vm / jit / Makefile.am
index 7834c9ab118f343d076642b8a094669445540777..5728d0148910e52c945503dacab31833bdf68ce0 100644 (file)
+## src/vm/jit/Makefile.am
+##
+## Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
+## C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
+## E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
+## J. Wenninger, Institut f. Computersprachen - TU Wien
+##
+## This file is part of CACAO.
+##
+## This program is free software; you can redistribute it and/or
+## modify it under the terms of the GNU General Public License as
+## published by the Free Software Foundation; either version 2, or (at
+## your option) any later version.
+##
+## This program is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+## General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+## 02110-1301, USA.
+##
+## Contact: cacao@cacaojvm.org
+##
+## Authors: Christian Thalinger
+##
+## Changes:
+##
+## $Id: Makefile.am 4357 2006-01-22 23:33:38Z twisti $
+
 ## Process this file with automake to produce Makefile.in
 
-# $Id: Makefile.am 696 2003-12-06 20:10:05Z edwin $
+AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)/$(OS_DIR)
+
+SUBDIRS = \
+       allocator \
+       loop \
+       tools \
+       verify
+
+DIST_SUBDIRS = \
+       allocator \
+       inline \
+       loop \
+       schedule \
+       tools \
+       verify \
+       intrp \
+       alpha \
+       i386 \
+       mips \
+       powerpc \
+       x86_64
+
+if ENABLE_JIT
+SUBDIRS += $(ARCH_DIR)
+ARCH_LIB = $(ARCH_DIR)/libarch.la
+endif
 
+if ENABLE_INTRP
+SUBDIRS += intrp
+INTRP_LIB = intrp/libintrp.la
+endif
 
-SUBDIRS = . loop @ARCH_DIR@
-DIST_SUBDIRS = loop alpha i386 mips powerpc x86_64
+if USE_INLINING
+SUBDIRS += inline
+INLINE_LIB = inline/libinline.la
+endif
+
+if USE_SCHEDULER
+SUBDIRS += schedule
+SCHEDULE_LIB = schedule/libschedule.la
+endif
+
+if WITH_BINUTILS_DISASSEMBLER
+DISASS_OBJ = disass-common.c
+else
+DISASS_OBJ =
+endif
+
+noinst_HEADERS = \
+       abi.h \
+       asmpart.h \
+       methodheader.h \
+       patcher.h 
 
-INCLUDES = -I$(top_srcdir)/jit/@ARCH_DIR@ -I$(top_srcdir)/jit
+noinst_LTLIBRARIES = libjit.la
 
-EXTRA_DIST = \
+libjit_la_SOURCES = \
+       codegen-common.c \
+       codegen-common.h \
+       disass.h \
+       $(DISASS_OBJ) \
+       dseg.c \
+       dseg.h \
        jit.c \
        jit.h \
-       codegen.inc \
        parse.c \
-       reg.inc \
-       stack.c \
-       inline.c \
-       sets.c \
-       sets.h \
-       parseRT.c \
-       parseRTprint.h \
-       parseRTstats.c \
-       typecheck.c
-
-noinst_HEADERS = \
        parse.h \
-       stack.h \
+       reg.c \
        reg.h \
-       inline.h \
-       parseRT.h \
-       parseRTstats.h
-
-noinst_LIBRARIES = libjit.a
+       stack.c \
+       stack.h \
+       stacktrace.c \
+       stacktrace.h
 
-libjit_a_SOURCES = jit.c parse.c stack.c inline.c sets.c parseRT.c parseRTstats.c typecheck.c
+libjit_la_LIBADD = \
+       allocator/liballocator.la \
+       $(INLINE_LIB) \
+       loop/libloop.la \
+       $(SCHEDULE_LIB) \
+       verify/libverify.la \
+       $(INTRP_LIB) \
+       $(ARCH_LIB)
 
-all-local:
-       $(MAKE) $(AM_MAKEFLAGS) -C .. jit/@ARCH_DIR@/offsets.h
 
 ## Local variables:
 ## mode: Makefile