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