1 | # $Id: Makefile.kmk 98201 2023-01-22 01:11:01Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # sub-makefile for Darwin Shared Folders.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2007-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 | # VBoxSF - The shared folders kernel extension.
|
---|
33 | #
|
---|
34 | SYSMODS += VBoxSF
|
---|
35 | VBoxSF_TEMPLATE = VBoxGuestR0Drv
|
---|
36 | VBoxSF_INST = $(INST_ADDITIONS)VBoxSF.kext/Contents/MacOS/
|
---|
37 | VBoxSF_DEFS = VBOX_WITH_HGCM
|
---|
38 | VBoxSF_LIBS = $(VBOX_LIB_VBGL_R0)
|
---|
39 | VBoxSF_SOURCES = \
|
---|
40 | VBoxSF.cpp \
|
---|
41 | VBoxSF-VfsOps.cpp \
|
---|
42 | VBoxSF-VNodeOps.cpp \
|
---|
43 | VBoxSF-Utils.cpp
|
---|
44 |
|
---|
45 |
|
---|
46 | #
|
---|
47 | # Files necessary to make a darwin kernel extension bundle.
|
---|
48 | #
|
---|
49 | INSTALLS += VBoxSF.kext
|
---|
50 | VBoxSF.kext_INST = $(INST_ADDITIONS)VBoxSF.kext/Contents/
|
---|
51 | VBoxSF.kext_SOURCES = $(VBoxSF.kext_0_OUTDIR)/Info.plist
|
---|
52 | VBoxSF.kext_CLEAN = $(VBoxSF.kext_0_OUTDIR)/Info.plist
|
---|
53 |
|
---|
54 | $$(VBoxSF.kext_0_OUTDIR)/Info.plist: \
|
---|
55 | $(PATH_SUB_CURRENT)/Info.plist \
|
---|
56 | $(VBOX_VERSION_MK) | $$(dir $$@)
|
---|
57 | $(call MSG_GENERATE,VBoxSF,$@,$<)
|
---|
58 | $(QUIET)$(RM) -f $@
|
---|
59 | $(QUIET)$(SED) \
|
---|
60 | -e 's+@VBOX_VERSION_STRING@+$(VBOX_VERSION_STRING)+g' \
|
---|
61 | -e 's+@VBOX_VERSION_MAJOR@+$(VBOX_VERSION_MAJOR)+g' \
|
---|
62 | -e 's+@VBOX_VERSION_MINOR@+$(VBOX_VERSION_MINOR)+g' \
|
---|
63 | -e 's+@VBOX_VERSION_BUILD@+$(VBOX_VERSION_BUILD)+g' \
|
---|
64 | -e 's+@VBOX_VENDOR@+$(VBOX_VENDOR)+g' \
|
---|
65 | -e 's+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+g' \
|
---|
66 | -e 's+@VBOX_C_YEAR@+$(VBOX_C_YEAR)+g' \
|
---|
67 | --output $@ \
|
---|
68 | $<
|
---|
69 |
|
---|
70 | #
|
---|
71 | # mount.vboxsf - The Shared Folders mounting tool.
|
---|
72 | #
|
---|
73 | PROGRAMS += mount.vboxsf
|
---|
74 | mount.vboxsf_TEMPLATE = VBoxGuestR3Exe
|
---|
75 | mount.vboxsf_SOURCES = mount.vboxsf.cpp
|
---|
76 | mount.vboxsf_INST = $(INST_ADDITIONS)VBoxSF.kext/Contents/MacOS/
|
---|
77 |
|
---|
78 |
|
---|
79 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
80 |
|
---|