topdir := .
# subdirectory under topdir
subdir := .
+# do we want statistics
+enable_statistics := @enable_statistics@
-subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/tr ir/ana ir/st
+subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/opt ir/tr ir/ana ir/st ir/stat
SOURCES := Makefile.in MakeRules.in MakeTargets\
aclocal.m4 config.h.in\
# add target firmjni if configured with --enable-firmjni
all: firm
-firm: config.h Makefile libfirm.a
+firm: libfirm.a
-libfirm.a: subdir_all $(XOFILES) $(OFILES)
+$(OFILES): config.h Makefile
+
+$(XOFILES): subdir_all
+
+libfirm.a: $(XOFILES) $(OFILES)
$(AR) $(ARFLAGS) $@.new $(XOFILES) $(OFILES)
$(RANLIB) $@.new
mv -f $@.new $@