VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/linux/Makefile@ 18973

Last change on this file since 18973 was 18973, checked in by vboxsync, 16 years ago

#2954: Dynamic add/remove for virtual adapters. Moved all adapter-related code to vboxnetadp.ko

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1#
2# Makefile for the VirtualBox Linux Host Drivers.
3#
4
5#
6#
7# Copyright (C) 2008-2009 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22KBUILD_VERBOSE =
23
24all:
25 @echo "*** Building 'vboxdrv' module ***"
26 @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxdrv
27 @cp vboxdrv/vboxdrv.ko .
28 @echo
29 @if [ -d vboxnetflt ]; then \
30 if [ -f vboxdrv/Module.symvers ]; then \
31 cp vboxdrv/Module.symvers vboxnetflt; \
32 fi; \
33 echo "*** Building 'vboxnetflt' module ***"; \
34 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxnetflt; \
35 cp vboxnetflt/vboxnetflt.ko .; \
36 fi
37 @if [ -d vboxnetadp ]; then \
38 echo "*** Building 'vboxnetadp' module ***"; \
39 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxnetadp; \
40 cp vboxnetadp/vboxnetadp.ko .; \
41 fi
42
43
44install:
45 @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxdrv install
46 @if [ -d vboxnetflt ]; then \
47 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxnetflt install; \
48 fi
49 @if [ -d vboxnetadp ]; then \
50 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxnetadp install; \
51 fi
52
53clean:
54 @$(MAKE) -C vboxdrv clean
55 @if [ -d vboxnetflt ]; then \
56 $(MAKE) -C vboxnetflt clean; \
57 fi
58 @if [ -d vboxnetadp ]; then \
59 $(MAKE) -C vboxnetadp clean; \
60 fi
61 rm -f vboxdrv.ko vboxnetflt.ko vboxnetadp.ko
62
63load:
64 @for module in vboxnetadp vboxnetflt vboxdrv; do \
65 if grep "^$$module " /proc/modules >/dev/null; then \
66 echo "Removing previously installed $$module module"; \
67 /sbin/rmmod $$module; \
68 fi; \
69 done
70 @for module in vboxdrv vboxnetflt vboxnetadp; do \
71 if test -f $$module.ko; then \
72 echo "Installing $$module module"; \
73 /sbin/insmod $$module.ko; \
74 fi; \
75 done
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette