Merged branch subtype-trunk into default.
[cacao.git] / src / mm / Makefile.am
index d5eb73c71e30019d8ab5d1ffd8879c715875410c..b486fcf3327a26ca3ae973fd931ae1caffcfa1cc 100644 (file)
@@ -1,7 +1,7 @@
-## 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,
-## TU Wien
+## src/mm/Makefile.am
+##
+## Copyright (C) 1996-2005, 2006, 2007, 2008
+## CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 ##
 ## This file is part of CACAO.
 ##
 ##
 ## 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 1676 2004-12-03 16:52:15Z twisti $
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+## 02110-1301, USA.
+
+
+AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)/$(OS_DIR) -I$(top_builddir)/src
+
+LIBS =
+
+DIST_SUBDIRS = \
+       boehm-gc \
+       cacao-gc
+
+if DISABLE_GC
+GC_FILE = \
+       gc-none.cpp
+endif
+
+if ENABLE_GC_BOEHM
+SUBDIRS = \
+       boehm-gc
+
+GC_FILE = \
+       gc-boehm.cpp
+
+GC_LIB = \
+       $(top_builddir)/src/mm/boehm-gc/libgc.la
+endif
+
+if ENABLE_GC_CACAO
+SUBDIRS = \
+       cacao-gc
 
-## Process this file with automake to produce Makefile.in
+GC_LIB = \
+       $(top_builddir)/src/mm/cacao-gc/libgc.la
+endif
 
-INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/@ARCH_DIR@
+noinst_LTLIBRARIES = \
+       libmm.la
 
-noinst_LIBRARIES = libmm.a
+libmm_la_SOURCES = \
+       codememory.c \
+       codememory.h \
+       dumpmemory.cpp \
+       dumpmemory.hpp \
+       $(GC_FILE) \
+       gc.hpp \
+       memory.cpp \
+       memory.hpp
 
-libmm_a_SOURCES = \
-       boehm.c \
-       boehm.h \
-       memory.c \
-       memory.h
+libmm_la_LIBADD = \
+       $(GC_LIB)
 
+if ENABLE_TLH
+libmm_la_SOURCES += \
+       tlh.h \
+       tlh.c
+endif
 
 ## Local variables:
 ## mode: Makefile