From b169629dbd1cd0b78b541c7fa8eccf6a6a7394b1 Mon Sep 17 00:00:00 2001 From: "Subhojeet Mukherjee, PhD" Date: Mon, 1 Jul 2024 05:43:45 +0000 Subject: Fresh commit with all -- post revertion due to unicornafl update --- qemu_mode/hooking_bridge/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 qemu_mode/hooking_bridge/Makefile (limited to 'qemu_mode/hooking_bridge/Makefile') 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 -- cgit 1.4.1