*** empty log message ***
[libfirm] / testprograms / Makefile
1
2 DIRS = adt common debug ident ir tr tv
3 INCDIRS = $(DIRS:%=-I../ir/%) -I../ir/include
4
5 LIBDIRS=-L.. -L/usr/public/lib/gmp/
6 LIBS=-lfirm -lgmp -lm
7
8 %.o:    %.c
9         gcc -c $(INCDIRS) -g $<
10
11 all: empty const_eval_example                                   \
12      if_example if_else_example if_while_example cond_example   \
13      call_str_example memory_example array-stack_example        \
14      array-heap_example oo_program_example irr_cf_example       \
15      irr_loop_example dead_block_example global_var_example     \
16      three_cfpred_example
17
18 clean:
19         rm -f                                   \
20         empty const_eval_example                \
21         if_example if_else_example              \
22         if_while_example cond_example           \
23         call_str_example memory_example         \
24         array-stack_example array-heap_example  \
25         oo_program_example irr_cf_example       \
26         irr_loop_example dead_block_example     \
27         global_var_example three_cfpred_example \
28         *.o *.vcg core
29
30 realclean:      clean
31
32 run:
33         ./empty;                \
34         const_eval_example;     \
35         if_example;             \
36         if_else_example;        \
37         if_while_example;       \
38         cond_example;           \
39         call_str_example;       \
40         memory_example;         \
41         array-stack_example;    \
42         array-heap_example;     \
43         oo_program_example;     \
44         irr_cf_example;         \
45         irr_loop_example;       \
46         dead_block_example;     \
47         global_var_example;     \
48         three_cfpred_example;
49
50 empty: empty.o
51         gcc -o empty empty.o $(LIBDIRS) $(LIBS)
52
53 const_eval_example: const_eval_example.o
54         gcc -o const_eval_example const_eval_example.o $(LIBDIRS) $(LIBS)
55
56 if_example: if_example.o
57         gcc -o if_example if_example.o $(LIBDIRS) $(LIBS)
58
59 if_else_example: if_else_example.o
60         gcc -o if_else_example if_else_example.o $(LIBDIRS) $(LIBS)
61
62 if_while_example: if_while_example.o
63         gcc -o if_while_example if_while_example.o $(LIBDIRS) $(LIBS)
64
65 cond_example: cond_example.o
66         gcc -o cond_example cond_example.o $(LIBDIRS) $(LIBS)
67
68 call_str_example: call_str_example.o
69         gcc -o call_str_example call_str_example.o $(LIBDIRS) $(LIBS)
70
71 memory_example: memory_example.o
72         gcc -o memory_example memory_example.o $(LIBDIRS) $(LIBS)
73
74 array-stack_example: array-stack_example.o
75         gcc -o array-stack_example array-stack_example.o $(LIBDIRS) $(LIBS)
76
77 array-heap_example: array-heap_example.o
78         gcc -o array-heap_example array-heap_example.o $(LIBDIRS) $(LIBS)
79
80 oo_program_example: oo_program_example.o
81         gcc -o oo_program_example oo_program_example.o $(LIBDIRS) $(LIBS)
82
83 irr_cf_example: irr_cf_example.o
84         gcc -o irr_cf_example irr_cf_example.o $(LIBDIRS) $(LIBS)
85
86 irr_loop_example: irr_loop_example.o
87         gcc -o irr_loop_example irr_loop_example.o $(LIBDIRS) $(LIBS)
88
89 dead_block_example: dead_block_example.o
90         gcc -o dead_block_example dead_block_example.o $(LIBDIRS) $(LIBS)
91
92 global_var_example: global_var_example.o
93         gcc -o global_var_example global_var_example.o $(LIBDIRS) $(LIBS)
94
95 three_cfpred_example: three_cfpred_example.o
96         gcc -o three_cfpred_example three_cfpred_example.o $(LIBDIRS) $(LIBS)