* configure.ac (static-classpath): Removed.
[cacao.git] / src / cacao / Makefile.am
1 ## src/cacao/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
4 ## C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 ## E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 ## J. Wenninger, Institut f. Computersprachen - TU Wien
7 ##
8 ## This file is part of CACAO.
9 ##
10 ## This program is free software; you can redistribute it and/or
11 ## modify it under the terms of the GNU General Public License as
12 ## published by the Free Software Foundation; either version 2, or (at
13 ## your option) any later version.
14 ##
15 ## This program is distributed in the hope that it will be useful, but
16 ## WITHOUT ANY WARRANTY; without even the implied warranty of
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 ## General Public License for more details.
19 ##
20 ## You should have received a copy of the GNU General Public License
21 ## along with this program; if not, write to the Free Software
22 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 ## 02110-1301, USA.
24 ##
25 ## Contact: cacao@cacaojvm.org
26
27 ## Process this file with automake to produce Makefile.in
28
29 AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)/$(OS_DIR)
30
31 if ENABLE_THREADS
32 THREAD_LIB = \
33         $(top_builddir)/src/threads/libthreads.la
34 endif
35
36 if ENABLE_STATICVM
37 cacao_LDFLAGS = \
38         -all-static
39 else
40 cacao_LDFLAGS =
41 endif
42
43 if ENABLE_LIBJVM
44 lib_LTLIBRARIES = \
45         libjvm.la
46
47 libjvm_la_LDFLAGS = \
48         -release $(PACKAGE_VERSION)
49
50 if WITH_CLASSPATH_SUN
51 libjvm_la_LDFLAGS += \
52         -Xlinker --version-script=$(top_srcdir)/contrib/mapfile-vers-product
53 endif
54
55 cacao_LDFLAGS += \
56         -export-dynamic
57
58 CACAO_LIBS =
59 else
60 noinst_LTLIBRARIES = \
61         libjvm.la
62
63 cacao_LDFLAGS += \
64         -export-dynamic
65
66 CACAO_LIBS = \
67         libjvm.la
68 endif
69
70 if ENABLE_RT_TIMING
71 cacao_LDFLAGS += -lrt
72 endif
73
74 libjvm_la_SOURCES =
75
76 libjvm_la_LIBADD = \
77         $(top_builddir)/src/fdlibm/libfdlibm.la \
78         $(top_builddir)/src/mm/libmm.la \
79         $(top_builddir)/src/native/libnative.la \
80         $(top_builddir)/src/toolbox/libtoolbox.la \
81         $(top_builddir)/src/vm/libvm.la \
82         $(top_builddir)/src/vmcore/libvmcore.la \
83         $(GC_LIB) \
84         $(THREAD_LIB)
85
86 bin_PROGRAMS = \
87         cacao
88
89 cacao_SOURCES = \
90         cacao.c
91
92 cacao_LDADD = \
93         $(CACAO_LIBS)
94
95 cacao_DEPENDENCIES = \
96         $(cacao_LDADD)
97
98
99 ## Local variables:
100 ## mode: Makefile
101 ## indent-tabs-mode: t
102 ## c-basic-offset: 4
103 ## tab-width: 8
104 ## compile-command: "automake --add-missing"
105 ## End: