mirror of
https://github.com/qemu/qemu.git
synced 2024-12-11 12:43:55 +08:00
227b45dc42
This patch adds the ability to generate files in drcov format. Primary goal this script is to have coverage logfiles thatwork in Lighthouse. Signed-off-by: Ivanov Arkady <arkadiy.ivanov@ispras.ru> Message-Id: <163491884553.304355.13246023070235438959.stgit@pc-System-Product-Name> [AJB: use g_ptr_array instead of slist] Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220204204335.1689602-23-alex.bennee@linaro.org>
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# -*- Mode: makefile -*-
|
|
#
|
|
# This Makefile example is fairly independent from the main makefile
|
|
# so users can take and adapt it for their build. We only really
|
|
# include config-host.mak so we don't have to repeat probing for
|
|
# cflags that the main configure has already done for us.
|
|
#
|
|
|
|
BUILD_DIR := $(CURDIR)/../..
|
|
|
|
include $(BUILD_DIR)/config-host.mak
|
|
|
|
VPATH += $(SRC_PATH)/contrib/plugins
|
|
|
|
NAMES :=
|
|
NAMES += execlog
|
|
NAMES += hotblocks
|
|
NAMES += hotpages
|
|
NAMES += howvec
|
|
NAMES += lockstep
|
|
NAMES += hwprofile
|
|
NAMES += cache
|
|
NAMES += drcov
|
|
|
|
SONAMES := $(addsuffix .so,$(addprefix lib,$(NAMES)))
|
|
|
|
# The main QEMU uses Glib extensively so it's perfectly fine to use it
|
|
# in plugins (which many example do).
|
|
CFLAGS = $(GLIB_CFLAGS)
|
|
CFLAGS += -fPIC -Wall $(filter -W%, $(QEMU_CFLAGS))
|
|
CFLAGS += $(if $(findstring no-psabi,$(QEMU_CFLAGS)),-Wpsabi)
|
|
CFLAGS += -I$(SRC_PATH)/include/qemu
|
|
|
|
all: $(SONAMES)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
lib%.so: %.o
|
|
$(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDLIBS)
|
|
|
|
clean:
|
|
rm -f *.o *.so *.d
|
|
rm -Rf .libs
|
|
|
|
.PHONY: all clean
|