File: GNUmakefile

package info (click to toggle)
aflplusplus 4.33c-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,740 kB
  • sloc: ansic: 111,574; cpp: 16,019; sh: 4,766; python: 4,546; makefile: 1,000; javascript: 521; java: 43; sql: 3; xml: 1
file content (37 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (4)
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
PWD:=$(shell pwd)/
ROOT:=$(PWD)../../../
BUILD_DIR:=$(PWD)build/
TESTINSTR_DATA_DIR:=$(BUILD_DIR)in/
FRIDA_OUT:=$(BUILD_DIR)frida-out
QEMU_OUT:=$(BUILD_DIR)qemu-out

.PHONY: all clean run qemu frida

all:
	make -C $(ROOT)frida_mode/

clean:
	rm -rf $(BUILD_DIR)

$(BUILD_DIR):
	mkdir -p $@

$(TESTINSTR_DATA_DIR): | $(BUILD_DIR)
	mkdir -p $@

run:
	date
	/usr/bin/python -c 'print("hi");'
	date

qemu:
	date
	$(ROOT)afl-qemu-trace \
		/usr/bin/python -c 'print("hi");'
	date

frida:
	date
	LD_PRELOAD=$(ROOT)afl-frida-trace.so \
		python -c 'print("hi");'
	date