1 # Hey Emacs, this is a -*- makefile -*-
8 top_srcdir := @top_srcdir@
11 subdir := testprograms
14 SOURCES := Makefile.in \
15 array-heap_example.c empty.c irr_cf_example.c \
16 array-stack_example.c global_var_example.c irr_loop_example.c \
17 call_str_example.c if_else_example.c memory_example.c \
18 cond_example.c if_example.c oo_program_example.c \
19 const_eval_example.c if_while_example.c three_cfpred_example.c \
20 dead_block_example.c inheritance_example.c while_example.c
22 bin_EXAMPLES = $(CFILES:.c=)
23 run_bin_EXAMPLES = $(CFILES:.c=;)
25 include $(topdir)/MakeRules
27 CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/debug \
28 -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/tr \
31 LDFLAGS += -L$(topdir)
32 LDLIBS += -lfirm -lgmp
34 include $(top_srcdir)/MakeTargets
36 all: $(bin_EXAMPLES) $(topdir)/libfirm.a
41 # this generates error messages
43 $(RM) $(OFILES) $(bin_EXAMPLES) *.vcg core