all: modules tools
# includes installation-related variables and definitions
-include scripts/install.mk
+include scripts/include.mk
# out-of-tree build for our kernel-module, firmware and inmates
KDIR ?= /lib/modules/`uname -r`/build
export INSTALL_MOD_PATH
define run-kbuild =
- $(MAKE) -C $(KDIR) M=$$PWD $@
+ $(Q)$(MAKE) -C $(KDIR) M=$$PWD $@
endef
modules:
# recursive build of tools
tools:
- $(MAKE) -C tools
+ $(Q)$(MAKE) -C tools
# clean up kernel and tools
clean:
$(run-kbuild)
- $(MAKE) -C tools $@
+ $(Q)$(MAKE) -C tools $@
modules_install: modules
$(run-kbuild)
$(INSTALL_DATA) $^
install: modules_install firmware_install
- $(MAKE) -C tools $@
+ $(Q)$(MAKE) -C tools $@
.PHONY: modules_install install clean firmware_install modules tools
# the COPYING file in the top-level directory.
#
-ifeq ($(V),1)
- Q =
-else
- Q = @
-endif
-
CC = $(CROSS_COMPILE)gcc
CFLAGS = -g -O3 -I.. -DLIBEXECDIR=\"$(libexecdir)\" \
all: $(TARGETS)
# includes installation-related variables and definitions
-include ../scripts/install.mk
+include ../scripts/include.mk
jailhouse: jailhouse.c ../jailhouse.h ../VERSION
$(CC) $(CFLAGS) -o $@ $<