-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (35 loc) · 1.23 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
CXXFLAGS = -g -std=c++17 -IELFIO -lcapstone -lkeystone -I.
vpath %.cpp countermeasures
vpath %.h countermeasures
harden: disasm.o cfg.o analysis.o reg-alloc.o test.o eddi.o rasm.o swift.o post-process.o
g++ $^ $(CXXFLAGS) -o $@
post-process.o: post-process.cpp post-process.h
g++ -c $(CXXFLAGS) $< -o $@
swift.o: swift.cpp swift.h
g++ -c $(CXXFLAGS) $< -o $@
eddi.o: eddi.cpp eddi.h
g++ -c $(CXXFLAGS) $< -o $@
rasm.o: rasm.cpp rasm.h
g++ -c $(CXXFLAGS) $< -o $@
disasm.o: disasm.cpp disasm.h
g++ -c $(CXXFLAGS) $< -o $@
cfg.o: cfg.cpp cfg.h disasm.h
g++ -c $(CXXFLAGS) $< -o $@
analysis.o: analysis.cpp analysis.h cfg.h disasm.h
g++ -c $(CXXFLAGS) $< -o $@
reg-alloc.o: reg-alloc.cpp reg-alloc.h analysis.h cfg.h disasm.h
g++ -c $(CXXFLAGS) $< -o $@
no_change: disasm.o test_no_change.o
g++ $^ $(CXXFLAGS) -o harden
test_cfg: disasm.o test_cfg.cpp cfg.o
g++ $^ $(CXXFLAGS) -o harden
test_liveness: disasm.o cfg.o analysis.o test_liveness.cpp
g++ $^ $(CXXFLAGS) -o harden
test_alloc: disasm.o cfg.o analysis.o reg-alloc.o test_alloc.cpp
g++ $^ $(CXXFLAGS) -o harden
test_stack: disasm.o cfg.o analysis.o test_stack.cpp
g++ $^ $(CXXFLAGS) -o harden
test_asm: test_asm.cpp
g++ $^ $(CXXFLAGS) -o test_asm
clean:
rm *.o harden