]> rtime.felk.cvut.cz Git - jailhouse.git/blob - configs/Makefile
configs: enable additional compiler warnings
[jailhouse.git] / configs / Makefile
1 #
2 # Jailhouse, a Linux-based partitioning hypervisor
3 #
4 # Copyright (c) Siemens AG, 2013
5 #
6 # Authors:
7 #  Jan Kiszka <jan.kiszka@siemens.com>
8 #
9 # This work is licensed under the terms of the GNU GPL, version 2.  See
10 # the COPYING file in the top-level directory.
11 #
12
13 ccflags-y := -I$(src)/../hypervisor/include -Wextra
14
15 OBJCOPYFLAGS := -O binary
16
17 CONFIGS = $(shell cd $(src); ls *.c)
18
19 always := $(CONFIGS:.c=.cell)
20
21 targets += $(CONFIGS:.c=.o) $(CONFIGS:.c=.cell)
22
23 # prevent deleting intermediate files which would cause rebuilds
24 .SECONDARY: $(addprefix $(obj)/,$(CONFIGS:.c=.o))
25
26 $(obj)/%.cell: $(obj)/%.o
27         $(call if_changed,objcopy)