about summary refs log tree commit diff
path: root/frida_mode/many-linux/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'frida_mode/many-linux/GNUmakefile')
-rw-r--r--frida_mode/many-linux/GNUmakefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/frida_mode/many-linux/GNUmakefile b/frida_mode/many-linux/GNUmakefile
new file mode 100644
index 00000000..2860f20c
--- /dev/null
+++ b/frida_mode/many-linux/GNUmakefile
@@ -0,0 +1,21 @@
+PWD:=$(shell pwd)/
+BUILD_DIR:=$(PWD)build/
+
+.PHONY: all clean shell
+
+all: | $(BUILD_DIR)
+	docker build --tag many-afl-frida .
+	docker run --rm \
+		-v $(PWD)build/:/export \
+		many-afl-frida \
+		cp /AFLplusplus/afl-frida-trace.so /export
+
+$(BUILD_DIR):
+	mkdir -p $@
+
+clean:
+	rm -rf $(BUILD_DIR)
+	docker images --filter 'dangling=true' -q --no-trunc | xargs -L1 docker rmi --force
+
+shell:
+	docker run -ti --rm many-afl-frida /bin/bash