* Added ffcall library for intrp.
[cacao.git] / src / cacao / Makefile.am
1 ## src/cacao/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
4 ## R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
5 ## C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
6 ## 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., 59 Temple Place - Suite 330, Boston, MA
23 ## 02111-1307, USA.
24 ##
25 ## Contact: cacao@complang.tuwien.ac.at
26 ##
27 ## Authors: Christian Thalinger
28 ##
29 ## Changes:
30 ##
31 ## $Id: Makefile.am 3147 2005-09-05 20:11:56Z twisti $
32
33 ## Process this file with automake to produce Makefile.in
34
35 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)
36
37 if ENABLE_INTRP
38 FFCALL_LIB = $(top_builddir)/src/ffcall/avcall/libavcall.la
39 endif
40
41 if DISABLE_GC
42 if NATIVE_THREADS
43 GC_LIB = $(top_builddir)/src/boehm-gc/libgc.la
44 else
45 GC_LIB =
46 endif
47 else
48 GC_LIB = $(top_builddir)/src/boehm-gc/libgc.la
49 endif
50
51 if USE_THREADS
52 if NATIVE_THREADS
53 THREAD_LIB = $(top_builddir)/src/threads/native/libthreads.la
54 else
55 THREAD_LIB = $(top_builddir)/src/threads/green/libthreads.la
56 endif
57 else
58 THREAD_LIB =
59 endif
60
61 if ENABLE_STATICVM
62 cacao_LDFLAGS = \
63         $(LTLIBICONV)
64
65 CLASSPATH_LIBS = \
66         $(top_builddir)/src/classpath/native/jni/java-io/.libs/libjavaio.a \
67         $(top_builddir)/src/classpath/native/jni/java-nio/.libs/libjavanio.a \
68         $(top_builddir)/src/classpath/native/jni/java-net/.libs/libjavanet.a \
69         $(top_builddir)/src/classpath/native/jni/java-util/.libs/libjavautil.a \
70         $(top_builddir)/src/classpath/native/jni/java-lang/.libs/libjavalang.a \
71         $(top_builddir)/src/classpath/native/jni/java-lang/.libs/libjavalangreflect.a
72
73 if USE_GTK_PEER
74 cacao_CFLAGS = \
75         $(GTK_CFLAGS) $(CAIRO_CFLAGS) $(PANGOFT2_CFLAGS) \
76         $(XML_CFLAGS) $(XSLT_CFLAGS)
77
78 cacao_LDFLAGS += \
79         $(GTK_LIBS) $(CAIRO_LIBS) $(PANGOFT2_LIBS) $(X_LIBS) -lXtst \
80         $(XML_LIBS) $(XSLT_LIBS)
81
82 CLASSPATH_LIBS += \
83         $(top_builddir)/src/classpath/native/jni/gtk-peer/.libs/libgtkpeer.a
84 endif
85
86 else
87 cacao_LDFLAGS = $(EXPORT_SYMBOLS_FLAGS)
88 CLASSPATH_LIBS = \
89         $(top_builddir)/src/libltdl/libltdlc.la
90 endif
91
92 noinst_LTLIBRARIES = libcacao.la
93
94 libcacao_la_SOURCES =
95
96 libcacao_la_LIBADD = \
97         $(top_builddir)/src/mm/libmm.la \
98         $(top_builddir)/src/native/libnative.la \
99         $(THREAD_LIB) \
100         $(top_builddir)/src/toolbox/libtoolbox.la \
101         $(top_builddir)/src/vm/libvm.la
102
103 bindir = $(prefix)/jre/bin
104
105 bin_PROGRAMS = cacao
106
107 cacao_SOURCES = \
108         cacao.c \
109         cacao.h
110
111 cacao_LDADD = \
112         libcacao.la \
113         $(top_builddir)/src/classpath/native/fdlibm/libfdlibm.la \
114         $(GC_LIB) \
115         $(CLASSPATH_LIBS) \
116         $(FFCALL_LIB)
117
118 cacao_DEPENDENCIES = $(cacao_LDADD)
119
120
121 ## Local variables:
122 ## mode: Makefile
123 ## indent-tabs-mode: t
124 ## c-basic-offset: 4
125 ## tab-width: 8
126 ## compile-command: "automake --add-missing"
127 ## End: