Makefile revision edd67c61375d89ff863e754caff339cd1ac77b38
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt#
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# Makefile for the VirtualBox Linux Host Drivers.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2008 Sun Microsystems, Inc.
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt#
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# This file is part of VirtualBox Open Source Edition (OSE), as
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# available from http://www.virtualbox.org. This file is free software;
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# you can redistribute it and/or modify it under the terms of the GNU
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# General Public License (GPL) as published by the Free Software
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# Foundation, in version 2 as it comes in the "COPYING" file of the
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt#
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# The contents of this file may alternatively be used under the terms
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# of the Common Development and Distribution License Version 1.0
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# VirtualBox OSE distribution, in which case the provisions of the
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# CDDL are applicable instead of those of the GPL.
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt#
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# You may elect to license modified versions of this file under the
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# terms and conditions of either the GPL or the CDDL or both.
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt#
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# Clara, CA 95054 USA or visit http://www.sun.com if you need
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt# additional information or have any questions.
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt#
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt
38122021242747404f7f3e02ff4428a7cb884b77Evan Huntall:
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt @echo "*** Building 'vboxdrv' module ***"
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt @$(MAKE) KBUILD_VERBOSE= -C vboxdrv
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt @cp vboxdrv/vboxdrv.ko .
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt @echo
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt @if [ -d vboxnetflt ]; then \
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt if [ -f vboxdrv/Module.symvers ]; then \
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt cp vboxdrv/Module.symvers vboxnetflt; \
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt fi; \
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt echo "*** Building 'vboxnetflt' module ***"; \
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt $(MAKE) KBUILD_VERBOSE= -C vboxnetflt; \
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt 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