Makefile revision 7995839c0b791ae2334df998d34dbccac12b3b41
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# $Revision$
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Makefile for the VirtualBox Linux Host Driver.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Copyright (C) 2006-2010 Oracle Corporation
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# This file is part of VirtualBox Open Source Edition (OSE), as
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# available from http://www.virtualbox.org. This file is free software;
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# you can redistribute it and/or modify it under the terms of the GNU
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# General Public License (GPL) as published by the Free Software
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Foundation, in version 2 as it comes in the "COPYING" file of the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# The contents of this file may alternatively be used under the terms
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# of the Common Development and Distribution License Version 1.0
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# VirtualBox OSE distribution, in which case the provisions of the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# CDDL are applicable instead of those of the GPL.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# You may elect to license modified versions of this file under the
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# terms and conditions of either the GPL or the CDDL or both.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# First, figure out which architecture we're targeting and the build type.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# (We have to support basic cross building (ARCH=i386|x86_64).)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# While at it, warn about BUILD_* vars found to help with user problems.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
BUILD_TYPE :=
OBJS = \
SUPDrv.o \
VBOX_KERN_VER := $(shell $(MAKE) -sC $(KERN_DIR) --no-print-directory kernelrelease 2> /dev/null || true)
export INCL
# must be consistent with Config.kmk!
$(MODULE):