Makefile revision 5d97841fb78e9357775ac23e18fcf45830c6e1e8
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Makefile for the VirtualBox Linux Host Driver.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Copyright (C) 2006-2012 Oracle Corporation
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# This file is part of VirtualBox Open Source Edition (OSE), as
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# available from http://www.virtualbox.org. This file is free software;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# you can redistribute it and/or modify it under the terms of the GNU
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# General Public License (GPL) as published by the Free Software
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Foundation, in version 2 as it comes in the "COPYING" file of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file may alternatively be used under the terms
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# of the Common Development and Distribution License Version 1.0
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# VirtualBox OSE distribution, in which case the provisions of the
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# CDDL are applicable instead of those of the GPL.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You may elect to license modified versions of this file under the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# terms and conditions of either the GPL or the CDDL or both.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# First, figure out which architecture we're targeting and the build type.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# (We have to support basic cross building (ARCH=i386|x86_64).)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# While at it, warn about BUILD_* vars found to help with user problems.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwifneq ($(filter-out release profile debug strict,$(BUILD_TYPE)),)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(warning Ignoring unknown BUILD_TYPE value '$(BUILD_TYPE)'.)
6537f381d2d9e7b4e2f7b29c3e7a3f13be036f2eas $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# 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