* Added ENABLE_INTRP stuff.
[cacao.git] / src / vm / jit / Makefile.am
index 6fec454514f083ff4f8199a704c0edf0dee89ffb..58b48d0645117ac507314a3e94e8ca5a139a8ce1 100644 (file)
+## src/vm/jit/Makefile.am
+##
+## Copyright (C) 1996-2005 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., 59 Temple Place - Suite 330, Boston, MA
+## 02111-1307, USA.
+##
+## Contact: cacao@complang.tuwien.ac.at
+##
+## Authors: Christian Thalinger
+##
+## Changes:
+##
+## $Id: Makefile.am 3143 2005-09-05 15:14:32Z twisti $
+
 ## Process this file with automake to produce Makefile.in
 
-# $Id: Makefile.am 618 2003-11-13 09:39:28Z stefan $
+INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)/$(OS_DIR)
 
+SUBDIRS = loop tools verify
 
-SUBDIRS = . loop @ARCH_DIR@
-DIST_SUBDIRS = loop alpha i386 mips powerpc x86_64
+DIST_SUBDIRS = \
+       inline \
+       loop \
+       schedule \
+       tools \
+       verify \
+       intrp \
+       alpha \
+       arm \
+       i386 \
+       mips \
+       powerpc \
+       x86_64
 
-INCLUDES = -I$(top_srcdir)/jit/@ARCH_DIR@ -I$(top_srcdir)/jit
+if ENABLE_INTRP
+SUBDIRS += intrp
+INTRP_LIB = intrp/libintrp.la
+else
+SUBDIRS += $(ARCH_DIR)
+ARCH_LIB = $(ARCH_DIR)/libarch.la
+endif
 
-EXTRA_DIST = \
-       jit.c \
-       jit.h \
+if USE_INLINING
+SUBDIRS += inline
+INLINE_LIB = inline/libinline.la
+endif
+
+if USE_SCHEDULER
+SUBDIRS += schedule
+SCHEDULE_LIB = schedule/libschedule.la
+endif
+
+noinst_HEADERS = \
+       asmpart.h \
        codegen.inc \
-       parse.c \
+       codegen.inc.h \
+       lsra.inc \
+       lsra.h \
+       patcher.h \
        reg.inc \
-       stack.c \
-       inline.c \
-       sets.c \
-       sets.h \
-       parseRT.c \
-       parseRTprint.h \
-       parseRTstats.c
+       reg.h
 
-noinst_HEADERS = \
+noinst_LTLIBRARIES = libjit.la
+
+libjit_la_SOURCES = \
+       helper.c \
+       helper.h \
+       jit.c \
+       jit.h \
+       parse.c \
        parse.h \
+       stack.c \
        stack.h \
-       reg.h \
-       inline.h \
-       parseRT.h \
-       parseRTstats.h
-
-noinst_LIBRARIES = libjit.a
+       stacktrace.c \
+       stacktrace.h
 
-libjit_a_SOURCES = jit.c parse.c stack.c inline.c sets.c parseRT.c parseRTstats.c
+libjit_la_LIBADD = \
+       $(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