* src/mm/dumpmemory.c: Moved to .cpp.
[cacao.git] / src / mm / Makefile.am
1 ## src/mm/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 2007, 2008
4 ## CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 ##
6 ## This file is part of CACAO.
7 ##
8 ## This program is free software; you can redistribute it and/or
9 ## modify it under the terms of the GNU General Public License as
10 ## published by the Free Software Foundation; either version 2, or (at
11 ## your option) any later version.
12 ##
13 ## This program is distributed in the hope that it will be useful, but
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 ## General Public License for more details.
17 ##
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program; if not, write to the Free Software
20 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 ## 02110-1301, USA.
22
23
24 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
25
26 LIBS =
27
28 DIST_SUBDIRS = \
29         boehm-gc \
30         cacao-gc
31
32 if DISABLE_GC
33 GC_FILE = \
34         gc-none.cpp
35 endif
36
37 if ENABLE_GC_BOEHM
38 SUBDIRS = \
39         boehm-gc
40
41 GC_FILE = \
42         gc-boehm.cpp
43
44 GC_LIB = \
45         $(top_builddir)/src/mm/boehm-gc/libgc.la
46 endif
47
48 if ENABLE_GC_CACAO
49 SUBDIRS = \
50         cacao-gc
51
52 GC_LIB = \
53         $(top_builddir)/src/mm/cacao-gc/libgc.la
54 endif
55
56 noinst_LTLIBRARIES = \
57         libmm.la
58
59 libmm_la_SOURCES = \
60         codememory.c \
61         codememory.h \
62         dumpmemory.cpp \
63         dumpmemory.hpp \
64         $(GC_FILE) \
65         gc.hpp \
66         memory.c \
67         memory.h
68
69 libmm_la_LIBADD = \
70         $(GC_LIB)
71
72 if ENABLE_TLH
73 libmm_la_SOURCES += \
74         tlh.h \
75         tlh.c
76 endif
77
78 ## Local variables:
79 ## mode: Makefile
80 ## indent-tabs-mode: t
81 ## c-basic-offset: 4
82 ## tab-width: 8
83 ## compile-command: "automake --add-missing"
84 ## End: