1 | # $Id: Makefile.kmk 93217 2022-01-13 07:29:50Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Windows USB drivers.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 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 | # The contents of this file may alternatively be used under the terms
|
---|
18 | # of the Common Development and Distribution License Version 1.0
|
---|
19 | # (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | # VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | # CDDL are applicable instead of those of the GPL.
|
---|
22 | #
|
---|
23 | # You may elect to license modified versions of this file under the
|
---|
24 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | #
|
---|
26 |
|
---|
27 | SUB_DEPTH = ../../../..
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | # Include sub-makefiles.
|
---|
31 | if1of ($(KBUILD_TARGET), solaris win)
|
---|
32 | include $(PATH_SUB_CURRENT)/$(KBUILD_TARGET)/Makefile.kmk
|
---|
33 | endif
|
---|
34 |
|
---|
35 | #
|
---|
36 | # USBLib - The static USB Library for use in VBoxSVC and VBoxDD.
|
---|
37 | #
|
---|
38 | # Note! Drivers using USBFilter.cpp should just add ../USBFilter.cpp
|
---|
39 | # to their source list.
|
---|
40 | #
|
---|
41 | LIBRARIES += USBLib
|
---|
42 | USBLib_TEMPLATE = VBOXR3
|
---|
43 | USBLib_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
44 | USBLib_DEFS = IN_USBLIB
|
---|
45 | USBLib_DEFS.os2 = STATIC_USBCALLS
|
---|
46 | USBLib_DEFS.win = _WIN32_WINNT=0x0501
|
---|
47 | USBLib_SOURCES = \
|
---|
48 | USBLib.cpp \
|
---|
49 | USBFilter.cpp
|
---|
50 |
|
---|
51 | # OS specific bits if applicable.
|
---|
52 | USBLib_SOURCES.os2 = \
|
---|
53 | os2/usbcalls.c
|
---|
54 | USBLib_SOURCES.solaris = \
|
---|
55 | solaris/USBLib-solaris.cpp
|
---|
56 | USBLib_SOURCES.win = \
|
---|
57 | win/lib/VBoxUsbLib-win.cpp
|
---|
58 |
|
---|
59 | ifdef VBOX_WITH_TESTCASES
|
---|
60 | #
|
---|
61 | # USBFilter testcase.
|
---|
62 | #
|
---|
63 | PROGRAMS += tstUSBFilter
|
---|
64 | tstUSBFilter_TEMPLATE = VBOXR3TSTEXE
|
---|
65 | tstUSBFilter_DEFS = IN_USBLIB
|
---|
66 | tstUSBFilter_SOURCES = \
|
---|
67 | testcase/tstUSBFilter.cpp
|
---|
68 | tstUSBFilter_LIBS = \
|
---|
69 | $(USBLib_1_TARGET)
|
---|
70 | endif # VBOX_WITH_TESTCASES
|
---|
71 |
|
---|
72 |
|
---|
73 | # generate rules
|
---|
74 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
75 |
|
---|