block walk in irouts.
[libfirm] / testprograms / Makefile.in
index 53cf327..2e19e87 100644 (file)
@@ -17,10 +17,12 @@ SOURCES := Makefile.in \
        call_str_example.c     if_else_example.c      memory_example.c          \
        cond_example.c         if_example.c           oo_program_example.c      \
        const_eval_example.c   if_while_example.c     three_cfpred_example.c    \
-       dead_block_example.c   inheritance_example.c
+       dead_block_example.c   inheritance_example.c  while_example.c           \
+       endless_loop.c         global_cse.c           oo_inline_example.c
 
 bin_EXAMPLES = $(CFILES:.c=)
-run_bin_EXAMPLES = $(CFILES:.c=;)
+run_bin_EXAMPLES = $(patsubst %.c,./%;,$(CFILES))
+
 
 include $(topdir)/MakeRules
 
@@ -29,7 +31,9 @@ CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/
                -I$(top_srcdir)/ir/tv
 
 LDFLAGS += -L$(topdir)
-LDLIBS += -lfirm -lgmp
+LDLIBS += -lfirm -lgmp -liberty
+
+GENFILES := $(bin_EXAMPLES) *.vcg
 
 include $(top_srcdir)/MakeTargets
 
@@ -37,7 +41,3 @@ all:  $(bin_EXAMPLES) $(topdir)/libfirm.a
 
 run:
        $(run_bin_EXAMPLES)
-
-# this generates error messages
-local_clean:
-       $(RM) $(OFILES) $(bin_EXAMPLES) *.vcg core