Makefile revision 99be02f9e15a3ca61b6a7c207cc7eb68dbd04817
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Makefile for the VirtualBox Linux Host Virtual Network Adapter Driver.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# (For 2.6.x this file must be called 'Makefile'!)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright (C) 2006-2007 Sun Microsystems, Inc.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# This file is part of VirtualBox Open Source Edition (OSE), as
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# available from http://www.virtualbox.org. This file is free software;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# you can redistribute it and/or modify it under the terms of the GNU
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# General Public License (GPL) as published by the Free Software
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Foundation, in version 2 as it comes in the "COPYING" file of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Clara, CA 95054 USA or visit http://www.sun.com if you need
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# additional information or have any questions.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# First, figure out which architecture we're targeting and the build type.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# (We have to support basic cross building (ARCH=i386|x86_64).)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# While at it, warn about BUILD_* vars found to help with user problems.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster BUILD_TARGET_ARCH_DEF := amd64
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterelse
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster BUILD_TARGET_ARCH_DEF := x86
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifneq ($(filter-out amd64 x86,$(BUILD_TARGET_ARCH)),)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster BUILD_TARGET_ARCH :=
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifeq ($(BUILD_TARGET_ARCH),)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifeq ($(ARCH),x86_64)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster BUILD_TARGET_ARCH := amd64
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster else
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifeq ($(ARCH),i386)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster BUILD_TARGET_ARCH := x86
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster else
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster BUILD_TARGET_ARCH := $(BUILD_TARGET_ARCH_DEF)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterelse
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifneq ($(BUILD_TARGET_ARCH),$(BUILD_TARGET_ARCH_DEF))
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifneq ($(filter-out release profile debug strict,$(BUILD_TYPE)),)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(warning Ignoring unknown BUILD_TYPE value '$(BUILD_TYPE)'.)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster BUILD_TYPE :=
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifeq ($(BUILD_TYPE),)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster BUILD_TYPE := release
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterelse
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifneq ($(BUILD_TYPE),release)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# override is required by the Debian guys
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosteroverride MODULE = vboxnetadp
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterOBJS = \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster linux/VBoxNetAdp-linux.o \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster VBoxNetAdp.o
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifeq ($(BUILD_TARGET_ARCH),x86)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterOBJS += math/gcc/divdi3.o \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster math/gcc/moddi3.o \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster math/gcc/qdivrem.o \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster math/gcc/udivdi3.o \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster math/gcc/divdi3.o \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster math/gcc/umoddi3.o
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifneq ($(MAKECMDGOALS),clean)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifeq ($(KERNELRELEASE),)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster #
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster # building from this directory
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster #
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster # kernel base directory
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifndef KERN_DIR
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster # build for the current kernel, version check
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KERN_DIR := /lib/modules/$(shell uname -r)/build
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KERN_DIR := /usr/src/linux
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(error Error: unable to find the sources of your current Linux kernel. \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Specify KERN_DIR=<directory> and run Make again)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(warning Warning: using /usr/src/linux as the source directory of your \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Linux kernel. If this is not correct, specify \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KERN_DIR=<directory> and run Make again.)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster # check if versions match -- works only for later 2.6 kernels
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster VBOX_KERN_VER := $(shell $(MAKE) -sC $(KERN_DIR) --no-print-directory kernelrelease 2> /dev/null || true)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifneq ($(VBOX_KERN_VER),)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifneq ($(VBOX_KERN_VER),$(shell uname -r))
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(error Error: /usr/src/linux (version $(VBOX_KERN_VER)) does not match \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster the current kernel (version $(shell uname -r)))
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster else
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster # build for a dedicated kernel, no version check
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(error Error: KERN_DIR does not point to a directory)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster # includes
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifndef KERN_INCL
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KERN_INCL = $(KERN_DIR)/include
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifneq ($(shell if test -d $(KERN_INCL); then echo yes; fi),yes)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(error Error: unable to find the include directory for your current Linux \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster kernel. Specify KERN_INCL=<directory> and run Make again)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster # module install dir, only for current kernel
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifneq ($(filter install install_rpm,$(MAKECMDGOALS)),)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifndef MODULE_DIR
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster MODULE_DIR_TST := /lib/modules/$(shell uname -r)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifeq ($(shell if test -d $(MODULE_DIR_TST); then echo yes; fi),yes)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster MODULE_DIR := $(MODULE_DIR_TST)/misc
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster else
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(error Unable to find the folder to install the support driver to)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif # MODULE_DIR unspecified
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterelse # neq($(KERNELRELEASE),)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster #
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster # building from kbuild (make -C <kernel_directory> M=`pwd`)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster #
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif # neq($(KERNELRELEASE),)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# debug - show guesses.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifdef DEBUG
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster$(warning dbg: KERN_DIR = $(KERN_DIR))
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster$(warning dbg: KERN_INCL = $(KERN_INCL))
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster$(warning dbg: MODULE_DIR = $(MODULE_DIR))
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterKBUILD_VERBOSE ?= 1
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Compiler options
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifndef INCL
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster INCL := $(addprefix -I,$(KERN_INCL) $(EXTRA_INCL))
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster ifndef KBUILD_EXTMOD
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KBUILD_EXTMOD := $(shell pwd)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster INCL += $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster export INCL
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterKFLAGS := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifdef VBOX_REDHAT_KABI
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KFLAGS += -DVBOX_REDHAT_KABI
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifeq ($(BUILD_TARGET_ARCH),amd64)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KFLAGS += -DRT_ARCH_AMD64
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterelse
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KFLAGS += -DRT_ARCH_X86
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# must be consistent with Config.kmk!
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterKFLAGS += -DVBOX_WITH_64_BITS_GUESTS
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifeq ($(BUILD_TYPE),debug)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KFLAGS += -DDEBUG -DDEBUG_$(USER) -g
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster # IPRT_DEBUG_SEMS indicates thread wrt sems state via the comm field.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KFLAGS += -DIPRT_DEBUG_SEMS
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# By default we use remap_pfn_range() kernel API to make kernel pages
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# visible for userland. Unfortuately, it leads to situation that
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# during debug session all structures on that page (such as PVM pointer)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# are not accessible to the debugger (see #3214).
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# This code enables experimental support
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# for vm_insert_page() kernel API, allowing to export kernel pages
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# to the userland in more debugger-friendly way. Due to stability
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# concerns, not enabled by default yet.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterifdef VBOX_USE_INSERT_PAGE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster KFLAGS += -DVBOX_USE_INSERT_PAGE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterMODULE_EXT := ko
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster$(MODULE)-y := $(OBJS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# build defs
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterEXTRA_CFLAGS += $(INCL) $(KFLAGS) $(KDEBUG)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterall: $(MODULE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterobj-m += $(MODULE).o
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster$(MODULE):
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall: $(MODULE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster @mkdir -p $(MODULE_DIR); \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster install -m 0664 -o root -g root $(MODULE).$(MODULE_EXT) $(MODULE_DIR); \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster PATH="$(PATH):/bin:/sbin" depmod -ae; \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster rm -f /etc/vbox/module_not_compiled
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall_rpm: $(MODULE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster @mkdir -p $(MODULE_DIR); \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster install -m 0664 $(MODULE).$(MODULE_EXT) $(MODULE_DIR)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterendif # eq($(MAKECMDGOALS),clean)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# important: Don't remove Module.symvers! DKMS does 'make clean' before building ...
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterclean:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster for f in . linux r0drv r0drv/linux VBox common/err common/string common/log generic math/gcc; \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster do rm -f $$f/*.o $$f/.*.cmd $$f/.*.flags; done
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster rm -rf .vboxnetadp* .tmp_ver* vboxnetadp.* Modules.symvers modules.order
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster