VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/Makefile@ 21411

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

Linux additions kernel modules: fixes for Linux 2.4

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1#
2# Makefile for the VirtualBox Linux Guest Drivers.
3#
4
5#
6#
7# Copyright (C) 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 'vboxadd' module ***"
26 @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxadd
27 @cp vboxadd/vboxadd.*o .
28 @echo
29 @if [ -d vboxguest ]; then \
30 if [ -f vboxadd/Module.symvers ]; then \
31 cp vboxadd/Module.symvers vboxguest; \
32 fi; \
33 echo "*** Building 'vboxguest' module ***"; \
34 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxguest; \
35 cp vboxguest/vboxguest.*o .; \
36 echo; \
37 fi
38 @if [ -d vboxvfs ]; then \
39 if [ -f vboxadd/Module.symvers ]; then \
40 cp vboxadd/Module.symvers vboxvfs; \
41 fi; \
42 echo "*** Building 'vboxvfs' module ***"; \
43 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxvfs; \
44 cp vboxvfs/vboxvfs.*o .; \
45 fi
46
47
48install:
49 @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxadd install
50 @if [ -d vboxvfs ]; then \
51 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxvfs install; \
52 fi
53
54clean:
55 @$(MAKE) -C vboxadd clean
56 @if [ -d vboxguest ]; then \
57 $(MAKE) -C vboxguest clean; \
58 fi
59 @if [ -d vboxvfs ]; then \
60 $(MAKE) -C vboxvfs clean; \
61 fi
62 rm -f vboxadd.ko vboxvfs.ko
63
64load:
65 @/sbin/rmmod vboxvfs || true
66 @/sbin/rmmod vboxadd || true
67 @/sbin/insmod vboxadd.ko
68 @if [ -f vboxvfs.ko ]; then /sbin/insmod vboxvfs.ko; fi
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