Makefile revision dfc2a36f88fdf166816e58dae3164b66cfaa41d5
5b281ba489ca18f0380d7efc7a5108b606cce449vboxsync# Makefile for the VirtualBox Linux Host Driver.
8c856c56f1af112768c672456af69561265f1fddvboxsync# Copyright (C) 2006-2012 Oracle Corporation
8c856c56f1af112768c672456af69561265f1fddvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
8c856c56f1af112768c672456af69561265f1fddvboxsync# available from http://www.virtualbox.org. This file is free software;
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# you can redistribute it and/or modify it under the terms of the GNU
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# General Public License (GPL) as published by the Free Software
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# The contents of this file may alternatively be used under the terms
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# of the Common Development and Distribution License Version 1.0
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# VirtualBox OSE distribution, in which case the provisions of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# CDDL are applicable instead of those of the GPL.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# You may elect to license modified versions of this file under the
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# terms and conditions of either the GPL or the CDDL or both.
8c856c56f1af112768c672456af69561265f1fddvboxsync# First, figure out which architecture we're targeting and the build type.
8c856c56f1af112768c672456af69561265f1fddvboxsync# (We have to support basic cross building (ARCH=i386|x86_64).)
8c856c56f1af112768c672456af69561265f1fddvboxsync# While at it, warn about BUILD_* vars found to help with user problems.
8c856c56f1af112768c672456af69561265f1fddvboxsyncifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
8c856c56f1af112768c672456af69561265f1fddvboxsyncifneq ($(filter-out amd64 x86,$(BUILD_TARGET_ARCH)),)
8c856c56f1af112768c672456af69561265f1fddvboxsync $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
8c856c56f1af112768c672456af69561265f1fddvboxsync ifneq ($(BUILD_TARGET_ARCH),$(BUILD_TARGET_ARCH_DEF))
8c856c56f1af112768c672456af69561265f1fddvboxsync $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
8c856c56f1af112768c672456af69561265f1fddvboxsyncifneq ($(filter-out release profile debug strict,$(BUILD_TYPE)),)
8c856c56f1af112768c672456af69561265f1fddvboxsync $(warning Ignoring unknown BUILD_TYPE value '$(BUILD_TYPE)'.)
f3d24eebf5fdacff9255b3f4bcc7632d51cf85d4vboxsync $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
8c856c56f1af112768c672456af69561265f1fddvboxsync# override is required by the Debian guys
export INCL
# must be consistent with Config.kmk!
$(MODULE):
$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) CONFIG_MODULE_SIG= -C $(KERN_DIR) modules