mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 16:35:24 +00:00
d57d8d6e92
Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# vim: filetype=automake
|
|
|
|
HYPERV_DRIVER_SOURCES = \
|
|
hyperv/hyperv_private.h \
|
|
hyperv/hyperv_driver.c \
|
|
hyperv/hyperv_driver.h \
|
|
hyperv/hyperv_util.c \
|
|
hyperv/hyperv_util.h \
|
|
hyperv/hyperv_wmi.c \
|
|
hyperv/hyperv_wmi.h \
|
|
hyperv/hyperv_wmi_classes.c \
|
|
hyperv/hyperv_wmi_classes.h \
|
|
hyperv/openwsman.h \
|
|
$(NULL)
|
|
|
|
HYPERV_DRIVER_GENERATED = \
|
|
hyperv/hyperv_wmi_classes.generated.c \
|
|
hyperv/hyperv_wmi_classes.generated.h \
|
|
hyperv/hyperv_wmi_classes.generated.typedef \
|
|
$(NULL)
|
|
|
|
HYPERV_GENERATED_STAMP = .hyperv_wmi_generator.stamp
|
|
|
|
HYPERV_DRIVER_EXTRA_DIST = \
|
|
hyperv/hyperv_wmi_generator.input \
|
|
$(NULL)
|
|
|
|
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(HYPERV_DRIVER_SOURCES))
|
|
|
|
EXTRA_DIST += \
|
|
$(HYPERV_DRIVER_SOURCES) \
|
|
$(HYPERV_DRIVER_EXTRA_DIST) \
|
|
$(NULL)
|
|
|
|
BUILT_SOURCES += $(HYPERV_DRIVER_GENERATED)
|
|
|
|
$(HYPERV_DRIVER_GENERATED): $(HYPERV_GENERATED_STAMP)
|
|
|
|
$(HYPERV_GENERATED_STAMP): $(srcdir)/hyperv/hyperv_wmi_generator.input \
|
|
$(top_srcdir)/scripts/hyperv_wmi_generator.py
|
|
$(AM_V_GEN) $(RUNUTF8) $(PYTHON) \
|
|
$(top_srcdir)/scripts/hyperv_wmi_generator.py $(srcdir) $(builddir) \
|
|
&& touch $@
|
|
|
|
CLEANFILES += $(HYPERV_DRIVER_GENERATED) $(HYPERV_GENERATED_STAMP)
|
|
|
|
if WITH_HYPERV
|
|
noinst_LTLIBRARIES += libvirt_driver_hyperv.la
|
|
libvirt_la_BUILT_LIBADD += libvirt_driver_hyperv.la
|
|
libvirt_driver_hyperv_la_CFLAGS = \
|
|
$(OPENWSMAN_CFLAGS) \
|
|
-I$(srcdir)/conf \
|
|
-I$(builddir)/hyperv \
|
|
$(AM_CFLAGS) \
|
|
$(NULL)
|
|
libvirt_driver_hyperv_la_LDFLAGS = $(AM_LDFLAGS)
|
|
libvirt_driver_hyperv_la_LIBADD = $(OPENWSMAN_LIBS)
|
|
libvirt_driver_hyperv_la_SOURCES = $(HYPERV_DRIVER_SOURCES)
|
|
endif WITH_HYPERV
|