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