2018-10-25 16:57:04 +00:00
|
|
|
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
|
2019-05-20 15:14:44 +00:00
|
|
|
NAMES += hotblocks
|
2019-05-21 09:15:53 +00:00
|
|
|
NAMES += howvec
|
2019-06-11 12:29:55 +00:00
|
|
|
NAMES += hotpages
|
2020-06-10 15:55:05 +00:00
|
|
|
NAMES += lockstep
|
2018-10-25 16:57:04 +00:00
|
|
|
|
|
|
|
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
|