forked from alibaba/xoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (78 loc) · 1.85 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
COM_OBJS +=\
com/ltype.o \
com/comf.o \
com/smempool.o \
com/agraph.o \
com/sgraph.o \
com/rational.o \
com/linsys.o \
com/xmat.o \
com/testbs.o \
com/flty.o \
com/bs.o
OPT_OBJS +=\
opt/cfs_opt.o\
opt/dbg.o\
opt/goto_opt.o\
opt/if_opt.o \
opt/ir.o\
opt/ir_bb.o\
opt/ir_du.o\
opt/du.o\
opt/ir_cfg.o\
opt/ir_simp.o\
opt/ir_gvn.o\
opt/ir_rce.o\
opt/ir_dce.o\
opt/ir_cp.o\
opt/ir_lcse.o\
opt/ir_gcse.o\
opt/ir_licm.o\
opt/ir_ivr.o\
opt/ir_middle_opt.o\
opt/ir_high_opt.o\
opt/ir_expr_tab.o\
opt/cdg.o\
opt/ir_refine.o\
opt/ir_rp.o\
opt/ir_aa.o\
opt/ir_ssa.o\
opt/label.o\
opt/data_type.o \
opt/option.o\
opt/region.o\
opt/util.o\
opt/var.o\
opt/md.o\
opt/cfs_mgr.o\
opt/pass_mgr.o\
opt/inliner.o\
opt/ipa.o\
opt/callg.o\
opt/loop.o\
opt/ir_loop_cvt.o\
opt/prdf.o
CFLAGS = -DFOR_DEX -D_DEBUG_ -O0 -g2 -Wno-write-strings -Wsign-promo \
-Wsign-compare -Wpointer-arith -Wno-multichar -Winit-self \
-Wstrict-aliasing=3 -finline-limit=10000000 -Wswitch #-Wall
#-Werror=overloaded-virtual \
all: com_objs opt_objs
ar rcs libxoc.a $(COM_OBJS) $(OPT_OBJS)
@echo "success!!"
INC=-I opt -I com -I dex -I .
%.o:%.cpp
@echo "build $<"
gcc $(CFLAGS) $(INC) -c $< -o $@
com_objs: $(COM_OBJS)
opt_objs: $(OPT_OBJS)
clean:
@find -name "*.o" | xargs rm -f
@find -name "*.a" | xargs rm -f
@find -name "*.dot" | xargs rm -f
@find -name "*.exe" | xargs rm -f
@find -name "*.elf" | xargs rm -f
@find -name "*.out" | xargs rm -f
@find -name "*.tmp" | xargs rm -f
@find -name "*.vcg" | xargs rm -f
@find -name "*.cxx" | xargs rm -f
@find -name "*.asm" | xargs rm -f