2 DIRS = adt common debug ident ir tr tv
3 INCDIRS = $(DIRS:%=-I../ir/%) -I../ir/include
5 LIBDIRS=-L.. -L/usr/public/lib/gmp/
9 gcc -c $(INCDIRS) -g $<
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 \
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 \
41 array-stack_example; \
51 gcc -o empty empty.o $(LIBDIRS) $(LIBS)
53 const_eval_example: const_eval_example.o
54 gcc -o const_eval_example const_eval_example.o $(LIBDIRS) $(LIBS)
56 if_example: if_example.o
57 gcc -o if_example if_example.o $(LIBDIRS) $(LIBS)
59 if_else_example: if_else_example.o
60 gcc -o if_else_example if_else_example.o $(LIBDIRS) $(LIBS)
62 if_while_example: if_while_example.o
63 gcc -o if_while_example if_while_example.o $(LIBDIRS) $(LIBS)
65 cond_example: cond_example.o
66 gcc -o cond_example cond_example.o $(LIBDIRS) $(LIBS)
68 call_str_example: call_str_example.o
69 gcc -o call_str_example call_str_example.o $(LIBDIRS) $(LIBS)
71 memory_example: memory_example.o
72 gcc -o memory_example memory_example.o $(LIBDIRS) $(LIBS)
74 array-stack_example: array-stack_example.o
75 gcc -o array-stack_example array-stack_example.o $(LIBDIRS) $(LIBS)
77 array-heap_example: array-heap_example.o
78 gcc -o array-heap_example array-heap_example.o $(LIBDIRS) $(LIBS)
80 oo_program_example: oo_program_example.o
81 gcc -o oo_program_example oo_program_example.o $(LIBDIRS) $(LIBS)
83 irr_cf_example: irr_cf_example.o
84 gcc -o irr_cf_example irr_cf_example.o $(LIBDIRS) $(LIBS)
86 irr_loop_example: irr_loop_example.o
87 gcc -o irr_loop_example irr_loop_example.o $(LIBDIRS) $(LIBS)
89 dead_block_example: dead_block_example.o
90 gcc -o dead_block_example dead_block_example.o $(LIBDIRS) $(LIBS)
92 global_var_example: global_var_example.o
93 gcc -o global_var_example global_var_example.o $(LIBDIRS) $(LIBS)
95 three_cfpred_example: three_cfpred_example.o
96 gcc -o three_cfpred_example three_cfpred_example.o $(LIBDIRS) $(LIBS)