fixed a makefile problem from hell (actually just an include path)
[cacao.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # $Id: Makefile.am 117 1999-01-20 02:13:50Z phil $
4
5 MAINTAINERCLEANFILES = Makefile.in configure
6 SUBDIRS = toolbox mm alpha jit nat comp threads mips
7
8 EXTRA_DIST = html/cacaoinstall.html html/cacaoman.html html/index.html \
9                          doc/cacao.1
10
11 CLEANFILES = @SYSDEP_DIR@/asmpart.o \
12                          @SYSDEP_DIR@/asmpart.s \
13              @SYSDEP_DIR@/offsets.h \
14                  nativetable.hh \
15                  nativetypes.hh
16
17 bin_PROGRAMS = cacao
18 noinst_PROGRAMS = cacaoh
19 man_MANS = doc/cacao.1
20
21 INCLUDES=-I/usr/include -I$(top_srcdir)/@SYSDEP_DIR@ -I$(top_srcdir)/jit -I@SYSDEP_DIR@
22
23 cacao_SOURCES = \
24         asmpart.h \
25         builtin.c \
26         builtin.h \
27         callargs.h \
28         compiler.c \
29         compiler.h \
30         global.h \
31         jit.c \
32         jit.h \
33         loader.c \
34         loader.h \
35         main.c \
36         native.c \
37         native.h \
38         tables.c \
39         tables.h
40
41 cacao_LDADD = \
42         @SYSDEP_DIR@/asmpart.o \
43         toolbox/libtoolbox.a \
44         @GC_OBJ@ \
45     @THREAD_OBJ@
46
47 cacao_DEPENDENCIES = \
48         @SYSDEP_DIR@/asmpart.o \
49         toolbox/libtoolbox.a \
50         @GC_OBJ@ \
51         @THREAD_OBJ@
52
53 cacaoh_SOURCES = headers.c tables.c loader.c builtin.c
54 cacaoh_LDADD = toolbox/libtoolbox.a @GC_OBJ@ @THREAD_OBJ@
55 cacaoh_DEPENDENCIES = toolbox/libtoolbox.a @GC_OBJ@ @THREAD_OBJ@
56
57 native.c: nativetypes.hh @SYSDEP_DIR@/offsets.h nativetable.hh
58
59 nativetypes.hh @SYSDEP_DIR@/offsets.h nativetable.hh: cacaoh
60         ./cacaoh \
61                 java.lang.Object \
62                 java.lang.String \
63                 java.lang.Class \
64                 java.lang.ClassLoader \
65                 java.lang.Compiler \
66                 java.lang.Double \
67                 java.lang.Float \
68                 java.lang.Math \
69                 java.lang.Runtime \
70                 java.lang.SecurityManager \
71                 java.lang.System \
72                 java.lang.Thread \
73                 java.lang.ThreadGroup \
74                 java.lang.Throwable \
75                 java.io.File \
76                 java.io.FileDescriptor \
77                 java.io.FileInputStream \
78                 java.io.FileOutputStream \
79                 java.io.PrintStream \
80                 java.io.RandomAccessFile \
81                 java.util.Properties \
82                 java.util.Date
83
84 @SYSDEP_DIR@/asmpart.o: $(top_srcdir)/@SYSDEP_DIR@/asmpart.c @SYSDEP_DIR@/offsets.h
85         rm -f @SYSDEP_DIR@/asmpart.s
86         @CPP@ $(INCLUDES) $(top_srcdir)/@SYSDEP_DIR@/asmpart.c \
87                         > @SYSDEP_DIR@/asmpart.s
88         @CC@ $(INCLUDES) -c -o @SYSDEP_DIR@/asmpart.o @SYSDEP_DIR@/asmpart.s
89         rm -f asmpart.s
90
91
92 ## Local variables:
93 ## mode: Makefile
94 ## indent-tabs-mode: t
95 ## c-basic-offset: 4
96 ## tab-width: 4
97 ## compile-command: "automake --add-missing"
98 ## End: