Makefile revision b39c3fa81cadaec00ebb2e7170a8db96998b7032
474N/A# Makefile for the VirtualBox Linux Host Network Filter Driver. 474N/A# (For 2.6.x this file must be called 'Makefile'!) 474N/A# Copyright (C) 2006-2010 Oracle Corporation 474N/A# This file is part of VirtualBox Open Source Edition (OSE), as 474N/A# you can redistribute it and/or modify it under the terms of the GNU 474N/A# General Public License (GPL) as published by the Free Software 474N/A# Foundation, in version 2 as it comes in the "COPYING" file of the 474N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the 474N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 474N/A# First, figure out which architecture we're targeting and the build type. 474N/A# (We have to support basic cross building (ARCH=i386|x86_64).) 474N/A# While at it, warn about BUILD_* vars found to help with user problems. 474N/A# override is required by the Debian guys 474N/A # building from this directory 474N/A # build for the current kernel, version check 474N/A # check if versions match -- works only for later 2.6 kernels 5053N/A # build for a dedicated kernel, no version check 5053N/A # module install dir, only for current kernel 474N/Aelse # neq($(KERNELRELEASE),) 474N/A # building from kbuild (make -C <kernel_directory> M=`pwd`) # IPRT_DEBUG_SEMS indicates thread wrt sems state via the comm field. #KFLAGS += -DIPRT_DEBUG_SEMS # By default we use remap_pfn_range() kernel API to make kernel pages # visible for userland. Unfortunately, it leads to situation that # during debug session all structures on that page (such as PVM pointer) # are not accessible to the debugger (see #3214). # This code enables experimental support # for vm_insert_page() kernel API, allowing to export kernel pages # to the userland in more debugger-friendly way. Due to stability # concerns, not enabled by default yet. else # eq ($(MAKECMDGOALS),clean) endif # eq($(MAKECMDGOALS),clean)