VirtualBox

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

Last change on this file since 76553 was 76553, checked in by vboxsync, 6 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1# $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z vboxsync $
2## @file
3# Sub-Makefile for the Windows USB drivers.
4#
5
6#
7# Copyright (C) 2006-2019 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
27SUB_DEPTH = ../../../..
28include $(KBUILD_PATH)/subheader.kmk
29
30# Include sub-makefiles.
31if1of ($(KBUILD_TARGET), darwin solaris win)
32 include $(PATH_SUB_CURRENT)/$(KBUILD_TARGET)/Makefile.kmk
33endif
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#
41LIBRARIES += USBLib
42USBLib_TEMPLATE = VBOXR3
43USBLib_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
44USBLib_DEFS = IN_USBLIB
45USBLib_DEFS.os2 = STATIC_USBCALLS
46USBLib_DEFS.win = _WIN32_WINNT=0x0501
47USBLib_SOURCES = \
48 USBLib.cpp \
49 USBFilter.cpp
50
51# OS specific bits if applicable.
52USBLib_SOURCES.darwin = \
53 darwin/USBLib-darwin.cpp
54USBLib_SOURCES.os2 = \
55 os2/usbcalls.c
56USBLib_SOURCES.solaris = \
57 solaris/USBLib-solaris.cpp
58USBLib_SOURCES.win = \
59 win/lib/VBoxUsbLib-win.cpp
60
61ifdef 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)
72endif # VBOX_WITH_TESTCASES
73
74
75# generate rules
76include $(FILE_KBUILD_SUB_FOOTER)
77
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