Makefile revision 0e5731ab59b4ecead38375f26eeea698f00b19fd
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Makefile for the VirtualBox Linux Host Driver.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Copyright (C) 2006-2007 Sun Microsystems, Inc.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# This file is part of VirtualBox Open Source Edition (OSE), as
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# available from http://www.virtualbox.org. This file is free software;
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# you can redistribute it and/or modify it under the terms of the GNU
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# General Public License (GPL) as published by the Free Software
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Foundation, in version 2 as it comes in the "COPYING" file of the
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# The contents of this file may alternatively be used under the terms
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# of the Common Development and Distribution License Version 1.0
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# VirtualBox OSE distribution, in which case the provisions of the
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# CDDL are applicable instead of those of the GPL.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# You may elect to license modified versions of this file under the
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# terms and conditions of either the GPL or the CDDL or both.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Clara, CA 95054 USA or visit http://www.sun.com if you need
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# additional information or have any questions.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# First, figure out which architecture we're targeting and the build type.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# (We have to support basic cross building (ARCH=i386|x86_64).)
BUILD_TYPE :=
OBJS = \
SUPDrv.o \
VBOX_KERN_VER := $(shell $(MAKE) -sC $(KERN_DIR) --no-print-directory kernelrelease 2> /dev/null || true)
export INCL
KFLAGS := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING
# must be consistent with Config.kmk!
$(MODULE):