2018-10-25 18:57:04 +02: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 17:14:44 +02:00
|
|
|
NAMES += hotblocks
|
2019-05-21 11:15:53 +02:00
|
|
|
NAMES += howvec
|
2019-06-11 14:29:55 +02:00
|
|
|
NAMES += hotpages
|
2018-10-25 18:57:04 +02: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
|