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 \
21 endless_loop.c global_cse.c oo_inline_example.c
23 bin_EXAMPLES = $(CFILES:.c=)
24 run_bin_EXAMPLES = $(patsubst %.c,./%;,$(CFILES))
27 include $(topdir)/MakeRules
29 CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/debug \
30 -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/tr \
31 -I$(top_srcdir)/ir/tv -I$(top_srcdir)/ir/st -I$(top_srcdir)/ir/ana
33 LDFLAGS += -L$(topdir)
34 LDLIBS += -lfirm -lgmp -liberty
36 GENFILES := $(bin_EXAMPLES) *.vcg
38 include $(top_srcdir)/MakeTargets
40 all: $(bin_EXAMPLES) $(topdir)/libfirm.a