1 | # $Id: Makefile.kmk 69111 2017-10-17 14:26:02Z vboxsync $
|
---|
2 | #
|
---|
3 | # VirtualBox Shared Folders driver
|
---|
4 | #
|
---|
5 | # Copyright (C) 2007-2017 Oracle Corporation
|
---|
6 | #
|
---|
7 |
|
---|
8 | SUB_DEPTH = ../../../../..
|
---|
9 | include $(KBUILD_PATH)/subheader.kmk
|
---|
10 |
|
---|
11 | #
|
---|
12 | # mount.vboxvfs - The Shared Folders mouning tool
|
---|
13 | #
|
---|
14 | PROGRAMS += mount.vboxvfs
|
---|
15 | mount.vboxvfs_TEMPLATE = NewVBoxGuestR3Exe
|
---|
16 | mount.vboxvfs_SOURCES = mount.vboxvfs.c
|
---|
17 | mount.vboxvfs_INST = $(INST_ADDITIONS)VBoxVFS.kext/Contents/MacOS/
|
---|
18 |
|
---|
19 | #
|
---|
20 | # vboxvfs - The Shared Folders Driver
|
---|
21 | #
|
---|
22 | SYSMODS += VBoxVFS
|
---|
23 | VBoxVFS_TEMPLATE = VBOXGUESTR0
|
---|
24 | VBoxVFS_DEFS = VBOX_WITH_HGCM
|
---|
25 | VBoxVFS_LIBS = $(VBOX_LIB_VBGL_R0)
|
---|
26 | # $(VBOX_LIB_IPRT_GUEST_R0)
|
---|
27 |
|
---|
28 | VBoxVFS_SOURCES = VBoxVFS.cpp \
|
---|
29 | VBoxVFS-VFSOps.cpp \
|
---|
30 | VBoxVFS-VNODEOps.cpp \
|
---|
31 | VBoxVFS-utils.cpp
|
---|
32 |
|
---|
33 | VBoxVFS_INST = $(INST_ADDITIONS)VBoxVFS.kext/Contents/MacOS/
|
---|
34 |
|
---|
35 | # Files necessary to make a darwin kernel extension bundle.
|
---|
36 | INSTALLS += VBoxVFS.kext
|
---|
37 | VBoxVFS.kext_INST = $(INST_ADDITIONS)VBoxVFS.kext/Contents/
|
---|
38 | VBoxVFS.kext_SOURCES = $(VBoxVFS.kext_0_OUTDIR)/Info.plist
|
---|
39 | VBoxVFS.kext_CLEAN = $(VBoxVFS.kext_0_OUTDIR)/Info.plist
|
---|
40 |
|
---|
41 | $$(VBoxVFS.kext_0_OUTDIR)/Info.plist: \
|
---|
42 | $(PATH_SUB_CURRENT)/Info.plist \
|
---|
43 | $(VBOX_VERSION_MK) | $$(dir $$@)
|
---|
44 | $(call MSG_GENERATE,VBoxVFS,$@,$<)
|
---|
45 | $(QUIET)$(RM) -f $@
|
---|
46 | $(QUIET)$(SED) \
|
---|
47 | -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
|
---|
48 | -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
|
---|
49 | -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
|
---|
50 | -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
|
---|
51 | -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
|
---|
52 | -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
|
---|
53 | -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
|
---|
54 | --output $@ \
|
---|
55 | $<
|
---|
56 |
|
---|
57 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|