about summary refs log tree commit diff
path: root/qemu_mode/hooking_bridge/Makefile
diff options
context:
space:
mode:
authorSubhojeet Mukherjee, PhD <subhojeet.m@gmail.com>2024-07-01 05:43:45 +0000
committerSubhojeet Mukherjee, PhD <subhojeet.m@gmail.com>2024-07-01 05:52:06 +0000
commitb169629dbd1cd0b78b541c7fa8eccf6a6a7394b1 (patch)
tree4a1108a4ffe96db28a31b5fcda1b49c65c806551 /qemu_mode/hooking_bridge/Makefile
parenta7f928ac31bd75d91f93631790d95a86d13e134f (diff)
downloadafl++-b169629dbd1cd0b78b541c7fa8eccf6a6a7394b1.tar.gz
Fresh commit with all -- post revertion due to unicornafl update
Diffstat (limited to 'qemu_mode/hooking_bridge/Makefile')
-rw-r--r--qemu_mode/hooking_bridge/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/qemu_mode/hooking_bridge/Makefile b/qemu_mode/hooking_bridge/Makefile
new file mode 100644
index 00000000..dcc6f12a
--- /dev/null
+++ b/qemu_mode/hooking_bridge/Makefile
@@ -0,0 +1,18 @@
+.PHONY: clean
+
+all: plugin
+SRC=./src
+BLD=./build
+INC=-I./inc -I../qemuafl/include -I$(GLIB_H) -I$(GLIB_CONFIG_H)
+# CC=gcc
+
+$(BLD)/patching.o:$(SRC)/patching.c
+	$(CC) -c -fPIC $(INC) -o $(BLD)/patching.o $(SRC)/patching.c
+	
+plugin:$(SRC)/main.c $(BLD)/patching.o
+	$(CC) -c -fPIC $(INC) -o $(BLD)/plugin.o $(SRC)/main.c
+	$(CC) -shared -o $(BLD)/plugin.so $(BLD)/plugin.o $(BLD)/patching.o
+
+clean:
+	rm -rf $(BLD)/*.o
+	rm -rf $(BLD)/*.so
\ No newline at end of file