* Removed all Id tags.
[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 WITH_STATIC_CLASSPATH
71 cacao_LDFLAGS += \
72         $(LTLIBICONV)
73
74 CLASSPATH_LIBS = \
75         $(CLASSPATH_LIBDIR)/classpath/libjavaio.a \
76         $(CLASSPATH_LIBDIR)/classpath/libjavanio.a \
77         $(CLASSPATH_LIBDIR)/classpath/libjavanet.a \
78         $(CLASSPATH_LIBDIR)/classpath/libjavautil.a \
79         $(CLASSPATH_LIBDIR)/classpath/libjavalang.a \
80         $(CLASSPATH_LIBDIR)/classpath/libjavalangreflect.a
81
82 CACAO_LIBS += \
83         $(CLASSPATH_LIBS)
84
85 #if USE_GTK_PEER
86 #cacao_CFLAGS = \
87 #       $(GTK_CFLAGS) $(CAIRO_CFLAGS) $(PANGOFT2_CFLAGS) \
88 #       $(XML_CFLAGS) $(XSLT_CFLAGS)
89 #
90 #cacao_LDFLAGS += \
91 #       $(GTK_LIBS) $(CAIRO_LIBS) $(PANGOFT2_LIBS) $(X_LIBS) -lXtst \
92 #       $(XML_LIBS) $(XSLT_LIBS)
93 #
94 #CLASSPATH_LIBS += \
95 #       $(CLASSPATH_LIBDIR)/classpath/libgtkpeer.a
96 #endif
97 endif
98
99 if ENABLE_RT_TIMING
100 cacao_LDFLAGS += -lrt
101 endif
102
103 libjvm_la_SOURCES =
104
105 libjvm_la_LIBADD = \
106         $(top_builddir)/src/fdlibm/libfdlibm.la \
107         $(top_builddir)/src/mm/libmm.la \
108         $(top_builddir)/src/native/libnative.la \
109         $(top_builddir)/src/toolbox/libtoolbox.la \
110         $(top_builddir)/src/vm/libvm.la \
111         $(top_builddir)/src/vmcore/libvmcore.la \
112         $(GC_LIB) \
113         $(THREAD_LIB)
114
115 bin_PROGRAMS = \
116         cacao
117
118 cacao_SOURCES = \
119         cacao.c
120
121 cacao_LDADD = \
122         $(CACAO_LIBS)
123
124 cacao_DEPENDENCIES = \
125         $(cacao_LDADD)
126
127
128 ## Local variables:
129 ## mode: Makefile
130 ## indent-tabs-mode: t
131 ## c-basic-offset: 4
132 ## tab-width: 8
133 ## compile-command: "automake --add-missing"
134 ## End: