-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (29 loc) · 842 Bytes
/
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
PIN=/home/neil/pin
PINTOOL=/home/neil/Triton/build
PD=programs
BIN=$(PD)/$P
CC = gcc
all: array thread test overflow signed
array: $(PD)/array.c
$(CC) -o $(PD)/a.out $(PD)/array.c
thread: $(PD)/multi_thread.c
$(CC) -o $(PD)/m.out $(PD)/multi_thread.c -lpthread
float: $(PD)/float.c
$(CC) -o $(PD)/f.out $(PD)/float.c
overflow: $(PD)/overflow.c
$(CC) -o $(PD)/o.out $(PD)/overflow.c
signed: $(PD)/signed.c
$(CC) -o $(PD)/s.out $(PD)/signed.c
context: $(PD)/context.c
$(CC) -o $(PD)/c.out $(PD)/context.c
test: $(PD)/test.c
$(CC) -o $(PD)/t.out $(PD)/test.c
triton: triton_run.py
echo "=== Using Triton ==="
$(PINTOOL)/triton triton_run.py $(BIN)
angr: angr_run.py
echo "=== Using angr ==="
python angr_run.py $(BIN)
clean:
rm -f core
rm -f $(PD)/*.out $(PD)/*.s $(PD)/core