* GNU classpath removal changes.
[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 3309 2005-09-29 14:22:55Z 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 FFI_LIB = $(top_builddir)/src/libffi/libffi_convenience.la
40 endif
41
42 if DISABLE_GC
43 if NATIVE_THREADS
44 GC_LIB = $(top_builddir)/src/boehm-gc/libgc.la
45 else
46 GC_LIB =
47 endif
48 else
49 GC_LIB = $(top_builddir)/src/boehm-gc/libgc.la
50 endif
51
52 if USE_THREADS
53 if NATIVE_THREADS
54 THREAD_LIB = $(top_builddir)/src/threads/native/libthreads.la
55 else
56 THREAD_LIB = $(top_builddir)/src/threads/green/libthreads.la
57 endif
58 else
59 THREAD_LIB =
60 endif
61
62 if ENABLE_STATICVM
63 cacao_LDFLAGS = \
64         $(LTLIBICONV)
65
66 CLASSPATH_LIBS = \
67         $(CLASSPATH_INSTALL_DIR)/lib/classpath/libjavaio.a \
68         $(CLASSPATH_INSTALL_DIR)/lib/classpath/libjavanio.a \
69         $(CLASSPATH_INSTALL_DIR)/lib/classpath/libjavanet.a \
70         $(CLASSPATH_INSTALL_DIR)/lib/classpath/libjavautil.a \
71         $(CLASSPATH_INSTALL_DIR)/lib/classpath/libjavalang.a \
72         $(CLASSPATH_INSTALL_DIR)/lib/classpath/libjavalangreflect.a
73
74 #if USE_GTK_PEER
75 #cacao_CFLAGS = \
76 #       $(GTK_CFLAGS) $(CAIRO_CFLAGS) $(PANGOFT2_CFLAGS) \
77 #       $(XML_CFLAGS) $(XSLT_CFLAGS)
78 #
79 #cacao_LDFLAGS += \
80 #       $(GTK_LIBS) $(CAIRO_LIBS) $(PANGOFT2_LIBS) $(X_LIBS) -lXtst \
81 #       $(XML_LIBS) $(XSLT_LIBS)
82 #
83 #CLASSPATH_LIBS += \
84 #       $(CLASSPATH_INSTALL_DIR)/lib/classpath/libgtkpeer.a
85 #endif
86
87 else
88 cacao_LDFLAGS = $(EXPORT_SYMBOLS_FLAGS)
89 CLASSPATH_LIBS = \
90         $(top_builddir)/src/libltdl/libltdlc.la
91 endif
92
93 noinst_LTLIBRARIES = libcacao.la
94
95 libcacao_la_SOURCES =
96
97 libcacao_la_LIBADD = \
98         $(top_builddir)/src/mm/libmm.la \
99         $(top_builddir)/src/native/libnative.la \
100         $(THREAD_LIB) \
101         $(top_builddir)/src/toolbox/libtoolbox.la \
102         $(top_builddir)/src/vm/libvm.la
103
104 bindir = $(prefix)/jre/bin
105
106 bin_PROGRAMS = cacao
107
108 cacao_SOURCES = \
109         cacao.c \
110         cacao.h
111
112 cacao_LDADD = \
113         libcacao.la \
114         $(top_builddir)/src/fdlibm/libfdlibm.la \
115         $(GC_LIB) \
116         $(CLASSPATH_LIBS) \
117         $(FFCALL_LIB) \
118         $(FFI_LIB)
119
120 cacao_DEPENDENCIES = $(cacao_LDADD)
121
122
123 ## Local variables:
124 ## mode: Makefile
125 ## indent-tabs-mode: t
126 ## c-basic-offset: 4
127 ## tab-width: 8
128 ## compile-command: "automake --add-missing"
129 ## End: