1 | # $Id: Makefile.kmk 31896 2010-08-24 09:17:44Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Solaris VBoxUSB kernel extension.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2008 Oracle Corporation
|
---|
8 | #
|
---|
9 | # Oracle Corporation confidential
|
---|
10 | # All rights reserved
|
---|
11 | #
|
---|
12 |
|
---|
13 | SUB_DEPTH = ../../../../..
|
---|
14 | include $(KBUILD_PATH)/subheader.kmk
|
---|
15 |
|
---|
16 | #
|
---|
17 | # VBoxUSBHelper - Setuid binary helper for updating driver alias.
|
---|
18 | #
|
---|
19 | PROGRAMS.solaris += VBoxUSBHelper
|
---|
20 | VBoxUSBHelper_TEMPLATE = VBOXR3EXE
|
---|
21 | VBoxUSBHelper_SOURCES = VBoxUSBHelper.cpp
|
---|
22 | VBoxUSBHelper_LIBS = nvpair device
|
---|
23 |
|
---|
24 | #
|
---|
25 | # vboxusbmon - The Solaris USB Monitor Kernel module.
|
---|
26 | #
|
---|
27 | SYSMODS.solaris += vboxusbmon
|
---|
28 | vboxusbmon_TEMPLATE = VBOXR0DRV
|
---|
29 | vboxusbmon_DEFS = IN_RT_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) \
|
---|
30 | $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),VBOX_WITH_NEW_USB_CODE_ON_SOLARIS,)
|
---|
31 | vboxusbmon_DEPS += $(VBOX_SVN_REV_KMK)
|
---|
32 | vboxusbmon_INCS := . .. \
|
---|
33 | $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),include/,)
|
---|
34 | vboxusbmon_LDFLAGS += -N drv/vboxdrv -N misc/usba
|
---|
35 | vboxusbmon_SOURCES = \
|
---|
36 | VBoxUSBMon-solaris.c \
|
---|
37 | ../USBFilter.cpp \
|
---|
38 | ../VBoxUSBFilterMgr.cpp
|
---|
39 |
|
---|
40 | ifdef VBOX_WITH_NEW_USB_CODE_ON_SOLARIS
|
---|
41 | #
|
---|
42 | # vboxusb - The Solaris Generic USB Client Kernel module.
|
---|
43 | #
|
---|
44 | SYSMODS.solaris += vboxusb
|
---|
45 | vboxusb_TEMPLATE = VBOXR0DRV
|
---|
46 | vboxusb_DEFS = IN_RT_R0 IN_SUP_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) \
|
---|
47 | $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),VBOX_WITH_NEW_USB_CODE_ON_SOLARIS,)
|
---|
48 | vboxusb_DEPS += $(VBOX_SVN_REV_KMK)
|
---|
49 | vboxusb_INCS := . include/
|
---|
50 | vboxusb_LDFLAGS += -N drv/vboxdrv -N drv/vboxusbmon -N misc/usba
|
---|
51 | vboxusb_SOURCES = \
|
---|
52 | VBoxUSB-solaris.c
|
---|
53 | endif
|
---|
54 |
|
---|
55 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
56 |
|
---|