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