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/stat ir/external # ir/st
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
+SHARED_LIB = libfirm.so
+
+INSTALL_LIBS = libfirm.a $(SHARED_LIB)
GENFILES := stamp-h config.log config.cache
# config.status config.h.in $(srcdir)/stamp-h.in
# add target firmjni if configured with --enable-firmjni
all: firm
-firm: config.h Makefile libfirm.a
+firm: libfirm.a $(SHARED_LIB)
+
+$(OFILES): config.h Makefile
+
+$(XOFILES): subdir_all
-libfirm.a: subdir_all $(XOFILES) $(OFILES)
+libfirm.a: $(XOFILES) $(OFILES)
$(AR) $(ARFLAGS) $@.new $(XOFILES) $(OFILES)
$(RANLIB) $@.new
mv -f $@.new $@
# gernerate program documentation
.PHONY: autodoc
-autodoc: $(AUTODOCDIR) $(AUTODOCINDEXFILE)
-
-.PHONY: $(AUTDOCINDEXFILE)
-$(AUTODOCINDEXFILE): $(CFILES) $(HFILES)
- $(AUTODOC) $(AUTODOCFILE)
-
+autodoc: $(DOXYFILE)
+ $(DOXYGEN) $(DOXYFILE)
#${srcdir}/configure: configure.in aclocal.m4
$(srcdir)/configure: configure.in