3 # File name: Makefile.in
4 # Purpose: Top level Makefile
9 # Copyright: (c) 2002-2003 Universität Karlsruhe
10 # Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
14 # top directory of the source tree
15 top_srcdir := @top_srcdir@
16 # directory with the sources for this directory
18 # top directory of the configured tree
20 # subdirectory under topdir
23 subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/tr ir/ana ir/st
25 SOURCES := Makefile.in MakeRules.in MakeTargets\
26 aclocal.m4 config.h.in\
27 config.guess config.sub configure.in \
28 stamp-h.in install-sh README configure
30 INSTALL_LIBS = libfirm.a
32 GENFILES := stamp-h config.log config.cache
33 # config.status config.h.in $(srcdir)/stamp-h.in
35 include $(topdir)/MakeRules
37 XOFILES += $(addsuffix /subdir.o, $(subdirs))
39 include $(top_srcdir)/MakeTargets
41 # add target firmjni if configured with --enable-firmjni
46 $(OFILES): config.h Makefile
48 $(XOFILES): subdir_all
50 libfirm.a: $(XOFILES) $(OFILES)
51 $(AR) $(ARFLAGS) $@.new $(XOFILES) $(OFILES)
55 libfirm.so: subdir_all $(XOFILES) $(OFILES)
56 ld -Bshareable -o ./libfirm.so $(XOFILES) -lm
58 testprograms: libfirm.a
59 $(MAKE) -C testprograms
64 # gernerate program documentation
66 autodoc: $(AUTODOCDIR) $(AUTODOCINDEXFILE)
68 .PHONY: $(AUTDOCINDEXFILE)
69 $(AUTODOCINDEXFILE): $(CFILES) $(HFILES)
70 $(AUTODOC) $(AUTODOCFILE)
73 #${srcdir}/configure: configure.in aclocal.m4
74 $(srcdir)/configure: configure.in
75 cd $(srcdir) && autoconf
77 # autoheader might not change config.h.in, so touch a stamp file.
78 $(srcdir)/config.h.in: stamp-h.in
80 #${srcdir
\1c2/stamp-h.in: configure.in aclocal.m4 acconfig.h \
81 $(srcdir)/stamp-h.in: configure.in
82 cd $(srcdir) && autoheader
83 echo timestamp > $(srcdir)/stamp-h.in
86 stamp-h: config.h.in config.status
89 config.status: configure
90 ./config.status --recheck
92 # add target test-firmjni if configured with --enable-firmjni
94 $(MAKE) -C testprograms test;
97 $(MAKE) -C firmjni test;
100 $(MAKE) -C testprograms reference;
103 $(MAKE) -C testprograms realclean
104 $(MAKE) -C firmjni/testprograms clean;