2 # Jailhouse, a Linux-based partitioning hypervisor
4 # Copyright (c) Siemens AG, 2013
7 # Jan Kiszka <jan.kiszka@siemens.com>
9 # This work is licensed under the terms of the GNU GPL, version 2. See
10 # the COPYING file in the top-level directory.
13 CC = $(CROSS_COMPILE)gcc
15 CFLAGS = -g -O3 -I.. -I../hypervisor/include \
16 -Wall -Wmissing-declarations -Wmissing-prototypes
21 $(shell python -c "from mako.template import Template" 2>/dev/null \
24 ifeq ($(strip $(HAS_PYTHON_MAKO)), yes)
25 TARGETS += jailhouse-config-collect
27 TARGETS += no_python_mako
32 jailhouse: jailhouse.c ../jailhouse.h ../hypervisor/include/jailhouse/cell-config.h
33 $(CC) $(CFLAGS) -o $@ $<
35 jailhouse-config-collect: jailhouse-config-create jailhouse-config-collect.tmpl
39 .PHONY: clean no_python_mako
45 @echo -ne "WARNING: Could not create the helper script to generate" \
46 "configurations on remote machines" \
47 "(\"jailhouse-conf-collect\"). You need Python and the" \
48 "Mako library for it.\n"