narray first check in
[cacao.git] / Makefile
1 # Generated automatically from Makefile.in by configure.
2 # Makefile.in generated automatically by automake 1.3 from Makefile.am
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 # $Id: Makefile 132 1999-09-27 15:54:42Z chris $
15
16
17 SHELL = /bin/sh
18
19 srcdir = .
20 top_srcdir = .
21 prefix = /usr/local/cacao
22 exec_prefix = ${prefix}
23
24 bindir = ${exec_prefix}/bin
25 sbindir = ${exec_prefix}/sbin
26 libexecdir = ${exec_prefix}/libexec
27 datadir = ${prefix}/share
28 sysconfdir = ${prefix}/etc
29 sharedstatedir = ${prefix}/com
30 localstatedir = ${prefix}/var
31 libdir = ${exec_prefix}/lib
32 infodir = ${prefix}/info
33 mandir = ${prefix}/man
34 includedir = ${prefix}/include
35 oldincludedir = /usr/include
36
37 DISTDIR =
38
39 pkgdatadir = $(datadir)/cacao
40 pkglibdir = $(libdir)/cacao
41 pkgincludedir = $(includedir)/cacao
42
43 top_builddir = .
44
45 ACLOCAL = aclocal
46 AUTOCONF = autoconf
47 AUTOMAKE = automake
48 AUTOHEADER = autoheader
49
50 INSTALL = /usr/bin/install -c
51 INSTALL_PROGRAM = ${INSTALL}
52 INSTALL_DATA = ${INSTALL} -m 644
53 INSTALL_SCRIPT = ${INSTALL_PROGRAM}
54 transform = s,x,x,
55
56 NORMAL_INSTALL = :
57 PRE_INSTALL = :
58 POST_INSTALL = :
59 NORMAL_UNINSTALL = :
60 PRE_UNINSTALL = :
61 POST_UNINSTALL = :
62 host_alias = alpha-unknown-linux
63 host_triplet = alpha-unknown-linux-gnu
64 CC = gcc
65 COMPILER_OBJECTS = compiler.o
66 COMPILER_SOURCES = compiler.h compiler.c
67 GC_OBJ = mm/libmm_new.a
68 LIBTHREAD = libthreads.a
69 MAKEINFO = makeinfo
70 PACKAGE = cacao
71 RANLIB = ranlib
72 SYSDEP_DIR = alpha
73 THREAD_OBJ = threads/libthreads.a
74 VERSION = 0.40
75
76 MAINTAINERCLEANFILES = Makefile.in configure
77 SUBDIRS = toolbox mm alpha jit comp nat threads mips tst doc narray
78
79 EXTRA_DIST = html/cacaoinstall.html html/cacaoman.html html/index.html
80
81 CLEANFILES = alpha/asmpart.o \
82                          alpha/asmpart.s \
83              alpha/offsets.h \
84                  nativetable.hh \
85                  nativetypes.hh
86
87 bin_PROGRAMS = cacao
88 noinst_PROGRAMS = cacaoh
89
90 INCLUDES=-I/usr/include -I$(top_srcdir)/alpha -I$(top_srcdir)/jit -Ialpha -I$(top_srcdir)
91
92 cacao_SOURCES = \
93         asmpart.h \
94         builtin.c \
95         builtin.h \
96         callargs.h \
97         compiler.h compiler.c \
98         global.h \
99         jit.c \
100         jit.h \
101         loader.c \
102         loader.h \
103         main.c \
104         native.c \
105         native.h \
106         tables.c \
107         tables.h 
108
109 EXTRA_cacao_SOURCES = \
110         compiler.c \
111         compiler.h 
112
113 cacao_LDADD = \
114         alpha/asmpart.o \
115         compiler.o \
116         toolbox/libtoolbox.a \
117         mm/libmm_new.a \
118     threads/libthreads.a
119
120 cacao_DEPENDENCIES = \
121         alpha/asmpart.o \
122         compiler.o \
123         toolbox/libtoolbox.a \
124         mm/libmm_new.a \
125         threads/libthreads.a
126
127 cacaoh_SOURCES = headers.c tables.c loader.c builtin.c
128 cacaoh_LDADD = toolbox/libtoolbox.a mm/libmm_new.a threads/libthreads.a
129 cacaoh_DEPENDENCIES = toolbox/libtoolbox.a mm/libmm_new.a threads/libthreads.a
130 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
131 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
132 CONFIG_HEADER = config.h
133 CONFIG_CLEAN_FILES = 
134 PROGRAMS =  $(bin_PROGRAMS) $(noinst_PROGRAMS)
135
136
137 DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.
138 CPPFLAGS = 
139 LDFLAGS = 
140 LIBS = -lm 
141 cacao_OBJECTS =  builtin.o jit.o loader.o main.o native.o tables.o
142 cacao_LDFLAGS = 
143 cacaoh_OBJECTS =  headers.o tables.o loader.o builtin.o
144 cacaoh_LDFLAGS = 
145 CFLAGS = -ieee -O2 -g3
146 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
147 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
148 DIST_COMMON =  README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
149 Makefile.in NEWS acconfig.h aclocal.m4 config.guess config.h.in \
150 config.sub configure configure.in install-sh missing mkinstalldirs \
151 stamp-h.in
152
153
154 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
155
156 TAR = tar
157 GZIP = --best
158 DEP_FILES =  .deps/builtin.P .deps/compiler.P .deps/headers.P \
159 .deps/jit.P .deps/loader.P .deps/main.P .deps/native.P .deps/tables.P
160 SOURCES = $(cacao_SOURCES) $(EXTRA_cacao_SOURCES) $(cacaoh_SOURCES)
161 OBJECTS = $(cacao_OBJECTS) $(cacaoh_OBJECTS)
162
163 all: all-recursive-am all-am
164
165 .SUFFIXES:
166 .SUFFIXES: .S .c .o .s
167 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
168         cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
169
170 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
171         cd $(top_builddir) \
172           && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
173
174 $(ACLOCAL_M4):  configure.in 
175         cd $(srcdir) && $(ACLOCAL)
176
177 config.status: $(srcdir)/configure
178         $(SHELL) ./config.status --recheck
179 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
180         cd $(srcdir) && $(AUTOCONF)
181
182 config.h: stamp-h
183         @:
184 stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
185         cd $(top_builddir) \
186           && CONFIG_FILES= CONFIG_HEADERS=config.h \
187              $(SHELL) ./config.status
188         @echo timestamp > stamp-h
189 $(srcdir)/config.h.in: $(srcdir)/stamp-h.in
190 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
191         cd $(top_srcdir) && $(AUTOHEADER)
192         @echo timestamp > $(srcdir)/stamp-h.in
193
194 mostlyclean-hdr:
195
196 clean-hdr:
197
198 distclean-hdr:
199         -rm -f config.h
200
201 maintainer-clean-hdr:
202
203 mostlyclean-binPROGRAMS:
204
205 clean-binPROGRAMS:
206         -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
207
208 distclean-binPROGRAMS:
209
210 maintainer-clean-binPROGRAMS:
211
212 install-binPROGRAMS: $(bin_PROGRAMS)
213         @$(NORMAL_INSTALL)
214         $(mkinstalldirs) $(DESTDIR)$(bindir)
215         @list='$(bin_PROGRAMS)'; for p in $$list; do \
216           if test -f $$p; then \
217             echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
218              $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
219           else :; fi; \
220         done
221
222 uninstall-binPROGRAMS:
223         @$(NORMAL_UNINSTALL)
224         list='$(bin_PROGRAMS)'; for p in $$list; do \
225           rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
226         done
227
228 mostlyclean-noinstPROGRAMS:
229
230 clean-noinstPROGRAMS:
231         -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
232
233 distclean-noinstPROGRAMS:
234
235 maintainer-clean-noinstPROGRAMS:
236
237 .s.o:
238         $(COMPILE) -c $<
239
240 .S.o:
241         $(COMPILE) -c $<
242
243 mostlyclean-compile:
244         -rm -f *.o core *.core
245
246 clean-compile:
247
248 distclean-compile:
249         -rm -f *.tab.c
250
251 maintainer-clean-compile:
252
253 cacao: $(cacao_OBJECTS) $(cacao_DEPENDENCIES)
254         @rm -f cacao
255         $(LINK) $(cacao_LDFLAGS) $(cacao_OBJECTS) $(cacao_LDADD) $(LIBS)
256
257 cacaoh: $(cacaoh_OBJECTS) $(cacaoh_DEPENDENCIES)
258         @rm -f cacaoh
259         $(LINK) $(cacaoh_LDFLAGS) $(cacaoh_OBJECTS) $(cacaoh_LDADD) $(LIBS)
260
261 # This directory's subdirectories are mostly independent; you can cd
262 # into them and run `make' without going through this Makefile.
263 # To change the values of `make' variables: instead of editing Makefiles,
264 # (1) if the variable is set in `config.status', edit `config.status'
265 #     (which will cause the Makefiles to be regenerated when you run `make');
266 # (2) otherwise, pass the desired values on the `make' command line.
267
268
269
270 all-recursive install-data-recursive install-exec-recursive \
271 installdirs-recursive install-recursive uninstall-recursive  \
272 check-recursive installcheck-recursive info-recursive dvi-recursive:
273         @set fnord $(MAKEFLAGS); amf=$$2; \
274         list='$(SUBDIRS)'; for subdir in $$list; do \
275           target=`echo $@ | sed s/-recursive//`; \
276           echo "Making $$target in $$subdir"; \
277           (cd $$subdir && $(MAKE) $$target) \
278            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
279         done && test -z "$$fail"
280
281 mostlyclean-recursive clean-recursive distclean-recursive \
282 maintainer-clean-recursive:
283         @set fnord $(MAKEFLAGS); amf=$$2; \
284         rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
285           rev="$$subdir $$rev"; \
286         done; \
287         for subdir in $$rev; do \
288           target=`echo $@ | sed s/-recursive//`; \
289           echo "Making $$target in $$subdir"; \
290           (cd $$subdir && $(MAKE) $$target) \
291            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
292         done && test -z "$$fail"
293 tags-recursive:
294         list='$(SUBDIRS)'; for subdir in $$list; do \
295           (cd $$subdir && $(MAKE) tags); \
296         done
297
298 tags: TAGS
299
300 ID: $(HEADERS) $(SOURCES) $(LISP)
301         here=`pwd` && cd $(srcdir) \
302           && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
303
304 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
305         tags=; \
306         here=`pwd`; \
307         list='$(SUBDIRS)'; for subdir in $$list; do \
308           test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
309         done; \
310         list='$(SOURCES) $(HEADERS)'; \
311         unique=`for i in $$list; do echo $$i; done | \
312           awk '    { files[$$0] = 1; } \
313                END { for (i in files) print i; }'`; \
314         test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
315           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
316
317 mostlyclean-tags:
318
319 clean-tags:
320
321 distclean-tags:
322         -rm -f TAGS ID
323
324 maintainer-clean-tags:
325
326 distdir = $(PACKAGE)-$(VERSION)
327 top_distdir = $(distdir)
328
329 # This target untars the dist file and tries a VPATH configuration.  Then
330 # it guarantees that the distribution is self-contained by making another
331 # tarfile.
332 distcheck: dist
333         -rm -rf $(distdir)
334         GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
335         mkdir $(distdir)/=build
336         mkdir $(distdir)/=inst
337         dc_install_base=`cd $(distdir)/=inst && pwd`; \
338         cd $(distdir)/=build \
339           && ../configure --srcdir=.. --prefix=$$dc_install_base \
340           && $(MAKE) \
341           && $(MAKE) dvi \
342           && $(MAKE) check \
343           && $(MAKE) install \
344           && $(MAKE) installcheck \
345           && $(MAKE) dist
346         -rm -rf $(distdir)
347         @echo "========================"; \
348         echo "$(distdir).tar.gz is ready for distribution"; \
349         echo "========================"
350 dist: distdir
351         -chmod -R a+r $(distdir)
352         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
353         -rm -rf $(distdir)
354 dist-all: distdir
355         -chmod -R a+r $(distdir)
356         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
357         -rm -rf $(distdir)
358 distdir: $(DISTFILES)
359         -rm -rf $(distdir)
360         mkdir $(distdir)
361         -chmod 777 $(distdir)
362         here=`cd $(top_builddir) && pwd`; \
363         top_distdir=`cd $(distdir) && pwd`; \
364         distdir=`cd $(distdir) && pwd`; \
365         cd $(top_srcdir) \
366           && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
367         $(mkinstalldirs) $(distdir)/html
368         @for file in $(DISTFILES); do \
369           d=$(srcdir); \
370           test -f $(distdir)/$$file \
371           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
372           || cp -p $$d/$$file $(distdir)/$$file; \
373         done
374         for subdir in $(SUBDIRS); do \
375           test -d $(distdir)/$$subdir \
376           || mkdir $(distdir)/$$subdir \
377           || exit 1; \
378           chmod 777 $(distdir)/$$subdir; \
379           (cd $$subdir && $(MAKE) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
380             || exit 1; \
381         done
382
383 DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
384
385 -include $(DEP_FILES)
386
387 mostlyclean-depend:
388
389 clean-depend:
390
391 distclean-depend:
392
393 maintainer-clean-depend:
394         -rm -rf .deps
395
396 %.o: %.c
397         @echo '$(COMPILE) -c $<'; \
398         $(COMPILE) -Wp,-MD,.deps/$(*F).P -c $<
399
400 %.lo: %.c
401         @echo '$(LTCOMPILE) -c $<'; \
402         $(LTCOMPILE) -Wp,-MD,.deps/$(*F).p -c $<
403         @-sed -e 's/^\([^:]*\)\.o:/\1.lo \1.o:/' \
404           < .deps/$(*F).p > .deps/$(*F).P
405         @-rm -f .deps/$(*F).p
406 info: info-recursive
407 dvi: dvi-recursive
408 check: all-am
409         $(MAKE) check-recursive
410 installcheck: installcheck-recursive
411 all-recursive-am: config.h
412         $(MAKE) all-recursive
413
414 all-am: Makefile $(PROGRAMS) config.h
415
416 install-exec-am: install-binPROGRAMS
417
418 uninstall-am: uninstall-binPROGRAMS
419
420 install-exec: install-exec-recursive install-exec-am
421         @$(NORMAL_INSTALL)
422
423 install-data: install-data-recursive
424         @$(NORMAL_INSTALL)
425
426 install: install-recursive install-exec-am
427         @:
428
429 uninstall: uninstall-recursive uninstall-am
430
431 install-strip:
432         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
433 installdirs: installdirs-recursive
434         $(mkinstalldirs)  $(DATADIR)$(bindir)
435
436
437 mostlyclean-generic:
438         -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
439
440 clean-generic:
441         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
442
443 distclean-generic:
444         -rm -f Makefile $(DISTCLEANFILES)
445         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
446         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
447
448 maintainer-clean-generic:
449         -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
450         -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
451 mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
452                 mostlyclean-noinstPROGRAMS mostlyclean-compile \
453                 mostlyclean-tags mostlyclean-depend mostlyclean-generic
454
455 clean-am:  clean-hdr clean-binPROGRAMS clean-noinstPROGRAMS \
456                 clean-compile clean-tags clean-depend clean-generic \
457                 mostlyclean-am
458
459 distclean-am:  distclean-hdr distclean-binPROGRAMS \
460                 distclean-noinstPROGRAMS distclean-compile \
461                 distclean-tags distclean-depend distclean-generic \
462                 clean-am
463
464 maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
465                 maintainer-clean-noinstPROGRAMS \
466                 maintainer-clean-compile maintainer-clean-tags \
467                 maintainer-clean-depend maintainer-clean-generic \
468                 distclean-am
469
470 mostlyclean:  mostlyclean-recursive mostlyclean-am
471
472 clean:  clean-recursive clean-am
473
474 distclean:  distclean-recursive distclean-am
475         -rm -f config.status
476
477 maintainer-clean:  maintainer-clean-recursive maintainer-clean-am
478         @echo "This command is intended for maintainers to use;"
479         @echo "it deletes files that may require special tools to rebuild."
480         -rm -f config.status
481
482 .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
483 mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
484 maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
485 mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
486 clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
487 mostlyclean-compile distclean-compile clean-compile \
488 maintainer-clean-compile install-data-recursive \
489 uninstall-data-recursive install-exec-recursive \
490 uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
491 all-recursive check-recursive installcheck-recursive info-recursive \
492 dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
493 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
494 distclean-tags clean-tags maintainer-clean-tags distdir \
495 mostlyclean-depend distclean-depend clean-depend \
496 maintainer-clean-depend info dvi installcheck all-recursive-am all-am \
497 install-exec-am uninstall-am install-exec install-data install \
498 uninstall all installdirs mostlyclean-generic distclean-generic \
499 clean-generic maintainer-clean-generic clean mostlyclean distclean \
500 maintainer-clean
501
502
503 native.c: nativetypes.hh alpha/offsets.h nativetable.hh
504
505 nativetypes.hh alpha/offsets.h nativetable.hh: cacaoh
506         ./cacaoh \
507                 java.lang.Object \
508                 java.lang.String \
509                 java.lang.Class \
510                 java.lang.ClassLoader \
511                 java.lang.Compiler \
512                 java.lang.Double \
513                 java.lang.Float \
514                 java.lang.Math \
515                 java.lang.Runtime \
516                 java.lang.SecurityManager \
517                 java.lang.System \
518                 java.lang.Thread \
519                 java.lang.ThreadGroup \
520                 java.lang.Throwable \
521                 java.io.File \
522                 java.io.FileDescriptor \
523                 java.io.FileInputStream \
524                 java.io.FileOutputStream \
525                 java.io.PrintStream \
526                 java.io.RandomAccessFile \
527                 java.util.Properties \
528                 java.util.Date
529
530 alpha/asmpart.o: $(top_srcdir)/alpha/asmpart.c alpha/offsets.h
531         rm -f alpha/asmpart.s
532         gcc -E $(INCLUDES) $(top_srcdir)/alpha/asmpart.c \
533                         > alpha/asmpart.s
534         gcc $(CFLAGS) $(INCLUDES) -c -o alpha/asmpart.o \
535                         alpha/asmpart.s
536         rm -f asmpart.s
537
538 compiler.o: $(top_srcdir)/builtin.h $(top_srcdir)/compiler.h \
539                     $(top_srcdir)/global.h $(top_srcdir)/loader.h \
540                 $(top_srcdir)/tables.h $(top_srcdir)/native.h \
541             $(top_srcdir)/asmpart.h $(top_srcdir)/compiler.c $(top_srcdir)/comp/*.c \
542             $(top_srcdir)/alpha/gen.c $(top_srcdir)/alpha/disass.c
543         gcc $(CFLAGS) -I. $(INCLUDES) -c $(top_srcdir)/compiler.c
544
545 jit.o: jit.c \
546         jit/mcode.c \
547         jit/parse.c \
548         jit/reg.c \
549         jit/stack.c \
550         jit/jitdef.h \
551         narray/graph.c \
552         narray/loop.c \
553         narray/analyze.c \
554         narray/tracing.c \
555         narray/loop.h
556
557 # Tell versions [3.59,3.63) of GNU make to not export all variables.
558 # Otherwise a system limit (for SysV at least) may be exceeded.
559 .NOEXPORT: