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