diff options
author | Emilio G. Cota <cota@braap.org> | 2018-10-25 12:57:04 -0400 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2019-10-28 15:12:38 +0000 |
commit | 671f760b93ba4b0f5e5c84986b63c9b153509ecf (patch) | |
tree | 87ab5c634ea89eeddc6881b5072b2d62a00bba02 /tests/plugin/Makefile | |
parent | f308f64e760abfaa1cf343a3a213951aacba6d26 (diff) | |
download | qemu-671f760b93ba4b0f5e5c84986b63c9b153509ecf.zip |
tests/plugin: add sample plugins
Pass arguments with -plugin=libfoo.so,arg=bar,arg=baz
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/plugin/Makefile')
-rw-r--r-- | tests/plugin/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/plugin/Makefile b/tests/plugin/Makefile new file mode 100644 index 0000000000..f9a3546ea3 --- /dev/null +++ b/tests/plugin/Makefile @@ -0,0 +1,28 @@ +BUILD_DIR := $(CURDIR)/../.. + +include $(BUILD_DIR)/config-host.mak +include $(SRC_PATH)/rules.mak + +$(call set-vpath, $(SRC_PATH)/tests/plugin) + +NAMES := +NAMES += bb +NAMES += empty +NAMES += insn +NAMES += mem + +SONAMES := $(addsuffix .so,$(addprefix lib,$(NAMES))) + +QEMU_CFLAGS += -fPIC +QEMU_CFLAGS += -I$(SRC_PATH)/include/qemu + +all: $(SONAMES) + +lib%.so: %.o + $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDLIBS) + +clean: + rm -f *.o *.so *.d + rm -Rf .libs + +.PHONY: all clean |