#
# Jailhouse, a Linux-based partitioning hypervisor
#
-# Copyright (c) Siemens AG, 2013, 2014
+# Copyright (c) Siemens AG, 2013-2015
#
# Authors:
# Jan Kiszka <jan.kiszka@siemens.com>
# the COPYING file in the top-level directory.
#
-subdir-y := hypervisor configs inmates
+subdir-y := driver hypervisor configs inmates
-obj-m := jailhouse.o
-
-ccflags-y := -I$(src)/hypervisor/arch/$(SRCARCH)/include \
- -I$(src)/hypervisor/include
-
-jailhouse-y := driver.o
-
-$(obj)/hypervisor/include/jailhouse/version.h: $(obj)/hypervisor
- @
-
-$(obj)/driver.o: $(obj)/hypervisor/include/jailhouse/version.h
-
-# inmates build depends on generated config.mk of the hypervisor
-ifeq ($(clean),)
-$(addprefix $(obj)/,inmates): $(obj)/hypervisor
-endif
+# inmates build depends on generated config.mk of the hypervisor,
+# and the driver needs version.h from there
+$(obj)/inmates $(obj)/driver: $(obj)/hypervisor