Define and link against boehm libs.
[cacao.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # $Id: Makefile.am 503 2003-10-22 17:35:21Z twisti $
4
5 @SET_MAKE@
6
7 MAINTAINERCLEANFILES = Makefile.in configure
8 ALLSUBDIRS = mm toolbox jit nat threads tst doc narray jvmtst
9 SUBDIRS = $(ALLSUBDIRS) @SYSDEP_DIR@
10 DIST_SUBDIRS = $(ALLSUBDIRS) alpha mips i386 powerpc x86_64
11
12 EXTRA_DIST = html/cacaoinstall.html html/cacaoman.html html/index.html \
13                                 jni.c natcalls.h nativecalls.h
14
15 CLEANFILES = @SYSDEP_DIR@/asmpart.o \
16              @SYSDEP_DIR@/offsets.h \
17                  nativetable.hh \
18                  nativetypes.hh
19
20 bin_PROGRAMS = cacao
21 noinst_PROGRAMS = cacaoh
22
23 INCLUDES = -I$(top_srcdir)/@SYSDEP_DIR@ -I$(top_srcdir)/jit
24
25 BOEHM_LIBS = mm/libboehm.a mm/boehm-gc/.libs/libgc.a
26
27 cacao_SOURCES = \
28         asmpart.h \
29         builtin.c \
30         builtin.h \
31         callargs.h \
32         global.h \
33         jit.c \
34         jit.h \
35         loader.c \
36         loader.h \
37         main.c \
38         native.c \
39         native.h \
40         jni.h \
41         tables.c \
42         tables.h
43
44 cacao_LDADD = \
45         @SYSDEP_DIR@/asmpart.o \
46         @COMPILER_OBJECTS@ \
47         toolbox/libtoolbox.a \
48         $(BOEHM_LIBS) \
49         @THREAD_OBJ@
50
51 cacao_DEPENDENCIES = \
52         @SYSDEP_DIR@/asmpart.o \
53         @COMPILER_OBJECTS@ \
54         toolbox/libtoolbox.a \
55         $(BOEHM_LIBS) \
56         @THREAD_OBJ@
57
58 cacaoh_SOURCES = \
59         headers.c \
60         tables.c \
61         loader.c \
62         builtin.c
63
64 cacaoh_LDADD = \
65         toolbox/libtoolbox.a \
66         $(BOEHM_LIBS) \
67         @THREAD_OBJ@
68
69 cacaoh_DEPENDENCIES = \
70         toolbox/libtoolbox.a \
71         $(BOEHM_LIBS) \
72         @THREAD_OBJ@
73
74 native.c: nativetypes.hh @SYSDEP_DIR@/offsets.h nativetable.hh
75
76 nativetypes.hh @SYSDEP_DIR@/offsets.h nativetable.hh: cacaoh
77         ./cacaoh \
78                 java.lang.Object \
79                 java.lang.String \
80                 java.lang.ClassLoader \
81                 java.lang.Class \
82                 java.lang.Compiler \
83                 java.lang.Integer \
84                 java.lang.Double \
85                 java.lang.Float \
86                 java.lang.Math \
87                 java.lang.Package \
88                 java.lang.Runtime \
89                 java.lang.SecurityManager \
90                 java.lang.Exception \
91                 java.io.PrintStream \
92                 java.io.InputStream \
93                 java.lang.System \
94                 java.lang.Thread \
95                 java.lang.ThreadGroup \
96                 java.lang.Throwable \
97                 java.lang.reflect.Array \
98                 java.lang.reflect.Constructor \
99                 java.lang.reflect.Field \
100                 java.lang.reflect.Method \
101                 java.lang.reflect.Modifier \
102                 java.io.FileDescriptor \
103                 java.io.FileInputStream \
104                 java.io.FileOutputStream \
105                 java.io.FileSystem \
106                 java.io.ObjectInputStream \
107                 java.io.ObjectStreamClass \
108                 java.io.RandomAccessFile \
109                 java.util.ResourceBundle \
110                 java.util.jar.JarFile \
111                 java.util.zip.Adler32 \
112                 java.util.zip.CRC32 \
113                 java.util.zip.Deflater \
114                 java.util.zip.Inflater \
115                 java.util.zip.ZipEntry \
116                 java.util.zip.ZipFile \
117                 java.util.Properties \
118                 java.util.Date \
119                 java.math.BigInteger \
120                 java.net.InetAddress \
121                 java.net.InetAddressImpl \
122                 java.net.DatagramPacket \
123                 java.net.PlainDatagramSocketImpl \
124                 java.net.SocketImpl \
125                 java.net.PlainSocketImpl \
126                 java.net.SocketInputStream \
127                 java.net.SocketOutputStream \
128                 java.security.PrivilegedActionException \
129                 java.security.PrivilegedAction \
130                 java.security.PrivilegedExceptionAction \
131                 java.security.AccessController \
132                 java.io.File \
133                 java.io.UnixFileSystem \
134                 java.lang.ClassLoader_NativeLibrary
135
136 @SYSDEP_DIR@/asmpart.o: $(top_srcdir)/@SYSDEP_DIR@/@ASMPART@ @SYSDEP_DIR@/offsets.h
137         @CC@ $(ASMFLAGS) $(INCLUDES) -c -g -o $@ $<
138
139 checkjvm:
140         $(MAKE) -C jvmtst $@
141
142 ## Local variables:
143 ## mode: Makefile
144 ## indent-tabs-mode: t
145 ## c-basic-offset: 4
146 ## tab-width: 4
147 ## compile-command: "automake --add-missing"
148 ## End: