Makefile revision 0719c0eb4379e16255bbe0db5d76991161a787b5
319N/A# Makefile for the VirtualBox Linux Host Driver. 319N/A# (For 2.6.x this file must be called 'Makefile'!) 319N/A# Copyright (C) 2006-2007 Sun Microsystems, Inc. 319N/A# This file is part of VirtualBox Open Source Edition (OSE), as 319N/A# you can redistribute it and/or modify it under the terms of the GNU 319N/A# General Public License (GPL) as published by the Free Software 319N/A# Foundation, in version 2 as it comes in the "COPYING" file of the 319N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the 319N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 319N/A# The contents of this file may alternatively be used under the terms 319N/A# of the Common Development and Distribution License Version 1.0 319N/A# VirtualBox OSE distribution, in which case the provisions of the 319N/A# CDDL are applicable instead of those of the GPL. 319N/A# You may elect to license modified versions of this file under the 319N/A# terms and conditions of either the GPL or the CDDL or both. 319N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 319N/A# additional information or have any questions. 844N/A# First, figure out which architecture we're targeting and the build type. 844N/A# (We have to support basic cross building (ARCH=i386|x86_64).) 618N/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. endif # eq($(MAKECMDGOALS),clean)