Makefile revision a0a9f39e8864357c2e1e61106958411240f5bf6b
f808c858fa61e7769218966759510a8b1190dfcfraf# Makefile for the VirtualBox Linux Host Network Filter Driver.
f808c858fa61e7769218966759510a8b1190dfcfraf# (For 2.6.x this file must be called 'Makefile'!)
f808c858fa61e7769218966759510a8b1190dfcfraf# Copyright (C) 2006-2007 Sun Microsystems, Inc.
f808c858fa61e7769218966759510a8b1190dfcfraf# This file is part of VirtualBox Open Source Edition (OSE), as
f808c858fa61e7769218966759510a8b1190dfcfraf# available from http://www.virtualbox.org. This file is free software;
f808c858fa61e7769218966759510a8b1190dfcfraf# you can redistribute it and/or modify it under the terms of the GNU
f808c858fa61e7769218966759510a8b1190dfcfraf# General Public License (GPL) as published by the Free Software
f808c858fa61e7769218966759510a8b1190dfcfraf# Foundation, in version 2 as it comes in the "COPYING" file of the
f808c858fa61e7769218966759510a8b1190dfcfraf# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
f808c858fa61e7769218966759510a8b1190dfcfraf# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
f808c858fa61e7769218966759510a8b1190dfcfraf# The contents of this file may alternatively be used under the terms
f808c858fa61e7769218966759510a8b1190dfcfraf# of the Common Development and Distribution License Version 1.0
f808c858fa61e7769218966759510a8b1190dfcfraf# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
f808c858fa61e7769218966759510a8b1190dfcfraf# VirtualBox OSE distribution, in which case the provisions of the
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami# CDDL are applicable instead of those of the GPL.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# You may elect to license modified versions of this file under the
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# terms and conditions of either the GPL or the CDDL or both.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Clara, CA 95054 USA or visit http://www.sun.com if you need
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# additional information or have any questions.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# First, figure out which architecture we're targeting and the build type.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# (We have to support basic cross building (ARCH=i386|x86_64).)
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# While at it, warn about BUILD_* vars found to help with user problems.
f808c858fa61e7769218966759510a8b1190dfcfraf $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
f808c858fa61e7769218966759510a8b1190dfcfraf ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
f808c858fa61e7769218966759510a8b1190dfcfraf $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
f808c858fa61e7769218966759510a8b1190dfcfrafifneq ($(filter-out release profile debug strict,$(BUILD_TYPE)),)
f808c858fa61e7769218966759510a8b1190dfcfraf $(warning Ignoring unknown BUILD_TYPE value '$(BUILD_TYPE)'.)
f808c858fa61e7769218966759510a8b1190dfcfraf $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
f808c858fa61e7769218966759510a8b1190dfcfraf# override is required by the Debian guys
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):