Teach cacaoh to understand -d <dir> to install generated header files into
[cacao.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # $Id: Makefile.am 1529 2004-11-17 17:19:14Z twisti $
4
5 @SET_MAKE@
6
7 MAINTAINERCLEANFILES = Makefile.in configure
8 ALLSUBDIRS = mm toolbox threads jit nat tst doc jvmtst classpath
9 SUBDIRS = $(ALLSUBDIRS)
10 DIST_SUBDIRS = $(ALLSUBDIRS)
11
12 EXTRA_DIST = \
13         html/cacaoinstall.html \
14         html/cacaoman.html \
15         html/index.html \
16         main.h \
17         natcalls.h \
18         nativecalls.h
19
20 CLEANFILES = \
21         nativetable.inc
22
23 bin_PROGRAMS = cacao cacaoh
24 noinst_PROGRAMS = gennativetable genoffsets
25
26 INCLUDES = -I$(top_srcdir)/jit/@ARCH_DIR@
27
28 BOEHM_LIBS = mm/libboehm.a mm/boehm-gc/.libs/libgc.a
29
30 cacao_SOURCES = \
31         asmpart.h \
32         builtin.c \
33         builtin.h \
34         exceptions.c \
35         exceptions.h \
36         global.h \
37         jni.c \
38         jni.h \
39         loader.c \
40         loader.h \
41         main.c \
42         native.c \
43         native.h \
44         options.c \
45         options.h \
46         statistics.c \
47         statistics.h \
48         tables.c \
49         tables.h \
50         typeinfo.c \
51         typeinfo.h \
52         unzip.c
53
54 cacao_LDADD = \
55         jit/libjit.a \
56         jit/loop/libloop.a \
57         jit/@ARCH_DIR@/libarch.a \
58         nat/libnat.a \
59         $(BOEHM_LIBS) \
60         @THREAD_OBJ@ \
61         toolbox/libtoolbox.a \
62         classpath/native/fdlibm/.libs/libfdlibm.a \
63         @STATIC_CLASSPATH_LIBS@ \
64         @DYNAMIC_CLASSPATH_LIBS@ \
65         @AWT_OBJS@ \
66         @ZIP_LIBS@ \
67         @THREAD_LIB@
68
69
70 cacao_DEPENDENCIES = \
71         jit/libjit.a \
72         jit/loop/libloop.a \
73         jit/@ARCH_DIR@/libarch.a \
74         nat/libnat.a \
75         $(BOEHM_LIBS) \
76         @THREAD_OBJ@ \
77         toolbox/libtoolbox.a \
78         @STATIC_CLASSPATH_LIBS@ \
79         nativetable.inc \
80         @AWT_OBJS@
81
82 cacaoh_SOURCES = \
83         builtin.c \
84         cacaoh.c \
85         exceptions.c \
86         headers.c \
87         loader.c \
88         options.c \
89         statistics.c \
90         tables.c \
91         unzip.c
92
93 cacaoh_LDADD = \
94         $(BOEHM_LIBS) \
95         classpath/native/jni/java-lang/.libs/libjavalang.a \
96         @THREAD_OBJ@ \
97         @ZIP_LIBS@ \
98         toolbox/libtoolbox.a \
99         @THREAD_LIB@
100
101 cacaoh_DEPENDENCIES = \
102         $(BOEHM_LIBS) \
103         classpath/native/jni/java-lang/.libs/libjavalang.a \
104         @THREAD_OBJ@ \
105         toolbox/libtoolbox.a
106
107 gennativetable_SOURCES = \
108         builtin.c \
109         exceptions.c \
110         gennativetable.c \
111         headers.c \
112         loader.c \
113         options.c \
114         tables.c \
115         statistics.c \
116         unzip.c
117
118 gennativetable_LDADD = \
119         $(BOEHM_LIBS) \
120         classpath/native/jni/java-lang/.libs/libjavalang.a \
121         @THREAD_OBJ@ \
122         @ZIP_LIBS@ \
123         toolbox/libtoolbox.a \
124         @THREAD_LIB@
125
126 natheaders: cacaoh
127         CLASSPATH=$(top_srcdir)/classpath/lib/bootstrap.zip \
128         ./cacaoh -d nat/ \
129         $(CLASSES)
130
131 nativetable.inc: gennativetable nat/implementednatives.data
132         CLASSPATH=$(top_srcdir)/classpath/lib/bootstrap.zip \
133         $(top_srcdir)/gennativetable \
134         $(CLASSES) \
135         > nativetable.inc
136
137 native.c: nativetable.inc
138
139 CLASSES= \
140         java.lang.String \
141         java.lang.Class \
142         java.io.FileDescriptor \
143         java.io.VMFile \
144         gnu.java.nio.SelectorImpl \
145         gnu.java.nio.FileLockImpl \
146         gnu.java.lang.reflect.TypeSignature \
147         gnu.java.math.MPN \
148         gnu.classpath.RawData \
149         gnu.classpath.Configuration \
150         java.io.OutputStream \
151         java.io.PrintWriter \
152         java.io.FileInputStream \
153         java.io.File \
154         java.lang.SecurityManager \
155         java.lang.VMSecurityManager \
156         java.lang.reflect.Field \
157         java.lang.reflect.Constructor \
158         java.lang.reflect.Method \
159         java.io.VMObjectStreamClass \
160         java.io.ObjectInputStream \
161         java.io.RandomAccessFile \
162         java.io.Writer \
163         java.io.DataInput \
164         java.io.DataInputStream \
165         java.io.OutputStreamWriter \
166         java.io.FileWriter \
167         java.net.NetworkInterface \
168         java.net.SocketImpl \
169         gnu.java.net.PlainSocketImpl \
170         java.net.DatagramSocketImpl \
171         java.net.InetAddress \
172         java.net.DatagramPacket \
173         gnu.java.net.PlainDatagramSocketImpl \
174         java.nio.CharBufferImpl \
175         java.nio.DoubleBufferImpl \
176         java.nio.LongBufferImpl \
177         java.nio.ByteOrder \
178         java.nio.ShortBufferImpl \
179         java.nio.IntBufferImpl \
180         java.nio.DirectByteBufferImpl \
181         java.nio.FloatBufferImpl \
182         gnu.java.nio.channels.FileChannelImpl \
183         java.sql.Connection \
184         java.lang.Math \
185         java.lang.StringBuffer \
186         java.lang.reflect.Array \
187         java.lang.reflect.Modifier \
188         java.lang.reflect.Proxy \
189         java.lang.Double \
190         java.lang.Compiler \
191         java.lang.Byte \
192         java.lang.Character \
193         java.lang.Integer \
194         java.lang.Long \
195         java.lang.Short \
196         java.lang.Boolean \
197         java.lang.StackTraceElement \
198         java.lang.Float \
199         java.lang.Object \
200         java.lang.RuntimePermission \
201         java.lang.System \
202         java.lang.StrictMath \
203         java.lang.ClassLoader \
204         java.lang.Process \
205         java.lang.UnsatisfiedLinkError \
206         java.text.Collator \
207         java.util.zip.Deflater \
208         java.util.zip.Inflater \
209         java.util.TimeZone \
210         java.util.Locale \
211         java.util.Hashtable \
212         java.beans.PropertyEditor \
213         java.security.AccessController \
214         java.security.ProtectionDomain \
215         java.security.cert.Certificate \
216         java.security.cert.X509Certificate \
217         javax.swing.Popup \
218         javax.swing.UIManager \
219         java.lang.VMClass \
220         java.lang.ThreadGroup \
221         java.lang.VMThread \
222         java.lang.VMDouble \
223         java.lang.VMFloat \
224         java.lang.Cloneable \
225         java.lang.VMObject \
226         java.lang.VMClassLoader \
227         java.io.PrintStream \
228         java.lang.VMSystem \
229         java.lang.VMString \
230         java.util.Properties \
231         java.lang.Runtime \
232         java.lang.VMRuntime \
233         java.lang.Throwable \
234         java.lang.VMThrowable \
235         java.util.VMTimeZone \
236         gnu.java.security.x509.X509Certificate  \
237         java.lang.JOWENNTest1 \
238         @AWTPEERS@
239
240 checkjvm:
241         $(MAKE) -C jvmtst $@
242
243
244 ## Local variables:
245 ## mode: Makefile
246 ## indent-tabs-mode: t
247 ## c-basic-offset: 4
248 ## tab-width: 8
249 ## compile-command: "automake --add-missing"
250 ## End: