Checks now the Load_mode
[libfirm] / Makefile.in
index 12daac7..d698da0 100644 (file)
@@ -19,15 +19,17 @@ srcdir := @srcdir@
 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\
           config.guess config.sub configure.in \
           stamp-h.in install-sh README configure
 
-INSTALL_LIBS = libfirm.a libfirm.so
+INSTALL_LIBS = libfirm.a
 
 GENFILES := stamp-h config.log config.cache
 # config.status config.h.in $(srcdir)/stamp-h.in
@@ -41,9 +43,13 @@ include $(top_srcdir)/MakeTargets
 # 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 $@