1 # Hey Emacs, this is a -*- makefile -*-
10 # top directory of the source tree
11 top_srcdir := @top_srcdir@
12 # directory with the sources for this directory
14 # top directory of the configured tree
16 # subdirectory under topdir
19 subdirs := ir ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/tr ir/ana ir/st
21 SOURCES := Makefile.in MakeRules.in MakeTargets\
22 aclocal.m4 config.h.in\
23 config.guess config.sub configure.in \
24 stamp-h.in install-sh README configure
26 INSTALL_LIBS = libfirm.a
28 GENFILES := stamp-h config.log config.cache
29 # config.status config.h.in $(srcdir)/stamp-h.in
31 include $(topdir)/MakeRules
33 XOFILES += $(addsuffix /subdir.o, $(subdirs))
35 include $(top_srcdir)/MakeTargets
38 all: config.h Makefile libfirm.a
40 libfirm.a: subdir_all $(XOFILES) $(OFILES)
41 $(AR) $(ARFLAGS) $@.new $(XOFILES) $(OFILES)
45 testprograms: libfirm.a
46 $(MAKE) -C testprograms
49 # gernerate program documentation
51 autodoc: $(AUTODOCDIR) $(AUTODOCINDEXFILE)
53 .PHONY: $(AUTDOCINDEXFILE)
54 $(AUTODOCINDEXFILE): $(CFILES) $(HFILES)
55 $(AUTODOC) $(AUTODOCFILE)
58 #${srcdir}/configure: configure.in aclocal.m4
59 $(srcdir)/configure: configure.in
60 cd $(srcdir) && autoconf
62 # autoheader might not change config.h.in, so touch a stamp file.
63 $(srcdir)/config.h.in: stamp-h.in
65 #${srcdir
\1c2/stamp-h.in: configure.in aclocal.m4 acconfig.h \
66 $(srcdir)/stamp-h.in: configure.in
67 cd $(srcdir) && autoheader
68 echo timestamp > $(srcdir)/stamp-h.in
71 stamp-h: config.h.in config.status
74 config.status: configure
75 ./config.status --recheck
78 $(MAKE) -C testprograms test;
81 $(MAKE) -C testprograms reference;
84 $(MAKE) -C testprograms realclean