Makefile revision a0a9f39e8864357c2e1e61106958411240f5bf6b
1N/A# Makefile for the VirtualBox Linux Host Driver. 1N/A# (For 2.6.x this file must be called 'Makefile'!) 1N/A# Copyright (C) 2006-2007 Sun Microsystems, Inc. 1N/A# This file is part of VirtualBox Open Source Edition (OSE), as 1N/A# you can redistribute it and/or modify it under the terms of the GNU 1N/A# General Public License (GPL) as published by the Free Software 1N/A# Foundation, in version 2 as it comes in the "COPYING" file of the 1N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the 1N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 1N/A# The contents of this file may alternatively be used under the terms 1N/A# of the Common Development and Distribution License Version 1.0 1N/A# VirtualBox OSE distribution, in which case the provisions of the 1N/A# CDDL are applicable instead of those of the GPL. 1N/A# You may elect to license modified versions of this file under the 1N/A# terms and conditions of either the GPL or the CDDL or both. 1N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 1N/A# additional information or have any questions. 1N/A# First, figure out which architecture we're targeting and the build type. 1N/A# (We have to support basic cross building (ARCH=i386|x86_64).) 1N/A# While at it, warn about BUILD_* vars found to help with user problems. 1N/A# use vm_insert_page() API (if available) to map kernel pages to userland - better debugging 1N/A# VBOX_USE_INSERT_PAGE = 1 1N/A# override is required by the Debian guys 1N/A # building from this directory 1N/A # kernel base directory 1N/A # build for the current kernel, version check 1N/A # check if versions match -- works only for later 2.6 kernels 1N/A # build for a dedicated kernel, no version check 1N/A # module install dir, only for current kernel 1N/A # guess kernel version (24 or 26) 1N/Aelse # neq($(KERNELRELEASE),) 1N/A # building from kbuild (make -C <kernel_directory> M=`pwd`) 1N/A # guess kernel version (24 or 26) 1N/A# debug - show guesses. 1N/A # IPRT_DEBUG_SEMS indicates thread wrt sems state via the comm field. 1N/A# By default we use remap_pfn_range() kernel API to make kernel pages 1N/A# visible for userland. Unfortuately, it leads to situation that 1N/A# during debug session all structures on that page (such as PVM pointer) 1N/A# are not accessible to the debugger (see #3214). 1N/A# This code enables experimental support 1N/A# for vm_insert_page() kernel API, allowing to export kernel pages 1N/A# to the userland in more debugger-friendly way. Due to stability 1N/A# concerns, not enabled by default yet. endif # eq($(MAKECMDGOALS),clean)