Changeset 15816 in vbox for trunk/src/VBox/Additions/linux/Makefile
- Timestamp:
- Jan 6, 2009 11:10:51 AM (16 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/Makefile
r15803 r15816 1 1 # 2 # Makefile for the VirtualBox Linux Host Drivers.2 # Makefile for the VirtualBox Linux Guest Drivers. 3 3 # 4 4 5 5 # 6 6 # 7 # Copyright (C) 200 8Sun Microsystems, Inc.7 # Copyright (C) 2009 Sun Microsystems, Inc. 8 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as … … 23 23 24 24 all: 25 @echo "*** Building 'vbox drv' module ***"26 @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vbox drv27 @cp vbox drv/vboxdrv.ko .25 @echo "*** Building 'vboxadd' module ***" 26 @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxadd 27 @cp vboxadd/vboxadd.ko . 28 28 @echo 29 @if [ -d vbox netflt]; then \30 if [ -f vbox drv/Module.symvers ]; then \31 cp vbox drv/Module.symvers vboxnetflt; \29 @if [ -d vboxvfs ]; then \ 30 if [ -f vboxadd/Module.symvers ]; then \ 31 cp vboxadd/Module.symvers vboxvfs; \ 32 32 fi; \ 33 echo "*** Building 'vbox netflt' module ***"; \34 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vbox netflt; \35 cp vbox netflt/vboxnetflt.ko .; \33 echo "*** Building 'vboxvfs' module ***"; \ 34 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxvfs; \ 35 cp vboxvfs/vboxvfs.ko .; \ 36 36 fi 37 37 38 38 39 39 install: 40 @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vbox drvinstall41 @if [ -d vbox netflt]; then \42 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vbox netfltinstall; \40 @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxadd install 41 @if [ -d vboxvfs ]; then \ 42 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxvfs install; \ 43 43 fi 44 44 45 45 clean: 46 @$(MAKE) -C vbox drvclean47 @if [ -d vbox netflt]; then \48 $(MAKE) -C vbox netfltclean; \46 @$(MAKE) -C vboxadd clean 47 @if [ -d vboxvfs ]; then \ 48 $(MAKE) -C vboxvfs clean; \ 49 49 fi 50 rm -f vbox drv.ko vboxnetflt.ko50 rm -f vboxadd.ko vboxvfs.ko 51 51 52 52 load: 53 @/sbin/rmmod vbox netflt|| true54 @/sbin/rmmod vbox drv|| true55 @/sbin/insmod vbox drv.ko56 @if [ -f vbox netflt.ko ]; then /sbin/insmod vboxnetflt.ko; fi53 @/sbin/rmmod vboxvfs || true 54 @/sbin/rmmod vboxadd || true 55 @/sbin/insmod vboxadd.ko 56 @if [ -f vboxvfs.ko ]; then /sbin/insmod vboxvfs.ko; fi
Note:
See TracChangeset
for help on using the changeset viewer.