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