1 | # $Id: Makefile.kmk 82968 2020-02-04 10:35:17Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # sub-makefile for Darwin Shared Folders.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2007-2020 Oracle Corporation
|
---|
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 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # VBoxSF - The shared folders kernel extension.
|
---|
23 | #
|
---|
24 | SYSMODS += VBoxSF
|
---|
25 | VBoxSF_TEMPLATE = VBOXGUESTR0
|
---|
26 | VBoxSF_INST = $(INST_ADDITIONS)VBoxSF.kext/Contents/MacOS/
|
---|
27 | VBoxSF_DEFS = VBOX_WITH_HGCM
|
---|
28 | VBoxSF_LIBS = $(VBOX_LIB_VBGL_R0)
|
---|
29 | VBoxSF_SOURCES = \
|
---|
30 | VBoxSF.cpp \
|
---|
31 | VBoxSF-VfsOps.cpp \
|
---|
32 | VBoxSF-VNodeOps.cpp \
|
---|
33 | VBoxSF-Utils.cpp
|
---|
34 |
|
---|
35 |
|
---|
36 | #
|
---|
37 | # Files necessary to make a darwin kernel extension bundle.
|
---|
38 | #
|
---|
39 | INSTALLS += VBoxSF.kext
|
---|
40 | VBoxSF.kext_INST = $(INST_ADDITIONS)VBoxSF.kext/Contents/
|
---|
41 | VBoxSF.kext_SOURCES = $(VBoxSF.kext_0_OUTDIR)/Info.plist
|
---|
42 | VBoxSF.kext_CLEAN = $(VBoxSF.kext_0_OUTDIR)/Info.plist
|
---|
43 |
|
---|
44 | $$(VBoxSF.kext_0_OUTDIR)/Info.plist: \
|
---|
45 | $(PATH_SUB_CURRENT)/Info.plist \
|
---|
46 | $(VBOX_VERSION_MK) | $$(dir $$@)
|
---|
47 | $(call MSG_GENERATE,VBoxSF,$@,$<)
|
---|
48 | $(QUIET)$(RM) -f $@
|
---|
49 | $(QUIET)$(SED) \
|
---|
50 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
51 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
52 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
53 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
54 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
55 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
56 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
57 | --output $@ \
|
---|
58 | $<
|
---|
59 |
|
---|
60 | #
|
---|
61 | # mount.vboxsf - The Shared Folders mounting tool.
|
---|
62 | #
|
---|
63 | PROGRAMS += mount.vboxsf
|
---|
64 | mount.vboxsf_TEMPLATE = NewVBoxGuestR3Exe
|
---|
65 | mount.vboxsf_SOURCES = mount.vboxsf.cpp
|
---|
66 | mount.vboxsf_INST = $(INST_ADDITIONS)VBoxSF.kext/Contents/MacOS/
|
---|
67 |
|
---|
68 |
|
---|
69 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
70 |
|
---|