* configure.ac: Define ENABLE_ESCAPE if ENABLE_SSA is defined.
[cacao.git] / src / vm / jit / optimizing / Makefile.am
index 85d351282ebbf8a3b33a4180961750376a5c26c0..b7c937c13cec6cf9c5c3476d9433de7330937387 100644 (file)
@@ -1,6 +1,6 @@
-## src/vm/jit/loop/Makefile.am
+## src/vm/jit/optimizing/Makefile.am
 ##
-## Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+## Copyright (C) 1996-2005, 2006, 2007 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
 ## 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,v 1.8 2004/12/07 14:33:21 twisti Exp $
 
-## Process this file with automake to produce Makefile.in
 
-INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit -I$(top_srcdir)/src/vm/jit/@ARCH_DIR@
+AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)/$(OS_DIR) -I$(top_builddir)/src
 
-noinst_LTLIBRARIES = liboptimizing.la
+LIBS =
 
-liboptimizing_la_SOURCES = \
+if ENABLE_IFCONV
+IFCONV_SOURCES = \
+       ifconv.c \
+       ifconv.h
+endif
+
+if ENABLE_PROFILING
+PROFILE_SOURCES = \
+       profile.c \
+       profile.h
+
+REORDER_SOURCES = \
+       reorder.c \
+       reorder.h
+endif
+
+if ENABLE_THREADS
+RECOMPILE_SOURCES = \
+       recompile.c \
+       recompile.h
+endif
+
+if ENABLE_SSA
+SSA_SOURCES = \
        lsra.c \
        lsra.h \
        ssa.c \
        ssa.h \
+       ssa_phi.c \
+       ssa_phi.h \
+       ssa_rename.c \
+       ssa_rename.h \
        graph.c \
        graph.h \
        dominators.c \
        dominators.h \
        lifetimes.c \
-       lifetimes.h
+       lifetimes.h \
+       ssa2.c \
+       ssa3.c 
+endif
+
+if ENABLE_ESCAPE
+ESCAPE_SOURCES = \
+       bytecode_escape.c \
+       escape.h \
+       escape.c
+endif
+
+noinst_LTLIBRARIES = \
+       liboptimizing.la
+
+liboptimizing_la_SOURCES = \
+       $(IFCONV_SOURCES) \
+       $(PROFILE_SOURCES) \
+       $(RECOMPILE_SOURCES) \
+       $(REORDER_SOURCES) \
+       $(SSA_SOURCES) \
+       $(ESCAPE_SOURCES)
 
 
 ## Local variables: