# Don't forget to add your plugin to config.panda! # If you need custom CFLAGS or LIBS, set them up here #CFLAGS+=$(LLVM_CFLAGS) #CXXFLAGS+=$(LLVM_CXXFLAGS) #QEMU_CFLAGS+=-g -std=c++11 # If you need custom CFLAGS or LIBS, set them up here # CFLAGS+= LIBS+=-lpthread # The main rule for your plugin. Please stick with the panda_ naming # convention. #$(PLUGIN_TARGET_DIR)/$(PLUGIN_NAME).o: $(PLUGIN_SRC_ROOT)/$(PLUGIN_NAME)/$(PLUGIN_NAME).cpp O_FILES=$(PLUGIN_OBJ_DIR)/$(PLUGIN_NAME).o $(PLUGIN_TARGET_DIR)/panda_$(PLUGIN_NAME).so: $(O_FILES) \ $(call quiet-command,$(CC) $(QEMU_CFLAGS) -shared -o $@ $^ $(LIBS)," PLUGIN $@") all: $(PLUGIN_TARGET_DIR)/panda_$(PLUGIN_NAME).so