Makefile revision 7eaaa8a4480370b82ef3735994f986f338fb4df2
2521N/A# Makefile for the VirtualBox Linux Host Virtual Network Adapter Driver. 2521N/A# Copyright (C) 2006-2010 Oracle Corporation 2521N/A# This file is part of VirtualBox Open Source Edition (OSE), as 2521N/A# you can redistribute it and/or modify it under the terms of the GNU 2521N/A# General Public License (GPL) as published by the Free Software 2521N/A# Foundation, in version 2 as it comes in the "COPYING" file of the 2521N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the 2521N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 2521N/A# First, figure out which architecture we're targeting and the build type. 2521N/A# (We have to support basic cross building (ARCH=i386|x86_64).) 2521N/A# While at it, warn about BUILD_* vars found to help with user problems. # override is required by the Debian guys # building from this directory # build for the current kernel, version check # check if versions match -- works only for later 2.6 kernels # build for a dedicated kernel, no version check # module install dir, only for current kernel endif # MODULE_DIR unspecified else # neq($(KERNELRELEASE),) # building from kbuild (make -C <kernel_directory> M=`pwd`) endif # neq($(KERNELRELEASE),) # 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. Unfortuately, 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. endif # eq($(MAKECMDGOALS),clean) # important: Don't remove Module.symvers! DKMS does 'make clean' before building ...