VirtualBox

source: vbox/trunk/src/VBox/Additions/freebsd/Makefile@ 97728

Last change on this file since 97728 was 96407, checked in by vboxsync, 2 years ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1#
2# Makefile for the VirtualBox FreeBSD Guest Drivers.
3#
4
5#
6# Copyright (C) 2009-2022 Oracle and/or its affiliates.
7#
8# This file is part of VirtualBox base platform packages, as
9# available from https://www.virtualbox.org.
10#
11# This program is free software; you can redistribute it and/or
12# modify it under the terms of the GNU General Public License
13# as published by the Free Software Foundation, in version 3 of the
14# License.
15#
16# This program is distributed in the hope that it will be useful, but
17# WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, see <https://www.gnu.org/licenses>.
23#
24# SPDX-License-Identifier: GPL-3.0-only
25#
26
27KBUILD_VERBOSE =
28
29all:
30 @echo "=== Building 'vboxguest' module ==="
31 @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxguest
32 @if [ -f vboxguest/vboxguest.ko ]; then \
33 cp vboxguest/vboxguest.ko .; \
34 fi
35 @echo
36 @if [ -d vboxvfs ]; then \
37 echo "=== Building 'vboxvfs' module ==="; \
38 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxvfs; \
39 if [ -f vboxvfs/vboxvfs.ko ]; then \
40 cp vboxvfs/vboxvfs.ko .; \
41 fi; \
42 fi
43
44
45install:
46 @$(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxguest install
47 @if [ -d vboxvfs ]; then \
48 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxvfs install; \
49 fi
50
51clean:
52 @$(MAKE) -C vboxguest clean
53 @if [ -d vboxvfs ]; then \
54 $(MAKE) -C vboxvfs clean; \
55 fi
56 rm -f vboxguest.*o vboxvfs.*o
57
58load:
59 @/sbin/kldunload vboxvfs || true
60 @/sbin/kldunload vboxguest || true
61 @/sbin/kldload ./vboxguest.ko
62 @if [ -f vboxvfs.ko ]; then /sbin/kldload ./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