1 | # $Id: Makefile.kmk 69314 2017-10-25 14:41:47Z 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 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # mount.vboxvfs - The Shared Folders mouning tool
|
---|
23 | #
|
---|
24 | PROGRAMS += mount.vboxvfs
|
---|
25 | mount.vboxvfs_TEMPLATE = NewVBoxGuestR3Exe
|
---|
26 | mount.vboxvfs_SOURCES = mount.vboxvfs.c
|
---|
27 | mount.vboxvfs_INST = $(INST_ADDITIONS)VBoxVFS.kext/Contents/MacOS/
|
---|
28 |
|
---|
29 | #
|
---|
30 | # vboxvfs - The Shared Folders Driver
|
---|
31 | #
|
---|
32 | SYSMODS += VBoxVFS
|
---|
33 | VBoxVFS_TEMPLATE = VBOXGUESTR0
|
---|
34 | VBoxVFS_DEFS = VBOX_WITH_HGCM
|
---|
35 | VBoxVFS_LIBS = $(VBOX_LIB_VBGL_R0)
|
---|
36 | # $(VBOX_LIB_IPRT_GUEST_R0)
|
---|
37 |
|
---|
38 | VBoxVFS_SOURCES = VBoxVFS.cpp \
|
---|
39 | VBoxVFS-VFSOps.cpp \
|
---|
40 | VBoxVFS-VNODEOps.cpp \
|
---|
41 | VBoxVFS-utils.cpp
|
---|
42 |
|
---|
43 | VBoxVFS_INST = $(INST_ADDITIONS)VBoxVFS.kext/Contents/MacOS/
|
---|
44 |
|
---|
45 | # Files necessary to make a darwin kernel extension bundle.
|
---|
46 | INSTALLS += VBoxVFS.kext
|
---|
47 | VBoxVFS.kext_INST = $(INST_ADDITIONS)VBoxVFS.kext/Contents/
|
---|
48 | VBoxVFS.kext_SOURCES = $(VBoxVFS.kext_0_OUTDIR)/Info.plist
|
---|
49 | VBoxVFS.kext_CLEAN = $(VBoxVFS.kext_0_OUTDIR)/Info.plist
|
---|
50 |
|
---|
51 | $$(VBoxVFS.kext_0_OUTDIR)/Info.plist: \
|
---|
52 | $(PATH_SUB_CURRENT)/Info.plist \
|
---|
53 | $(VBOX_VERSION_MK) | $$(dir $$@)
|
---|
54 | $(call MSG_GENERATE,VBoxVFS,$@,$<)
|
---|
55 | $(QUIET)$(RM) -f $@
|
---|
56 | $(QUIET)$(SED) \
|
---|
57 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
58 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
59 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
60 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
61 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
62 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
63 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
64 | --output $@ \
|
---|
65 | $<
|
---|
66 |
|
---|
67 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|