minor fixes
[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
21
22 bin_EXAMPLES = $(CFILES:.c=)
23 run_bin_EXAMPLES = $(CFILES:.c=;)
24
25 include $(topdir)/MakeRules
26
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 \
29                 -I$(top_srcdir)/ir/tv
30
31 LDFLAGS += -L$(topdir)
32 LDLIBS += -lfirm -lgmp
33
34 include $(top_srcdir)/MakeTargets
35
36 all:    $(bin_EXAMPLES) $(topdir)/libfirm.a
37
38 run:
39         $(run_bin_EXAMPLES)
40
41 # this generates error messages
42 local_clean:
43         $(RM) $(OFILES) $(bin_EXAMPLES) *.vcg core