Makefile revision edd67c61375d89ff863e754caff339cd1ac77b38
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/Aall:
1N/A @echo "*** Building 'vboxdrv' module ***"
1N/A @$(MAKE) KBUILD_VERBOSE= -C vboxdrv
1N/A @cp vboxdrv/vboxdrv.ko .
1N/A @echo
1N/A @if [ -d vboxnetflt ]; then \
1N/A if [ -f vboxdrv/Module.symvers ]; then \
1N/A cp vboxdrv/Module.symvers vboxnetflt; \
1N/A fi; \
1N/A echo "*** Building 'vboxnetflt' module ***"; \
1N/A $(MAKE) KBUILD_VERBOSE= -C vboxnetflt; \
1N/A cp vboxnetflt/vboxnetflt.ko .; \
1N/A fi
1N/A
1N/A
1N/Aclean:
1N/A @$(MAKE) -C vboxdrv clean
1N/A @if [ -d vboxnetflt ]; then \
1N/A $(MAKE) -C vboxnetflt clean; \
1N/A fi
1N/A rm -f vboxdrv.ko vboxnetflt.ko
1N/A
1N/A