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