VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/VBoxUSB/darwin/Makefile.kmk@ 54558

Last change on this file since 54558 was 53604, checked in by vboxsync, 10 years ago

kext test signing for development purposes (requires kmk r2742).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1# $Id: Makefile.kmk 53604 2014-12-26 16:53:18Z vboxsync $
2## @file
3# Sub-Makefile for the Darwin VBoxUSB kernel extension.
4#
5
6#
7# Copyright (C) 2006-2012 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# VBoxUSB.kext - The Darwin Kernel Extension.
23#
24
25# Leopard (x86) and Snow Leopard (x86/amd64)
26SYSMODS.darwin += VBoxUSB
27VBoxUSB_TEMPLATE = VBOXR0DRV
28VBoxUSB_INST = $(INST_VBOXUSB)Contents/MacOS/
29VBoxUSB_DEBUG_INST.darwin = $(patsubst %/,%,$(INST_VBOXUSB))
30VBoxUSB_INCS = \
31 . \
32 ..
33#VBoxUSB_LDFLAGS = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded
34VBoxUSB_SOURCES := \
35 VBoxUSB.cpp \
36 ../USBFilter.cpp \
37 ../VBoxUSBFilterMgr.cpp
38
39INSTALLS += VBoxUSB.kext
40VBoxUSB.kext_INST = $(INST_VBOXUSB)Contents/
41VBoxUSB.kext_SOURCES = $(VBoxUSB.kext_0_OUTDIR)/Contents/Info.plist
42VBoxUSB.kext_CLEAN = $(VBoxUSB.kext_0_OUTDIR)/Contents/Info.plist
43VBoxUSB.kext_BLDDIRS = $(VBoxUSB.kext_0_OUTDIR)/Contents/
44
45$$(VBoxUSB.kext_0_OUTDIR)/Contents/Info.plist: $(PATH_SUB_CURRENT)/Info.plist $(VBOX_VERSION_MK) | $$(dir $$@)
46 $(call MSG_GENERATE,VBoxUSB,$@,$<)
47 $(QUIET)$(RM) -f $@
48 $(QUIET)$(SED) \
49 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
50 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
51 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
52 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
53 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
54 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
55 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
56 --output $@ \
57 $<
58
59$(evalcall2 VBOX_TEST_SIGN_KEXT,VBoxUSB)
60
61# Common manual loader script.
62INSTALLS += ScriptsUSB
63ScriptsUSB_INST = $(INST_DIST)
64ScriptsUSB_EXEC_SOURCES = \
65 loadusb.sh
66
67ifdef VBOX_WITH_TESTCASES
68#
69# Testcase for doing some manual driver testing...
70#
71PROGRAMS += tstOpenUSBDev
72tstOpenUSBDev_TEMPLATE = VBOXR3TSTEXE
73tstOpenUSBDev_SOURCES = testcase/tstOpenUSBDev.cpp
74tstOpenUSBDev_LDFLAGS = -framework CoreFoundation -framework IOKit
75endif
76
77include $(FILE_KBUILD_SUB_FOOTER)
78
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