Makefile revision a4cfbcb8be3204e7008a72ae39af7fb7a52ea372
# $Id$
## @file
# Makefile for the VirtualBox Linux Host Driver.
#
#
#
# Copyright (C) 2006-2012 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
# The contents of this file may alternatively be used under the terms
# of the Common Development and Distribution License Version 1.0
# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
# VirtualBox OSE distribution, in which case the provisions of the
# CDDL are applicable instead of those of the GPL.
#
# You may elect to license modified versions of this file under the
# terms and conditions of either the GPL or the CDDL or both.
#
#
# First, figure out which architecture we're targeting and the build type.
# (We have to support basic cross building (ARCH=i386|x86_64).)
# While at it, warn about BUILD_* vars found to help with user problems.
#
else
else
else
else
BUILD_TYPE :=
else
# override is required by the Debian guys
OBJS = \
SUPDrv.o \
#
# building from this directory
#
# kernel base directory
# build for the current kernel, version check
else
# includes
# module install dir, only for current kernel
else
endif # MODULE_DIR unspecified
else # neq($(KERNELRELEASE),)
#
# building from kbuild (make -C <kernel_directory> M=`pwd`)
#
endif # neq($(KERNELRELEASE),)
# debug - show guesses.
KBUILD_VERBOSE ?= 1
#
# Compiler options
#
KBUILD_EXTMOD := $(shell pwd)
export INCL
else
KFLAGS += -DRT_ARCH_AMD64
else
KFLAGS += -DRT_ARCH_X86
# must be consistent with Config.kmk!
# IPRT_DEBUG_SEMS indicates thread wrt sems state via the comm field.
#KFLAGS += -DIPRT_DEBUG_SEMS
# 2.6 and later
MODULE_EXT := ko
# build defs
$(MODULE):
$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) CONFIG_MODULE_SIG= -C $(KERN_DIR) modules
@mkdir -p $(MODULE_DIR); \
install_rpm: $(MODULE)
@mkdir -p $(MODULE_DIR); \
else # eq ($(MAKECMDGOALS),clean)
else
endif # eq($(MAKECMDGOALS),clean)
echo "All exported IPRT symbols are properly renamed!"; \
else \
echo "error: Some exported IPRT symbols was not properly renamed! See above." >&2; \
false; \
fi