1 | # $Id: Makefile.kmk 98197 2023-01-22 01:07:48Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the vboxsf (linux shared folders module).
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 |
|
---|
32 | #
|
---|
33 | # Populate FILES_VBOXSF_NOBIN
|
---|
34 | #
|
---|
35 | INSTALLS += vboxsf-src
|
---|
36 | include $(PATH_SUB_CURRENT)/files_vboxsf
|
---|
37 | vboxsf-src_INST = $(INST_ADDITIONS)src/vboxsf/
|
---|
38 | vboxsf-src_SOURCES = \
|
---|
39 | $(subst $(DQUOTE),,$(FILES_VBOXSF_NOBIN))
|
---|
40 | vboxsf-src_EXEC_SOURCES = \
|
---|
41 | $(subst $(DQUOTE),,$(FILES_VBOXSF_BIN))
|
---|
42 |
|
---|
43 | # Build test for the Guest Additions kernel modules (kmk check).
|
---|
44 | $(evalcall2 VBOX_LINUX_KMOD_TEST_BUILD_RULE_FN,vboxsf-src,vboxguest-src,)
|
---|
45 |
|
---|
46 | #
|
---|
47 | # The mount util.
|
---|
48 | #
|
---|
49 | PROGRAMS += mount.vboxsf
|
---|
50 | mount.vboxsf_TEMPLATE = VBoxGuestR3Exe
|
---|
51 | mount.vboxsf_DEFS = _GNU_SOURCE
|
---|
52 | mount.vboxsf_SOURCES = \
|
---|
53 | mount.vboxsf.c \
|
---|
54 | vbsfmount.c
|
---|
55 |
|
---|
56 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
57 |
|
---|