1 | # $Id: Makefile.kmk 82968 2020-02-04 10:35:17Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Windows USB drivers.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2020 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), darwin 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.darwin = \
|
---|
53 | darwin/USBLib-darwin.cpp
|
---|
54 | USBLib_SOURCES.os2 = \
|
---|
55 | os2/usbcalls.c
|
---|
56 | USBLib_SOURCES.solaris = \
|
---|
57 | solaris/USBLib-solaris.cpp
|
---|
58 | USBLib_SOURCES.win = \
|
---|
59 | win/lib/VBoxUsbLib-win.cpp
|
---|
60 |
|
---|
61 | ifdef VBOX_WITH_TESTCASES
|
---|
62 | #
|
---|
63 | # USBFilter testcase.
|
---|
64 | #
|
---|
65 | PROGRAMS += tstUSBFilter
|
---|
66 | tstUSBFilter_TEMPLATE = VBOXR3TSTEXE
|
---|
67 | tstUSBFilter_DEFS = IN_USBLIB
|
---|
68 | tstUSBFilter_SOURCES = \
|
---|
69 | testcase/tstUSBFilter.cpp
|
---|
70 | tstUSBFilter_LIBS = \
|
---|
71 | $(USBLib_1_TARGET)
|
---|
72 | endif # VBOX_WITH_TESTCASES
|
---|
73 |
|
---|
74 |
|
---|
75 | # generate rules
|
---|
76 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
77 |
|
---|