Implemented the computation of outedges in interprocedural graphs
[libfirm] / testprograms / Makefile.in
1
2 #
3 # Project:     libFIRM
4 # File name:   testprograms/Makefile.in
5 # Purpose:
6 # Author:      Boris Boesler, Till Riedel
7 # Modified by:
8 # Created:
9 # CVS-ID:      $Id$
10 # Copyright:   (c) 1999-2003 Universität Karlsruhe
11 # Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
12 #
13
14 top_srcdir := @top_srcdir@
15 srcdir = @srcdir@
16 topdir = ..
17 subdir := testprograms
18
19 DIFF ?= diff -c0
20 REF_DIR = $(srcdir)/ref-results
21
22 SOURCES := Makefile.in          \
23         array-heap_example.c    \
24         array-stack_example.c   \
25         call_str_example.c      \
26         cond_example.c          \
27         const_ent_example.c     \
28         const_eval_example.c    \
29         dead_block_example.c    \
30         empty.c                 \
31         endless_loop.c          \
32         float_example.c         \
33         global_cse.c            \
34         global_var_example.c    \
35         if_else_example.c       \
36         if_example.c            \
37         if_while_example.c      \
38         inheritance_example.c   \
39         irr_cf_example.c        \
40         irr_loop_example.c      \
41         memory_example.c        \
42         oo_inline_example.c     \
43         oo_program_example.c    \
44         three_cfpred_example.c  \
45         while_example.c
46
47 GENFILES = %.vcg results.txt
48
49 bin_EXAMPLES = $(CFILES:.c=)
50 run_bin_EXAMPLES = $(patsubst %.c,./%;,$(CFILES))
51
52 include $(topdir)/MakeRules
53
54 CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/debug \
55                 -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/tr \
56                 -I$(top_srcdir)/ir/tv -I$(top_srcdir)/ir/st  -I$(top_srcdir)/ir/ana
57
58 LDFLAGS = -L$(topdir)
59 LDFLAGS+= @LDFLAGS@
60 LDLIBS += -lfirm -liberty
61
62 GENFILES := $(bin_EXAMPLES) *.vcg
63
64 include $(top_srcdir)/MakeTargets
65
66 all:    $(bin_EXAMPLES) $(topdir)/libfirm.a
67
68 $(bin_EXAMPLES): $(topdir)/libfirm.a
69
70 run:
71         $(run_bin_EXAMPLES)
72
73 test:   realclean all
74         ls >.ignore
75         rm -rf results; mkdir results; ($(run_bin_EXAMPLES)) >results/run-result.txt; \
76         mv *.vcg results; cd results;
77         @($(DIFF) --exclude=CVS results $(REF_DIR) && \
78         echo Libfirm test successful ) || echo Libfirm test failed ;
79
80 reference: realclean all
81         $(RM) $(REF_DIR)/*.vcg
82         ($(run_bin_EXAMPLES))>$(REF_DIR)/run-result.txt
83         install -c -m0644 *.vcg $(REF_DIR)