changed inline to INLINE, removed C99
[libfirm] / ir / stat / Makefile.in
index 6e08a6f..a100f54 100644 (file)
@@ -14,20 +14,29 @@ top_srcdir := @top_srcdir@
 srcdir = @srcdir@
 topdir = ../..
 subdir := ir/ir
+# do we want statistics
+enable_statistics := @enable_statistics@
 
-INSTALL_HEADERS =
+INSTALL_HEADERS = firmstat.h
 
 SOURCES = $(INSTALL_HEADERS)
 
 SOURCES +=     Makefile.in \
-               firmstat.h \
                firmstat.c
 
+ifeq ($(enable_statistics),yes)
+SOURCES += firmstat_t.h pattern.c pattern.h dags.c dags.h counter.h \
+           pattern_dmp.c pattern_dmp.h distrib.c stat_dmp.h stat_dmp.c \
+          const_stat.c
+endif
+
+
 include $(topdir)/MakeRules
 
 CPPFLAGS +=    -I$(top_srcdir)/ir/adt   -I$(top_srcdir)/ir/ir  -I$(top_srcdir)/ir/common  \
                -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/tr  -I$(top_srcdir)/ir/tv \
-               -I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st
+               -I$(top_srcdir)/ir/debug -I$(top_srcdir)/ir/ana -I$(top_srcdir)/ir/st \
+                -I$(top_srcdir)/ir/external -I$(topdir)/ir/config
 
 include $(top_srcdir)/MakeTargets