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 ccflags-y := -I$(src)/../hypervisor/include
15 OBJCOPYFLAGS := -O binary
17 CONFIGS = $(shell cd $(src); ls *.c)
19 always := $(CONFIGS:.c=.cell)
21 targets += $(CONFIGS:.c=.o) $(CONFIGS:.c=.cell)
23 # prevent deleting intermediate files which would cause rebuilds
24 .SECONDARY: $(addprefix $(obj)/,$(CONFIGS:.c=.o))
26 $(obj)/%.cell: $(obj)/%.o
27 $(call if_changed,objcopy)