tag for irloop datastructure
[libfirm] / testprograms / Makefile.in
1 # Hey Emacs, this is a -*- makefile -*-
2 #
3 # libFIRM Project
4 #
5 # $Id$
6 #
7
8 top_srcdir := @top_srcdir@
9 srcdir = @srcdir@
10 topdir = ..
11 subdir := testprograms
12
13
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
22
23 bin_EXAMPLES = $(CFILES:.c=)
24 run_bin_EXAMPLES = $(patsubst %.c,./%;,$(CFILES))
25
26
27 include $(topdir)/MakeRules
28
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
32
33 LDFLAGS += -L$(topdir)
34 LDLIBS += -lfirm -lgmp -liberty
35
36 GENFILES := $(bin_EXAMPLES) *.vcg
37
38 include $(top_srcdir)/MakeTargets
39
40 all:    $(bin_EXAMPLES) $(topdir)/libfirm.a
41
42 run:
43         $(run_bin_EXAMPLES)