Makefile revision 01ea175f55740168d1dd0af3277d3b86a30b4f91
1N/A#
1N/A# Makefile for the VirtualBox Linux Host Drivers.
1N/A#
1N/A
1N/A#
1N/A#
1N/A# Copyright (C) 2008 Sun Microsystems, Inc.
1N/A#
1N/A# This file is part of VirtualBox Open Source Edition (OSE), as
1N/A# available from http://www.virtualbox.org. This file is free software;
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#
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# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
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#
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#
1N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
1N/A# Clara, CA 95054 USA or visit http://www.sun.com if you need
1N/A# additional information or have any questions.
1N/A#
1N/A
1N/AKBUILD_VERBOSE =
1N/A
1N/Aall:
1N/A @echo "*** Building 'vboxdrv' module ***"
1N/A @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxdrv
1N/A @cp vboxdrv/vboxdrv.ko .
1N/A @echo
1N/A @if [ -d vboxnetflt ]; then \
if [ -f vboxdrv/Module.symvers ]; then \
cp vboxdrv/Module.symvers vboxnetflt; \
fi; \
echo "*** Building 'vboxnetflt' module ***"; \
$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxnetflt; \
cp vboxnetflt/vboxnetflt.ko .; \
fi
clean:
@$(MAKE) -C vboxdrv clean
@if [ -d vboxnetflt ]; then \
$(MAKE) -C vboxnetflt clean; \
fi
rm -f vboxdrv.ko vboxnetflt.ko