2019-04-12 14:41:10 +02:00
|
|
|
# vim: filetype=automake
|
|
|
|
|
2018-02-21 18:05:56 +00:00
|
|
|
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)
|
|
|
|
|
2019-11-11 13:41:34 +01:00
|
|
|
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(HYPERV_DRIVER_SOURCES))
|
2018-02-21 18:05:56 +00:00
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2018-06-21 02:19:45 -04:00
|
|
|
$(HYPERV_DRIVER_SOURCES) \
|
2018-02-21 18:05:56 +00:00
|
|
|
$(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 \
|
2019-10-08 11:19:30 +01:00
|
|
|
$(top_srcdir)/scripts/hyperv_wmi_generator.py
|
2019-10-16 14:46:20 +02:00
|
|
|
$(AM_V_GEN) $(RUNUTF8) $(PYTHON) \
|
2019-10-08 11:19:30 +01:00
|
|
|
$(top_srcdir)/scripts/hyperv_wmi_generator.py $(srcdir) $(builddir) \
|
2018-02-21 18:05:56 +00:00
|
|
|
&& touch $@
|
|
|
|
|
2019-10-23 14:24:37 +02:00
|
|
|
CLEANFILES += $(HYPERV_DRIVER_GENERATED) $(HYPERV_GENERATED_STAMP)
|
2018-02-21 18:05:56 +00:00
|
|
|
|
|
|
|
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 \
|
2019-10-16 14:46:20 +02:00
|
|
|
-I$(builddir)/hyperv \
|
2018-02-21 18:05:56 +00:00
|
|
|
$(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
|