Makefile revision 566ae7d5f854848b83875d231c80913f768915bd
2234N/A# Makefile for the VirtualBox Linux Host Driver. 2234N/A# Copyright (C) 2006-2007 Sun Microsystems, Inc. 2234N/A# This file is part of VirtualBox Open Source Edition (OSE), as 2234N/A# you can redistribute it and/or modify it under the terms of the GNU 2234N/A# General Public License (GPL) as published by the Free Software 2234N/A# Foundation, in version 2 as it comes in the "COPYING" file of the 2234N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the 2234N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 2234N/A# The contents of this file may alternatively be used under the terms 2234N/A# of the Common Development and Distribution License Version 1.0 5680N/A# VirtualBox OSE distribution, in which case the provisions of the 5680N/A# CDDL are applicable instead of those of the GPL. 2234N/A# You may elect to license modified versions of this file under the 2234N/A# terms and conditions of either the GPL or the CDDL or both. 2234N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 2234N/A# additional information or have any questions. 2234N/A# First, figure out which architecture we're targeting and the build type. 2234N/A# (We have to support basic cross building (ARCH=i386|x86_64).) 2234N/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 # guess kernel version (24 or 26) else # neq($(KERNELRELEASE),) # building from kbuild (make -C <kernel_directory> M=`pwd`) # guess kernel version (24 or 26) endif # neq($(KERNELRELEASE),) # IPRT_DEBUG_SEMS indicates thread wrt sems state via the comm field. # 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)