stupid encoding error on i44pc47
[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   empty.c                irr_cf_example.c          \
24         array-stack_example.c  global_var_example.c   irr_loop_example.c        \
25         call_str_example.c     if_else_example.c      memory_example.c          \
26         cond_example.c         if_example.c           oo_program_example.c      \
27         const_eval_example.c   if_while_example.c     three_cfpred_example.c    \
28         dead_block_example.c   inheritance_example.c  while_example.c           \
29         endless_loop.c         global_cse.c           oo_inline_example.c
30
31 GENFILES = %.vcg results.txt
32
33 bin_EXAMPLES = $(CFILES:.c=)
34 run_bin_EXAMPLES = $(patsubst %.c,./%;,$(CFILES))
35
36 include $(topdir)/MakeRules
37
38 CPPFLAGS += -I$(top_srcdir)/ir/adt -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/debug \
39                 -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/tr \
40                 -I$(top_srcdir)/ir/tv -I$(top_srcdir)/ir/st  -I$(top_srcdir)/ir/ana
41
42 LDFLAGS = -L$(topdir)
43 LDFLAGS+= @LDFLAGS@
44 LDLIBS += -lfirm -liberty
45
46 GENFILES := $(bin_EXAMPLES) *.vcg
47
48 include $(top_srcdir)/MakeTargets
49
50 all:    $(bin_EXAMPLES) $(topdir)/libfirm.a
51
52 $(bin_EXAMPLES): $(topdir)/libfirm.a
53
54 run:
55         $(run_bin_EXAMPLES)
56
57 test:   realclean all
58         ls >.ignore
59         rm -rf results; mkdir results; ($(run_bin_EXAMPLES)) >results/run-result.txt; \
60         mv *.vcg results; cd results;
61         @($(DIFF) --exclude=CVS results $(REF_DIR) && \
62         echo Libfirm test successful ) || echo Libfirm test failed ;
63
64 reference: realclean all
65         $(RM) $(REF_DIR)/*.vcg
66         ($(run_bin_EXAMPLES))>$(REF_DIR)/run-result.txt
67         install -c -m0644 *.vcg $(REF_DIR)