jdk1.2 and loader optimisation
[cacao.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # $Id: Makefile.am 135 1999-10-04 10:35:09Z roman $
4
5 MAINTAINERCLEANFILES = Makefile.in configure
6 SUBDIRS = toolbox mm alpha jit comp nat threads mips tst doc narray
7
8 EXTRA_DIST = html/cacaoinstall.html html/cacaoman.html html/index.html
9
10 CLEANFILES = @SYSDEP_DIR@/asmpart.o \
11                          @SYSDEP_DIR@/asmpart.s \
12              @SYSDEP_DIR@/offsets.h \
13                  nativetable.hh \
14                  nativetypes.hh
15
16 bin_PROGRAMS = cacao
17 noinst_PROGRAMS = cacaoh
18
19 INCLUDES=-I/usr/include -I$(top_srcdir)/@SYSDEP_DIR@ -I$(top_srcdir)/jit -I@SYSDEP_DIR@ -I$(top_srcdir)
20
21 cacao_SOURCES = \
22         asmpart.h \
23         builtin.c \
24         builtin.h \
25         callargs.h \
26         @COMPILER_SOURCES@ \
27         global.h \
28         jit.c \
29         jit.h \
30         loader.c \
31         loader.h \
32         main.c \
33         native.c \
34         native.h \
35         tables.c \
36         tables.h 
37
38 EXTRA_cacao_SOURCES = \
39         compiler.c \
40         compiler.h 
41
42 cacao_LDADD = \
43         @SYSDEP_DIR@/asmpart.o \
44         @COMPILER_OBJECTS@ \
45         toolbox/libtoolbox.a \
46         @GC_OBJ@ \
47     @THREAD_OBJ@
48
49 cacao_DEPENDENCIES = \
50         @SYSDEP_DIR@/asmpart.o \
51         @COMPILER_OBJECTS@ \
52         toolbox/libtoolbox.a \
53         @GC_OBJ@ \
54         @THREAD_OBJ@
55
56 cacaoh_SOURCES = headers.c tables.c loader.c builtin.c
57 cacaoh_LDADD = toolbox/libtoolbox.a @GC_OBJ@ @THREAD_OBJ@
58 cacaoh_DEPENDENCIES = toolbox/libtoolbox.a @GC_OBJ@ @THREAD_OBJ@
59
60 native.c: nativetypes.hh @SYSDEP_DIR@/offsets.h nativetable.hh
61
62 nativetypes.hh @SYSDEP_DIR@/offsets.h nativetable.hh: cacaoh
63         ./cacaoh \
64                 java.lang.Object \
65                 java.lang.String \
66                 java.lang.ClassLoader \
67                 java.lang.Class \
68                 java.lang.Compiler \
69                 java.lang.Double \
70                 java.lang.Float \
71                 java.lang.Math \
72                 java.lang.Package \
73                 java.lang.Runtime \
74                 java.lang.SecurityManager \
75                 java.lang.Exception \
76                 java.io.PrintStream \
77                 java.io.InputStream \
78                 java.lang.System \
79                 java.lang.Thread \
80                 java.lang.ThreadGroup \
81                 java.lang.Throwable \
82                 java.lang.reflect.Array \
83                 java.lang.reflect.Constructor \
84                 java.lang.reflect.Field \
85                 java.lang.reflect.Method \
86                 java.lang.reflect.Modifier \
87                 java.io.FileDescriptor \
88                 java.io.FileInputStream \
89                 java.io.FileOutputStream \
90                 java.io.FileSystem \
91                 java.io.ObjectInputStream \
92                 java.io.ObjectStreamClass \
93                 java.io.RandomAccessFile \
94                 java.util.ResourceBundle \
95                 java.util.jar.JarFile \
96                 java.util.zip.Adler32 \
97                 java.util.zip.CRC32 \
98                 java.util.zip.Deflater \
99                 java.util.zip.Inflater \
100                 java.util.zip.ZipEntry \
101                 java.util.zip.ZipFile \
102                 java.util.Properties \
103                 java.util.Date \
104                 java.math.BigInteger \
105                 java.net.InetAddress \
106                 java.net.InetAddressImpl \
107                 java.security.PrivilegedActionException \
108                 java.security.PrivilegedAction \
109                 java.security.PrivilegedExceptionAction \
110                 java.security.AccessController \
111                 java.io.File \
112                 java.io.UnixFileSystem \
113                 java.lang.ClassLoader_NativeLibrary
114
115 @SYSDEP_DIR@/asmpart.o: $(top_srcdir)/@SYSDEP_DIR@/asmpart.c @SYSDEP_DIR@/offsets.h
116         rm -f @SYSDEP_DIR@/asmpart.s
117         @CPP@ $(INCLUDES) $(top_srcdir)/@SYSDEP_DIR@/asmpart.c \
118                         > @SYSDEP_DIR@/asmpart.s
119         @CC@ $(CFLAGS) $(INCLUDES) -c -o @SYSDEP_DIR@/asmpart.o \
120                         @SYSDEP_DIR@/asmpart.s
121         rm -f asmpart.s
122
123 compiler.o: $(top_srcdir)/builtin.h $(top_srcdir)/compiler.h \
124                     $(top_srcdir)/global.h $(top_srcdir)/loader.h \
125                 $(top_srcdir)/tables.h $(top_srcdir)/native.h \
126             $(top_srcdir)/asmpart.h $(top_srcdir)/compiler.c $(top_srcdir)/comp/*.c \
127             $(top_srcdir)/@SYSDEP_DIR@/gen.c $(top_srcdir)/@SYSDEP_DIR@/disass.c
128         @CC@ $(CFLAGS) -I. $(INCLUDES) -c $(top_srcdir)/compiler.c
129
130 jit.o: jit.c \
131         jit/mcode.c \
132         jit/parse.c \
133         jit/reg.c \
134         jit/stack.c \
135         jit/jitdef.h \
136         narray/graph.c \
137         narray/loop.c \
138         narray/analyze.c \
139         narray/tracing.c \
140         narray/loop.h
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: