mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Some libs' Makefile aren't loading the dependencies files *.d2.
We can load them from "libs.mk" as none of the Makefile here are
changing $(DEPS) or $(DEPS_INCLUDE) so it is fine to move the
"include" to "libs.mk".
As a little improvement, don't load the dependencies files (and thus
avoid regenerating the *.d2 files) during `make clean`.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
master commit: e62cc29f9b
master date: 2022-02-08 11:15:53 +0000
71 lines
1.8 KiB
Makefile
71 lines
1.8 KiB
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
SRCS-y += xc_altp2m.c
|
|
SRCS-y += xc_core.c
|
|
SRCS-$(CONFIG_X86) += xc_core_x86.c
|
|
SRCS-$(CONFIG_ARM) += xc_core_arm.c
|
|
SRCS-y += xc_cpupool.c
|
|
SRCS-y += xc_domain.c
|
|
SRCS-y += xc_evtchn.c
|
|
SRCS-y += xc_gnttab.c
|
|
SRCS-y += xc_misc.c
|
|
SRCS-y += xc_flask.c
|
|
SRCS-y += xc_physdev.c
|
|
SRCS-y += xc_private.c
|
|
SRCS-y += xc_csched.c
|
|
SRCS-y += xc_csched2.c
|
|
SRCS-y += xc_arinc653.c
|
|
SRCS-y += xc_rt.c
|
|
SRCS-y += xc_tbuf.c
|
|
SRCS-y += xc_pm.c
|
|
SRCS-y += xc_cpu_hotplug.c
|
|
SRCS-y += xc_resume.c
|
|
SRCS-y += xc_vm_event.c
|
|
SRCS-y += xc_vmtrace.c
|
|
SRCS-y += xc_monitor.c
|
|
SRCS-y += xc_mem_paging.c
|
|
SRCS-y += xc_mem_access.c
|
|
SRCS-y += xc_memshr.c
|
|
SRCS-y += xc_hcall_buf.c
|
|
SRCS-y += xc_foreign_memory.c
|
|
SRCS-y += xc_kexec.c
|
|
SRCS-y += xc_resource.c
|
|
SRCS-$(CONFIG_X86) += xc_psr.c
|
|
SRCS-$(CONFIG_X86) += xc_pagetab.c
|
|
SRCS-$(CONFIG_Linux) += xc_linux.c
|
|
SRCS-$(CONFIG_FreeBSD) += xc_freebsd.c
|
|
SRCS-$(CONFIG_SunOS) += xc_solaris.c
|
|
SRCS-$(CONFIG_NetBSD) += xc_netbsd.c
|
|
SRCS-$(CONFIG_NetBSDRump) += xc_netbsd.c
|
|
SRCS-$(CONFIG_MiniOS) += xc_minios.c
|
|
SRCS-y += xc_evtchn_compat.c
|
|
SRCS-y += xc_gnttab_compat.c
|
|
SRCS-y += xc_devicemodel_compat.c
|
|
|
|
CFLAGS += -D__XEN_TOOLS__
|
|
CFLAGS += $(PTHREAD_CFLAGS)
|
|
CFLAGS += -include $(XEN_ROOT)/tools/config.h
|
|
|
|
# Needed for posix_fadvise64() in xc_linux.c
|
|
CFLAGS-$(CONFIG_Linux) += -D_GNU_SOURCE
|
|
|
|
LIBHEADER := xenctrl.h xenctrl_compat.h
|
|
PKG_CONFIG := xencontrol.pc
|
|
PKG_CONFIG_NAME := Xencontrol
|
|
|
|
NO_HEADERS_CHK := y
|
|
|
|
include $(XEN_ROOT)/tools/libs/libs.mk
|
|
|
|
genpath-target = $(call buildmakevars2header,_paths.h)
|
|
$(eval $(genpath-target))
|
|
|
|
$(LIB_OBJS) $(PIC_OBJS): _paths.h
|
|
|
|
clean: cleanlocal
|
|
|
|
.PHONY: cleanlocal
|
|
cleanlocal:
|
|
rm -f libxenctrl.map
|