VirtualBox

source: vbox/trunk/src/VBox/Additions/darwin/VBoxSF/Makefile.kmk@ 75292

Last change on this file since 75292 was 75292, checked in by vboxsync, 6 years ago

add/darwin/VBoxSF: Renaming, bitrot, build hacks, a string buffering fix.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1# $Id: Makefile.kmk 75292 2018-11-06 15:06:31Z vboxsync $
2## @file
3# sub-makefile for the Mac OS addition file system driver.
4#
5
6#
7# Copyright (C) 2007-2017 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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# VBoxSF - The shared folders kernel extension.
23#
24SYSMODS += VBoxSF
25VBoxSF_TEMPLATE = VBOXGUESTR0
26VBoxSF_INST = $(INST_ADDITIONS)VBoxSF.kext/Contents/MacOS/
27VBoxSF_DEFS = VBOX_WITH_HGCM
28VBoxSF_CXXFLAGS = -Wno-unused -Wno-unused-parameter
29VBoxSF_LIBS = $(VBOX_LIB_VBGL_R0)
30VBoxSF_SOURCES = \
31 VBoxVFS.cpp \
32 VBoxVFS-VFSOps.cpp \
33 VBoxVFS-VNODEOps.cpp \
34 VBoxVFS-utils.cpp
35
36
37#
38# Files necessary to make a darwin kernel extension bundle.
39#
40INSTALLS += VBoxSF.kext
41VBoxSF.kext_INST = $(INST_ADDITIONS)VBoxSF.kext/Contents/
42VBoxSF.kext_SOURCES = $(VBoxSF.kext_0_OUTDIR)/Info.plist
43VBoxSF.kext_CLEAN = $(VBoxSF.kext_0_OUTDIR)/Info.plist
44
45$$(VBoxSF.kext_0_OUTDIR)/Info.plist: \
46 $(PATH_SUB_CURRENT)/Info.plist \
47 $(VBOX_VERSION_MK) | $$(dir $$@)
48 $(call MSG_GENERATE,VBoxSF,$@,$<)
49 $(QUIET)$(RM) -f $@
50 $(QUIET)$(SED) \
51 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
52 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
53 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
54 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
55 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
56 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
57 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
58 --output $@ \
59 $<
60
61#
62# mount.vboxvfs - The Shared Folders mouning tool.
63#
64PROGRAMS += mount.vboxsf
65mount.vboxsf_TEMPLATE = NewVBoxGuestR3Exe
66mount.vboxsf_SOURCES = mount.vboxsf.c
67mount.vboxsf_INST = $(INST_ADDITIONS)VBoxSF.kext/Contents/MacOS/
68
69
70include $(FILE_KBUILD_SUB_FOOTER)
71
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