VirtualBox

source: vbox/trunk/src/VBox/Devices/Makefile.kmk@ 32857

Last change on this file since 32857 was 32820, checked in by vboxsync, 14 years ago

PCI, PDM: initial drop of MSI support

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 29.8 KB
Line 
1# $Id: Makefile.kmk 32820 2010-09-29 16:25:16Z vboxsync $
2## @file
3# Top-level sub-makefile for the devices, drivers and services.
4#
5
6#
7# Copyright (C) 2006-2010 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
22VBOX_PATH_DEVICES_SRC := $(PATH_SUB_CURRENT)
23
24# Include sub-makefiles.
25include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
26include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
27include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
28include $(PATH_SUB_CURRENT)/Storage/testcase/Makefile.kmk
29ifndef VBOX_OSE
30 include $(PATH_SUB_CURRENT)/Storage/VBoxHDDFormats/Makefile.kmk
31endif
32ifdef VBOX_WITH_EFI
33 include $(PATH_SUB_CURRENT)/EFI/Thunk/Makefile.kmk
34endif
35ifdef VBOX_WITH_INTEL_PXE
36 include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
37else
38 # Subdir with complex makefile.
39 SUBDIRS_LIBRARIES += $(VBOX_PATH_DEVICES_SRC)/PC/Etherboot-src
40 SUBDIRS_CLEAN += $(VBOX_PATH_DEVICES_SRC)/PC/Etherboot-src
41 # Disable the unsafe pass order optimizations.
42 KBUILD_SAFE_PARALLEL = 1
43endif
44
45#
46# Main targets.
47#
48LIBRARIES += DevicesR3 Drivers ServicesR0
49DLLS += VBoxDDU VBoxDD VBoxDD2
50SYSMODS += VBoxDDR0 VBoxDD2R0
51ifdef VBOX_WITH_RAW_MODE
52 SYSMODS += VBoxDDGC VBoxDD2GC
53endif
54
55
56#
57# VBoxDDU (shared object)
58#
59VBoxDDU_TEMPLATE = VBOXR3
60VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
61VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
62VBoxDDU_DEFS = IN_VBOXDDU
63ifdef VBOX_WITH_VUSB
64 VBoxDDU_DEFS += VBOX_WITH_VUSB
65endif
66ifdef VBOX_WITH_USB
67 VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
68 VBoxDDU_SDKS.win = WINPSDK W2K3DDK
69 ifdef VBOX_WITH_EHCI
70 VBoxDDU_DEFS += VBOX_WITH_EHCI
71 endif
72 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
73 VBoxDDU_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
74 endif
75else
76 VBoxDDU_SDKS.win = WINPSDK
77endif
78VBoxDDU_SOURCES = \
79 Storage/VBoxHDD.cpp \
80 Storage/VDIHDDCore.cpp \
81 Storage/VHDHDDCore.cpp \
82 Storage/VmdkHDDCore.cpp \
83 Storage/RawHDDCore.cpp \
84 Storage/ParallelsHDDCore.cpp \
85 Storage/DMGHDDCore.cpp \
86 Storage/VCICacheCore.cpp \
87 Storage/VSCSI/VSCSIDevice.cpp \
88 Storage/VSCSI/VSCSILun.cpp \
89 Storage/VSCSI/VSCSILunSbc.cpp \
90 Storage/VSCSI/VSCSISense.cpp \
91 Storage/VSCSI/VSCSISgBuf.cpp \
92 Storage/VSCSI/VSCSIIoReq.cpp \
93 VBoxDDUDeps.cpp
94ifdef VBOX_WITH_USB
95 VBoxDDU_INCS.os2 += \
96 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
97endif
98VBoxDDU_LIBS = \
99 $(LIB_RUNTIME)
100ifdef VBOX_WITH_USB
101 VBoxDDU_LIBS += \
102 $(PATH_LIB)/USBLib$(VBOX_SUFF_LIB)
103endif
104ifeq ($(KBUILD_TARGET),l4)
105 VBoxDDU_LIBS += \
106 $(L4_LIBDIR)/libl4sys.p.a
107endif
108VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
109ifdef VBOX_WITH_USB
110 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
111 VBoxDDU_LDFLAGS.darwin += -framework IOKit
112 endif
113endif
114
115VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
116VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
117
118#
119# VBoxDDULnxHostR3 (Only needed for l4, currently for executing vditool on L4Linux.)
120#
121ifeq ($(KBUILD_TARGET),l4)
122 LIBRARIES += VBoxDDULnxHostR3
123 VBoxDDULnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
124 VBoxDDULnxHostR3_DEFS = IN_VBOXDDU
125 VBoxDDULnxHostR3_SOURCES = $(VBoxDDU_SOURCES)
126endif
127
128#
129# VBoxDD (shared object)
130#
131VBoxDD_TEMPLATE = VBOXR3
132ifdef VBOX_WITH_DTRACE_R3
133 VBoxDD_TEMPLATE = VBOXR3OSX105
134endif
135VBoxDD_SDKS.win = WINPSDK DXSDK W2K3DDK VBOX_NTDLL
136VBoxDD_SOURCES = \
137 Builtins.cpp
138VBoxDD_DEFS = VBOX_ACPI
139ifdef VBOX_WITH_USB
140 VBoxDD_DEFS += VBOX_WITH_USB
141 ifdef VBOX_WITH_EHCI
142 VBoxDD_DEFS += VBOX_WITH_EHCI
143 endif
144endif
145ifdef VBOX_WITH_VUSB
146 VBoxDD_DEFS += VBOX_WITH_VUSB
147endif
148ifdef VBOX_WITH_AHCI
149 VBoxDD_DEFS += VBOX_WITH_AHCI
150endif
151ifdef VBOX_WITH_INIP
152 VBoxDD_DEFS += VBOX_WITH_INIP
153endif
154ifdef VBOX_WITH_E1000
155 VBoxDD_DEFS += VBOX_WITH_E1000
156endif
157ifdef VBOX_WITH_VIRTIO
158 VBoxDD_DEFS += VBOX_WITH_VIRTIO
159endif
160ifdef VBOX_WITH_BUSLOGIC
161 VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
162endif
163ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
164 VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
165endif
166ifdef VBOX_WITH_SCSI
167 VBoxDD_DEFS += VBOX_WITH_SCSI
168endif
169ifdef VBOX_WITH_LSILOGIC
170 VBoxDD_DEFS += VBOX_WITH_LSILOGIC
171endif
172ifdef VBOX_WITH_EFI
173 VBoxDD_DEFS += VBOX_WITH_EFI
174endif
175ifdef VBOX_WITH_DRV_DISK_INTEGRITY
176 VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
177endif
178ifdef VBOX_WITH_VDE
179 VBoxDD_DEFS += VBOX_WITH_VDE
180endif
181
182VBoxDD_LIBS = \
183 $(PATH_LIB)/DevicesR3$(VBOX_SUFF_LIB) \
184 $(PATH_LIB)/Drivers$(VBOX_SUFF_LIB) \
185 $(PATH_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
186 $(LIB_VMM) \
187 $(LIB_RUNTIME)
188ifeq ($(KBUILD_TARGET),win)
189 VBoxDD_LIBS += \
190 $(LIB_DDU) \
191 $(PATH_LIB)/VBoxDD2.lib \
192 $(PATH_SDK_DXSDK_LIB)/dxguid.lib
193else
194 VBoxDD_LIBS += \
195 $(INSTARGET_VBoxDDU) \
196 $(INSTARGET_VBoxDD2)
197endif
198ifeq ($(KBUILD_TARGET),l4)
199 VBoxDD_LIBS += \
200 $(L4_LIBDIR)/libl4sys.p.a
201endif
202
203ifdef VBOX_WITH_HGSMI
204 VBoxDD_LIBS += \
205 $(PATH_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
206endif
207
208ifdef VBOX_WITH_NETFLT
209 VBoxDD_LIBS.win += $(PATH_LIB)/WinNetConfig.lib
210endif
211
212ifdef VBOX_WITH_EFI
213 VBoxDD_LIBS += $(PATH_LIB)/EfiThunkBin$(VBOX_SUFF_LIB)
214endif
215
216ifeq ($(KBUILD_TARGET),solaris)
217 VBoxDD_LIBS += adm
218 ifdef VBOX_WITH_SUID_WRAPPER
219 VBoxDD_LIBS += secdb
220 endif
221 ifdef VBOX_WITH_USB
222 VBoxDD_LIBS += aio
223 endif
224endif
225
226VBoxDD_LIBS.darwin += \
227 $(LIB_REM)
228
229VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
230 -framework CoreAudio \
231 -framework AudioUnit \
232 -framework AudioToolbox \
233 -framework IOKit \
234 -framework Carbon \
235 -framework DiskArbitration
236VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
237VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined
238
239
240#
241# VBoxDD2 (shared object)
242#
243VBoxDD2_TEMPLATE = VBOXR3
244VBoxDD2_DEFS = IN_VBOXDD2
245VBoxDD2_INCS := \
246 $(PATH_SUB_CURRENT)
247VBoxDD2_SOURCES = \
248 Builtins2.cpp \
249 PC/DevAPIC.cpp \
250 PC/DevSMC.cpp \
251 PC/DevLPC.cpp
252VBoxDD2_LIBS = \
253 $(PATH_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
254 $(PATH_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
255 $(PATH_LIB)/NetBiosBin$(VBOX_SUFF_LIB) \
256 $(LIB_VMM) \
257 $(LIB_RUNTIME)
258ifeq ($(KBUILD_TARGET),l4)
259VBoxDD2_LIBS += \
260 $(L4_LIBDIR)/libl4sys.p.a
261endif
262VBoxDD2_LIBS.darwin += $(LIB_REM)
263VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
264VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
265VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
266
267
268#
269# DevicesR3 (library)
270#
271DevicesR3_TEMPLATE = VBOXR3
272DevicesR3_SDKS.win = WINPSDK W2K3DDK
273DevicesR3_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
274DevicesR3_DEFS += VBOX_HGCM_HOST_CODE \
275 VBOX_WITH_HGCM
276DevicesR3_DEFS.linux += _GNU_SOURCE
277DevicesR3_DEFS.l4 += _GNU_SOURCE
278
279DevicesR3_INCS = \
280 .
281
282DevicesR3_SOURCES = \
283 Input/DevPS2.cpp \
284 Input/UsbKbd.cpp \
285 Input/UsbMouse.cpp \
286 Bus/DevPCI.cpp \
287 Bus/DevPciIch9.cpp \
288 Bus/MsiCommon.cpp \
289 Graphics/DevVGA.cpp \
290 Storage/DevATA.cpp \
291 PC/DevPit-i8254.cpp \
292 PC/DevPIC.cpp \
293 PC/DevACPI.cpp \
294 PC/ACPI/VBoxAcpi.cpp \
295 PC/DevRTC.cpp \
296 PC/DevPcBios.cpp \
297 PC/DevFwCommon.cpp \
298 PC/DevPcArch.c \
299 VMMDev/VMMDev.cpp \
300 VMMDev/VMMDevHGCM.cpp \
301 VMMDev/VMMDevTesting.cpp \
302 Network/DevPCNet.cpp \
303 Audio/DevIchAc97.cpp \
304 Audio/DevSB16.cpp \
305 Audio/DevIchIntelHDA.cpp \
306 Audio/DevCodec.cpp \
307 PC/DevDMA.cpp \
308 PC/DevHPET.cpp \
309 PC/DevSMC.cpp \
310 PC/DevLPC.cpp \
311 Storage/fdc.c \
312 Serial/DevSerial.cpp \
313 Parallel/DevParallel.cpp
314
315ifdef VBOX_DYNAMIC_NET_ATTACH
316 DevicesR3_DEFS += VBOX_DYNAMIC_NET_ATTACH
317endif
318ifdef VBOX_BIOS_DMI_FALLBACK
319 DevicesR3_DEFS += VBOX_BIOS_DMI_FALLBACK
320endif
321
322ifdef VBOX_WITH_E1000
323 DevicesR3_DEFS += VBOX_WITH_E1000
324 DevicesR3_SOURCES += \
325 Network/DevE1000.cpp \
326 Network/DevE1000Phy.cpp \
327 Network/DevEEPROM.cpp
328endif
329
330ifdef VBOX_WITH_VIRTIO
331 DevicesR3_DEFS += VBOX_WITH_VIRTIO
332 DevicesR3_SOURCES += \
333 VirtIO/Virtio.cpp \
334 Network/DevVirtioNet.cpp
335endif
336
337ifdef VBOX_WITH_HGSMI
338 DevicesR3_DEFS += VBOX_WITH_HGSMI
339 DevicesR3_SOURCES += \
340 Graphics/DevVGA_VBVA.cpp \
341 Graphics/HGSMI/HGSMIHost.cpp \
342 Graphics/HGSMI/HGSMIHostHlp.cpp
343
344endif
345ifdef VBOX_WITH_WDDM
346 DevicesR3_DEFS += VBOX_WITH_WDDM
347 DevicesR3_SOURCES += \
348 Graphics/HGSMI/SHGSMIHost.cpp
349endif
350ifdef VBOXWDDM_WITH_VBVA
351 DevicesR3_DEFS += VBOXWDDM_WITH_VBVA
352endif
353
354ifdef VBOX_WITH_VIDEOHWACCEL
355 DevicesR3_DEFS += VBOX_WITH_VIDEOHWACCEL
356endif
357ifdef VBOX_WITH_DMI_CHASSIS
358 DevicesR3_DEFS += VBOX_WITH_DMI_CHASSIS
359endif
360ifdef VBOX_WITH_DMI_OEMSTRINGS
361 DevicesR3_DEFS += VBOX_WITH_DMI_OEMSTRINGS
362endif
363
364ifdef VBOX_WITH_INIP
365 DevicesR3_INCS += \
366 Network/lwip/src/include \
367 Network/lwip/src/include/ipv4 \
368 Network/lwip/vbox/include
369 DevicesR3_SOURCES += \
370 Network/lwip/src/api/api_lib.c \
371 Network/lwip/src/api/api_msg.c \
372 Network/lwip/src/api/err.c \
373 Network/lwip/src/api/sockets.c \
374 Network/lwip/src/api/tcpip.c \
375 Network/lwip/src/core/tcp_in.c \
376 Network/lwip/src/core/dhcp.c \
377 Network/lwip/src/core/inet.c \
378 Network/lwip/src/core/mem.c \
379 Network/lwip/src/core/memp.c \
380 Network/lwip/src/core/netif.c \
381 Network/lwip/src/core/pbuf.c \
382 Network/lwip/src/core/raw.c \
383 Network/lwip/src/core/stats.c \
384 Network/lwip/src/core/sys.c \
385 Network/lwip/src/core/tcp.c \
386 Network/lwip/src/core/ipv4/ip_addr.c \
387 Network/lwip/src/core/ipv4/icmp.c \
388 Network/lwip/src/core/ipv4/ip.c \
389 Network/lwip/src/core/ipv4/ip_frag.c \
390 Network/lwip/src/core/tcp_out.c \
391 Network/lwip/src/core/udp.c \
392 Network/lwip/src/netif/etharp.c \
393 Network/lwip/vbox/sys_arch.c \
394 Network/DevINIP.cpp
395 DevicesR3_DEFS += VBOX_WITH_INIP
396endif
397
398ifdef VBOX_WITH_AHCI
399 DevicesR3_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
400 DevicesR3_SOURCES += \
401 Storage/DevAHCI.cpp \
402 Storage/ATAController.cpp
403endif
404
405ifdef VBOX_WITH_BUSLOGIC
406 DevicesR3_DEFS += VBOX_WITH_BUSLOGIC
407 DevicesR3_SOURCES += \
408 Storage/DevBusLogic.cpp \
409 Storage/VBoxSCSI.cpp
410endif
411
412ifdef VBOX_WITH_LSILOGIC
413 DevicesR3_DEFS += VBOX_WITH_LSILOGIC
414 DevicesR3_SOURCES += \
415 Storage/DevLsiLogicSCSI.cpp
416endif
417
418ifdef VBOX_WITH_EFI
419 DevicesR3_DEFS += VBOX_WITH_EFI
420 ifdef VBOX_WITH_ALT_EFITHUNK
421 DevicesR3_DEFS += VBOX_WITH_ALT_EFITHUNK
422 endif
423 DevicesR3_SOURCES += EFI/DevEFI.cpp
424 EFI/DevEFI.cpp_INCS += EFI/tools/include
425 EFI/DevEFI.cpp_INCS.x86 += EFI/tools/include/Ia32
426 EFI/DevEFI.cpp_INCS.amd64 += EFI/tools/include/X64
427endif
428
429ifdef VBOX_WITH_DYNAMIC_DSDT
430 DevicesR3_DEFS += VBOX_WITH_DYNAMIC_DSDT
431endif
432
433ifdef VBOX_WITH_VUSB
434 DevicesR3_DEFS += VBOX_WITH_VUSB
435 DevicesR3_SOURCES += \
436 USB/DevOHCI.cpp
437endif
438ifdef VBOX_WITH_USB
439 DevicesR3_DEFS += VBOX_WITH_USB
440 ifdef VBOX_WITH_EHCI
441 DevicesR3_DEFS += VBOX_WITH_EHCI
442 DevicesR3_SOURCES += \
443 USB/DevEHCI.cpp
444 endif
445endif
446
447ifdef VBOX_WITH_DTRACE_R3
448 DevicesR3_TEMPLATE = VBOXR3OSX105
449 DevicesR3_DEFS += VBOX_WITH_DTRACE
450 DevicesR3_INCS += $(DevicesR3_0_OUTDIR)
451 DevicesR3_INTERMEDIATES += $(DevicesR3_0_OUTDIR)/VBoxDD-dtrace.h
452 $$(DevicesR3_0_OUTDIR)/VBoxDD-dtrace.h: $(PATH_CURRENT)/VBoxDD-dtrace.d | $$(dir $$@)
453 dtrace -C -h -o $@ -s $<
454endif
455
456ifdef VBOX_WITH_DYNAMIC_DSDT
457 DevicesR3_CLEAN += $(PATH_DevicesR3)/vboxdsl.hex
458 PC/ACPI/VBoxAcpi.cpp_DEPS = $(PATH_DevicesR3)/vboxdsl.hex
459
460 $$(PATH_DevicesR3)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
461 $(call MSG_TOOL,bin2c,DevicesR3,$<,$@)
462 $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
463
464 vboxdsl.hex:: $$(PATH_DevicesR3)/vboxdsl.hex
465
466else # !VBOX_WITH_DYNAMIC_DSDT
467 # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
468 DevicesR3_CLEAN += \
469 $(PATH_DevicesR3)/vboxaml.hex \
470 $(PATH_DevicesR3)/vboxaml.aml \
471 $(PATH_DevicesR3)/vboxssdt-standard.hex \
472 $(PATH_DevicesR3)/vboxssdt-standard.aml \
473 $(PATH_DevicesR3)/vboxssdt-standard.aml.tmp \
474 $(PATH_DevicesR3)/vboxssdt-cpuhotplug.hex \
475 $(PATH_DevicesR3)/vboxssdt-cpuhotplug.aml \
476 $(PATH_DevicesR3)/vboxssdt-cpuhotplug.aml.tmp \
477 $(PATH_DevicesR3)/vboxssdt-cpuhotplug.aml.pre
478 PC/ACPI/VBoxAcpi.cpp_DEPS = \
479 $(PATH_DevicesR3)/vboxaml.hex \
480 $(PATH_DevicesR3)/vboxssdt-standard.hex \
481 $(PATH_DevicesR3)/vboxssdt-cpuhotplug.hex
482
483 $$(PATH_DevicesR3)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
484 $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
485 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
486
487 vboxaml.hex:: $$(PATH_DevicesR3)/vboxaml.hex
488
489 $$(PATH_DevicesR3)/vboxssdt-standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
490 $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
491 $(QUIET)$(RM) -f $@ [email protected]
492 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
493 $(QUIET)$(MV) -f $@ [email protected]
494 $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
495 --output $@ [email protected]
496 $(QUIET)$(RM) -f [email protected]
497
498
499 vboxssdt-standard.hex:: $$(PATH_DevicesR3)/vboxssdt-standard.hex
500
501 $$(PATH_DevicesR3)/vboxssdt-cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
502 $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
503 $(QUIET)$(RM) -f $@ [email protected] [email protected]
504 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o [email protected] $<
505 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ [email protected]
506 $(QUIET)$(MV) -f $@ [email protected]
507 $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
508 --output $@ [email protected]
509 $(QUIET)$(RM) -f [email protected] [email protected]
510
511
512 vboxssdt-cpuhotplug.hex:: $$(PATH_DevicesR3)/vboxssdt-cpuhotplug.hex
513
514endif # !VBOX_WITH_DYNAMIC_DSDT
515PC/ACPI/VBoxAcpi.cpp_INCS = $(PATH_DevicesR3)
516
517# For finding PCIInternal.h from VBox/pci.h.
518Bus/DevPCI.cpp_INCS = Bus
519Bus/DevPciIch9.cpp_INCS = Bus
520Bus/MsiCommon.cpp_INCS = Bus
521
522# For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
523Graphics/DevVGA.cpp_INCS = $(PATH_VgaBiosBin)
524Graphics/DevVGA.cpp_DEPS = $(PATH_VgaBiosBin)/vbetables.h
525
526
527ifdef VBOX_WITH_RAW_MODE
528 #
529 # VBoxDDGC (sysmod)
530 #
531 VBoxDDGC_TEMPLATE = VBoxRc
532 ifeq ($(KBUILD_TARGET_ARCH),x86)
533 VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
534 endif
535 VBoxDDGC_DEFS = VBOX_WITH_HGCM
536 VBoxDDGC_INCS := \
537 $(PATH_SUB_CURRENT)
538 VBoxDDGC_SOURCES = \
539 Bus/DevPCI.cpp \
540 Bus/DevPciIch9.cpp \
541 Bus/MsiCommon.cpp \
542 Graphics/DevVGA.cpp \
543 Input/DevPS2.cpp \
544 PC/DevACPI.cpp \
545 PC/DevPit-i8254.cpp \
546 PC/DevPIC.cpp \
547 PC/DevRTC.cpp \
548 PC/DevHPET.cpp \
549 Storage/DevATA.cpp \
550 Network/DevPCNet.cpp \
551 Serial/DevSerial.cpp \
552 Parallel/DevParallel.cpp \
553 VMMDev/VMMDevTesting.cpp
554
555 ifdef VBOX_DYNAMIC_NET_ATTACH
556 VBoxDDGC_DEFS += VBOX_DYNAMIC_NET_ATTACH
557 endif
558
559 ifdef VBOX_WITH_E1000
560 VBoxDDGC_DEFS += VBOX_WITH_E1000
561 VBoxDDGC_SOURCES += \
562 Network/DevE1000.cpp \
563 Network/DevE1000Phy.cpp
564 endif
565
566 ifdef VBOX_WITH_VIRTIO
567 VBoxDDGC_DEFS += VBOX_WITH_VIRTIO
568 VBoxDDGC_SOURCES += \
569 VirtIO/Virtio.cpp \
570 Network/DevVirtioNet.cpp
571 endif
572
573 ifdef VBOX_WITH_HGSMI
574 VBoxDDGC_DEFS += VBOX_WITH_HGSMI
575 endif
576 ifdef VBOX_WITH_WDDM
577 VBoxDDGC_DEFS += VBOX_WITH_WDDM
578 endif
579 ifdef VBOXWDDM_WITH_VBVA
580 VBoxDDGC_DEFS += VBOXWDDM_WITH_VBVA
581 endif
582
583 ifdef VBOX_WITH_VUSB
584 VBoxDDGC_DEFS += VBOX_WITH_VUSB
585 VBoxDDGC_SOURCES += \
586 USB/DevOHCI.cpp
587 endif
588
589 ifdef VBOX_WITH_USB
590 VBoxDDGC_DEFS += VBOX_WITH_USB
591 ifdef VBOX_WITH_EHCI
592 VBoxDDGC_DEFS += VBOX_WITH_EHCI
593 VBoxDDGC_SOURCES += \
594 USB/DevEHCI.cpp
595 endif
596 endif
597
598 ifdef VBOX_WITH_HGSMI
599 VBoxDDGC_DEFS += VBOX_WITH_HGSMI
600 endif
601 ifdef VBOX_WITH_WDDM
602 VBoxDDGC_DEFS += VBOX_WITH_WDDM
603 endif
604 ifdef VBOXWDDM_WITH_VBVA
605 VBoxDDGC_DEFS += VBOXWDDM_WITH_VBVA
606 endif
607
608 ifdef VBOX_WITH_VIDEOHWACCEL
609 VBoxDDGC_DEFS += VBOX_WITH_VIDEOHWACCEL
610 endif
611
612 ifdef VBOX_WITH_AHCI
613 VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
614 VBoxDDGC_SOURCES += \
615 Storage/DevAHCI.cpp \
616 Storage/ATAController.cpp
617 endif
618
619 ifdef VBOX_WITH_BUSLOGIC
620 VBoxDDGC_DEFS += VBOX_WITH_BUSLOGIC
621 VBoxDDGC_SOURCES += \
622 Storage/DevBusLogic.cpp
623 endif
624
625 ifdef VBOX_WITH_LSILOGIC
626 VBoxDDGC_DEFS += VBOX_WITH_LSILOGIC
627 VBoxDDGC_SOURCES += \
628 Storage/DevLsiLogicSCSI.cpp
629 endif
630
631 if1of ($(VBOX_LDR_FMT32), pe lx)
632 VBoxDDGC_LIBS = \
633 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
634 $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
635 endif
636endif # VBOX_WITH_RAW_MODE
637
638
639#
640# VBoxDDR0 (sysmod)
641#
642VBoxDDR0_TEMPLATE = VBoxR0
643VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
644VBoxDDR0_DEFS = IN_RT_R0 VBOX_WITH_HGCM # - WTF is IN_RT_R0 doing here?
645VBoxDDR0_INCS := \
646 $(PATH_SUB_CURRENT)
647VBoxDDR0_SOURCES = \
648 Bus/DevPCI.cpp \
649 Bus/DevPciIch9.cpp \
650 Bus/MsiCommon.cpp \
651 Graphics/DevVGA.cpp \
652 Input/DevPS2.cpp \
653 PC/DevACPI.cpp \
654 PC/DevPit-i8254.cpp \
655 PC/DevPIC.cpp \
656 PC/DevRTC.cpp \
657 PC/DevHPET.cpp \
658 Storage/DevATA.cpp \
659 Network/DevPCNet.cpp \
660 Serial/DevSerial.cpp \
661 Parallel/DevParallel.cpp \
662 VMMDev/VMMDevTesting.cpp \
663 \
664 Network/DrvIntNet.cpp \
665 Network/DrvDedicatedNic.cpp
666
667ifdef VBOX_DYNAMIC_NET_ATTACH
668 VBoxDDR0_DEFS += VBOX_DYNAMIC_NET_ATTACH
669endif
670
671ifdef VBOX_WITH_E1000
672 VBoxDDR0_DEFS += VBOX_WITH_E1000
673 VBoxDDR0_SOURCES += \
674 Network/DevE1000.cpp \
675 Network/DevE1000Phy.cpp
676endif
677
678ifdef VBOX_WITH_VIRTIO
679 VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
680 VBoxDDR0_SOURCES += \
681 VirtIO/Virtio.cpp \
682 Network/DevVirtioNet.cpp
683endif
684
685ifdef VBOX_WITH_HGSMI
686 VBoxDDR0_DEFS += VBOX_WITH_HGSMI
687endif
688ifdef VBOX_WITH_WDDM
689 VBoxDDR0_DEFS += VBOX_WITH_WDDM
690endif
691ifdef VBOXWDDM_WITH_VBVA
692 VBoxDDR0_DEFS += VBOXWDDM_WITH_VBVA
693endif
694
695ifdef VBOX_WITH_VUSB
696 VBoxDDR0_DEFS += VBOX_WITH_VUSB
697 VBoxDDR0_SOURCES += \
698 USB/DevOHCI.cpp
699endif
700ifdef VBOX_WITH_USB
701VBoxDDR0_DEFS += VBOX_WITH_USB
702 ifdef VBOX_WITH_EHCI
703 VBoxDDR0_DEFS += VBOX_WITH_EHCI
704 VBoxDDR0_SOURCES += \
705 USB/DevEHCI.cpp
706 endif
707endif
708
709ifdef VBOX_WITH_AHCI
710VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
711VBoxDDR0_SOURCES += \
712 Storage/DevAHCI.cpp \
713 Storage/ATAController.cpp
714endif
715
716ifdef VBOX_WITH_BUSLOGIC
717VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
718VBoxDDR0_SOURCES += \
719 Storage/DevBusLogic.cpp
720endif
721
722ifdef VBOX_WITH_LSILOGIC
723VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
724VBoxDDR0_SOURCES += \
725 Storage/DevLsiLogicSCSI.cpp
726endif
727
728ifdef VBOX_WITH_HGSMI
729 VBoxDDR0_DEFS += VBOX_WITH_HGSMI
730endif
731ifdef VBOX_WITH_VIDEOHWACCEL
732 VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
733endif
734ifdef VBOX_WITH_WDDM
735 VBoxDDR0_DEFS += VBOX_WITH_WDDM
736endif
737ifdef VBOXWDDM_WITH_VBVA
738 VBoxDDR0_DEFS += VBOXWDDM_WITH_VBVA
739endif
740
741if1of ($(VBOX_LDR_FMT), pe lx)
742VBoxDDR0_LIBS = \
743 $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
744 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
745endif
746
747
748ifdef VBOX_WITH_RAW_MODE
749 #
750 # VBoxDD2GC (LGPL sysmod)
751 #
752 VBoxDD2GC_TEMPLATE = VBoxRc
753 VBoxDD2GC_DEFS =
754 VBoxDD2GC_INCS := \
755 $(PATH_SUB_CURRENT)
756 VBoxDD2GC_SOURCES = \
757 PC/DevAPIC.cpp \
758 PC/DevSMC.cpp
759 if1of ($(VBOX_LDR_FMT32), pe lx)
760 VBoxDD2GC_LIBS = \
761 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
762 $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
763 endif
764endif
765
766#
767# VBoxDD2R0 (LGPL sysmod)
768#
769VBoxDD2R0_TEMPLATE = VBoxR0
770VBoxDD2R0_DEFS = IN_RT_R0
771VBoxDD2R0_INCS := \
772 $(PATH_SUB_CURRENT)
773VBoxDD2R0_SOURCES = \
774 PC/DevAPIC.cpp \
775 PC/DevSMC.cpp
776
777if1of ($(VBOX_LDR_FMT), pe lx)
778VBoxDD2R0_LIBS = \
779 $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
780 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
781endif
782
783
784#
785# Drivers (library)
786#
787ifeq ($(KBUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
788Drivers_TEMPLATE = VBOXR3NP
789else
790Drivers_TEMPLATE = VBOXR3
791endif
792Drivers_SDKS.win = WINPSDK W2K3DDK
793Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
794Drivers_DEFS.win += _WIN32_WINNT=0x0510
795Drivers_DEFS = IN_IDE_R3
796ifdef VBOX_WITH_NETFLT
797Drivers_DEFS += VBOX_WITH_NETFLT
798endif
799ifdef VBOX_WITH_INIP
800Drivers_DEFS += VBOX_WITH_INIP
801endif
802ifdef VBOX_WITH_DRV_DISK_INTEGRITY
803Drivers_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
804endif
805
806Drivers_INCS := \
807 $(PATH_SUB_CURRENT) \
808 Network/slirp
809Drivers_SOURCES = \
810 Audio/audio.c \
811 Audio/audiosniffer.c \
812 Audio/mixeng.c \
813 Audio/noaudio.c \
814 Input/DrvKeyboardQueue.cpp \
815 Input/DrvMouseQueue.cpp \
816 Network/DrvIntNet.cpp \
817 Network/DrvDedicatedNic.cpp \
818 PC/DrvACPI.cpp \
819 PC/DrvAcpiCpu.cpp \
820 Serial/DrvChar.cpp \
821 Serial/DrvNamedPipe.cpp \
822 Serial/DrvRawFile.cpp \
823 Storage/DrvBlock.cpp \
824 Storage/DrvHostBase.cpp \
825 Storage/DrvHostDVD.cpp \
826 Storage/DrvHostFloppy.cpp \
827 Storage/DrvMediaISO.cpp \
828 Storage/DrvRawImage.cpp \
829 Storage/Debug.cpp \
830 Storage/DrvVD.cpp \
831 Network/DrvNetSniffer.cpp \
832 Network/Pcap.cpp
833
834VBOX_SLIRP_SOURCES = \
835 Network/DrvNAT.cpp \
836 Network/slirp/bootp.c \
837 Network/slirp/debug.c \
838 Network/slirp/ip_icmp.c \
839 Network/slirp/ip_input.c \
840 Network/slirp/ip_output.c \
841 Network/slirp/misc.c \
842 Network/slirp/sbuf.c \
843 Network/slirp/slirp.c \
844 Network/slirp/socket.c \
845 Network/slirp/tcp_input.c \
846 Network/slirp/tcp_output.c \
847 Network/slirp/tcp_subr.c \
848 Network/slirp/tcp_timer.c \
849 Network/slirp/udp.c \
850 Network/slirp/dnsproxy/hash.c \
851 Network/slirp/tftp.c \
852 Network/slirp/dnsproxy/dnsproxy.c
853
854ifdef VBOX_WITH_SLIRP_BSD_SBUF
855VBOX_SLIRP_SOURCES += Network/slirp/bsd/kern/subr_sbuf.c
856endif
857
858VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
859VBOX_SLIRP_BSD_SOURCES += \
860 Network/slirp/bsd/kern/kern_mbuf.c \
861 Network/slirp/bsd/kern/uipc_mbuf.c \
862 Network/slirp/bsd/kern/uipc_mbuf2.c \
863 Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
864
865VBOX_SLIRP_ALIAS_SOURCES = \
866 Network/slirp/libalias/alias.c \
867 Network/slirp/libalias/alias_db.c \
868 Network/slirp/libalias/alias_mod.c \
869 Network/slirp/libalias/alias_proxy.c \
870 Network/slirp/libalias/alias_ftp.c \
871 Network/slirp/libalias/alias_dns.c \
872 Network/slirp/libalias/alias_nbt.c \
873 Network/slirp/libalias/alias_util.c
874
875# some day will be deleted
876
877Drivers_SOURCES += $(VBOX_SLIRP_SOURCES)
878define def_vbox_slirp_cflags
879 $(file)_DEFS += \
880 $(if $(VBOX_WITH_SLIRP_BSD_SBUF),VBOX_WITH_SLIRP_BSD_SBUF,) \
881 $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
882 $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
883 $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
884 $(file)_INCS += $(1)/slirp/bsd/sys
885 $(file)_INCS += $(1)/slirp/bsd/sys/sys
886 $(file)_INCS += $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include
887 $(file)_INCS += $(1)/slirp/bsd/netinet
888 $(file)_INCS += $(1)/slirp
889 $(file)_INCS += $(1)/slirp/libalias
890 ifeq ($(KBUILD_TARGET),win)
891 $(file)_CFLAGS = -wd4018
892 else
893 $(file)_CFLAGS += -Wno-sign-compare
894 $(file)_CFLAGS += -Wno-format
895 $(file)_CFLAGS += -Wno-bad-function-cast
896 endif
897endef
898
899$(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
900
901Drivers_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
902define def_vbox_slirp_alias_cflags
903 $(file)_DEFS += VBOX_SLIRP_ALIAS \
904 $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
905 $(file)_INCS += $(1)/slirp/libalias
906 $(file)_INCS += $(1)/slirp
907 $(file)_INCS += $(1)/slirp/dnsproxy
908 ifneq ($(KBUILD_TARGET),win)
909 $(file)_CFLAGS += -Wno-shadow
910 endif
911endef
912$(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
913$(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
914
915VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
916Drivers_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
917define def_vbox_slirp_bsd_cflags
918 $(file)_DEFS += VBOX_SLIRP_BSD
919 $(file)_INCS += $(1)/slirp/dnsproxy
920endef
921$(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
922$(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
923
924ifdef VBOX_WITH_DRV_DISK_INTEGRITY
925Drivers_SOURCES += \
926 Storage/DrvDiskIntegrity.cpp
927endif
928
929ifdef VBOX_WITH_VDE
930 Drivers_SOURCES += \
931 Network/DrvVDE.cpp \
932 Network/VDEPlug.cpp
933 Drivers_DEFS += \
934 VBOX_WITH_VDE
935endif
936
937# -- OS specific --
938
939ifeq ($(KBUILD_TARGET),darwin)
940Drivers_SOURCES := $(filter-out \
941 Storage/DrvHostRaw% \
942 Storage/DrvHostFloppy% \
943 , $(Drivers_SOURCES)) \
944 Audio/coreaudio.c
945Drivers_SOURCES.darwin = \
946 Serial/DrvHostSerial.cpp
947endif # darwin
948
949ifeq ($(KBUILD_TARGET),freebsd)
950Drivers_SOURCES := $(filter-out \
951 Storage/DrvHostFloppy% \
952 , $(Drivers_SOURCES)) \
953 Audio/ossaudio.c \
954 Serial/DrvHostSerial.cpp
955Drivers_SOURCES.freebsd = \
956 Network/DrvTAP.cpp
957endif # freebsd
958
959
960ifeq ($(KBUILD_TARGET),l4)
961Drivers_SOURCES = \
962 Input/DrvMouseQueue.cpp \
963 Input/DrvKeyboardQueue.cpp \
964 Storage/DrvBlock.cpp \
965 Storage/DrvMediaISO.cpp \
966 Storage/DrvRawImage.cpp \
967 Storage/DrvHostBase.cpp \
968 Storage/DrvHostDVD.cpp \
969 Storage/DrvVD.cpp \
970 PC/DrvACPI.cpp \
971 Network/DrvIntNet.cpp \
972 Network/DHCPServerRunner.cpp \
973 Network/DrvNetSniffer.cpp \
974 Network/Pcap.cpp \
975 Audio/audio.c \
976 Audio/mixeng.c \
977 Audio/noaudio.c \
978 Audio/audiosniffer.c
979
980Drivers_SOURCES.l4 = \
981 Audio/ossaudio.c
982endif # l4
983
984Drivers_SOURCES.linux = \
985 Network/DrvTAP.cpp \
986 Audio/ossaudio.c \
987 Parallel/DrvHostParallel.cpp \
988 Serial/DrvHostSerial.cpp
989
990ifeq ($(KBUILD_TARGET),os2)
991Drivers_SOURCES := $(filter-out \
992 Storage/DrvHost% \
993 , $(Drivers_SOURCES))
994endif
995
996ifeq ($(KBUILD_TARGET),solaris)
997Drivers_SOURCES := $(filter-out \
998 Storage/DrvHost% \
999 , $(Drivers_SOURCES))
1000Drivers_SOURCES.solaris = \
1001 Audio/solaudio.c \
1002 Storage/DrvHostBase.cpp \
1003 Storage/DrvHostDVD.cpp \
1004 Serial/DrvHostSerial.cpp
1005 ifdef VBOX_WITH_SOLARIS_OSS
1006 Drivers_SOURCES += Audio/ossaudio.c
1007 Drivers_DEFS += VBOX_WITH_SOLARIS_OSS
1008 endif
1009 ifdef VBOX_WITH_CROSSBOW
1010 Drivers_SOURCES += Network/solaris/vbox-libdlpi.cpp
1011 Drivers_DEFS += VBOX_WITH_CROSSBOW
1012 endif
1013 ifdef VBOX_WITH_SUID_WRAPPER
1014 Drivers_DEFS += VBOX_WITH_SUID_WRAPPER
1015 endif
1016endif
1017
1018Drivers_SOURCES.win = \
1019 Audio/dsoundaudio.c \
1020 Serial/DrvHostSerial.cpp
1021
1022if defined(VBOX_WITH_NETFLT)
1023 if defined(VBOX_NETFLT_ONDEMAND_BIND)
1024 Drivers_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
1025 endif
1026endif
1027
1028# -- features --
1029
1030ifdef VBOX_WITH_ISCSI
1031 VBoxDDU_SOURCES += \
1032 Storage/ISCSIHDDCore.cpp
1033 VBoxDDU_DEFS += VBOX_WITH_ISCSI
1034 Storage/DrvVD.cpp_INCS = \
1035 Network/lwip/src/include \
1036 Network/lwip/src/include/ipv4 \
1037 Network/lwip/vbox/include
1038endif # VBOX_WITH_ISCSI
1039
1040ifdef VBOX_WITH_ALSA
1041 Drivers_DEFS.linux += VBOX_WITH_ALSA
1042 Drivers_SOURCES.linux+= \
1043 Audio/alsaaudio.c \
1044 Audio/alsa_stubs.c
1045endif
1046
1047ifdef VBOX_WITH_PULSE
1048 Drivers_DEFS.linux += VBOX_WITH_PULSE
1049 Drivers_SOURCES.linux+= \
1050 Audio/pulseaudio.c \
1051 Audio/pulse_stubs.c
1052 Drivers_DEFS.freebsd += VBOX_WITH_PULSE
1053 Drivers_SOURCES.freebsd+= \
1054 Audio/pulseaudio.c \
1055 Audio/pulse_stubs.c
1056endif
1057
1058ifdef VBOX_WITH_VUSB
1059 Drivers_DEFS += VBOX_WITH_VUSB
1060 Drivers_SOURCES += \
1061 USB/DrvVUSBRootHub.cpp \
1062 USB/VUSBDevice.cpp \
1063 USB/VUSBReadAhead.cpp \
1064 USB/VUSBUrb.cpp
1065
1066endif # VBOX_WITH_VUSB
1067
1068ifdef VBOX_WITH_USB
1069 Drivers_DEFS += VBOX_WITH_USB
1070
1071 ifdef VBOX_WITH_VRDP
1072 Drivers_DEFS += VBOX_WITH_VRDP
1073 Drivers_SOURCES += \
1074 USB/vrdp/USBProxyDevice-vrdp.cpp
1075 endif
1076
1077 Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
1078 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
1079 Drivers_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
1080 endif
1081 Drivers_SOURCES.darwin += \
1082 USB/USBProxyDevice.cpp \
1083 USB/darwin/USBProxyDevice-darwin.cpp
1084
1085 Drivers_DEFS.linux += \
1086 VUSB_HAVE_USBPROXY_DEVICE \
1087 $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
1088 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
1089 Drivers_SOURCES.linux += \
1090 USB/USBProxyDevice.cpp \
1091 USB/linux/USBProxyDevice-linux.cpp
1092
1093 Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
1094 Drivers_SOURCES.l4 += \
1095 USB/USBProxyDevice.cpp \
1096 USB/linux/USBProxyDevice-linux.cpp
1097
1098 Drivers_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
1099 Drivers_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
1100 Drivers_SOURCES.os2 += \
1101 USB/USBProxyDevice.cpp \
1102 USB/os2/USBProxyDevice-os2.cpp
1103
1104 Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
1105 Drivers_SOURCES.win += \
1106 USB/USBProxyDevice.cpp \
1107 USB/win/USBProxyDevice-win.cpp
1108
1109 Drivers_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
1110 Drivers_SOURCES.solaris += \
1111 USB/USBProxyDevice.cpp \
1112 USB/solaris/USBProxyDevice-solaris.cpp
1113
1114 Drivers_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
1115 Drivers_SOURCES.freebsd += \
1116 USB/USBProxyDevice.cpp \
1117 USB/freebsd/USBProxyDevice-freebsd.cpp
1118
1119 ifdef VBOX_WITH_SCSI
1120 Drivers_SOURCES += \
1121 Storage/UsbMsd.cpp
1122 endif
1123
1124endif # VBOX_WITH_USB
1125
1126ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
1127 Drivers_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
1128endif #VBOX_WITH_PDM_ASYNC_COMPLETION
1129
1130ifdef VBOX_WITH_SCSI
1131 Drivers_DEFS += VBOX_WITH_SCSI
1132 Drivers_SOURCES += \
1133 Storage/DrvSCSI.cpp
1134 Drivers_SOURCES.linux += \
1135 Storage/DrvSCSIHost.cpp
1136endif # VBOX_WITH_SCSI
1137
1138#
1139# Ring-0 Services (library, linked into VMMR0.r0)
1140#
1141ServicesR0_TEMPLATE = VBoxR0
1142ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
1143ServicesR0_SOURCES = \
1144 Network/SrvIntNetR0.cpp
1145
1146
1147#
1148# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
1149#
1150ifdef VBOX_WITH_TESTCASES
1151 PROGRAMS += tstIntNetR0
1152 tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
1153 tstIntNetR0_DEFS = IN_INTNET_R0
1154 tstIntNetR0_SOURCES = \
1155 Network/testcase/tstIntNetR0.cpp
1156endif
1157
1158#
1159# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
1160#
1161ifdef VBOX_WITH_TESTCASES
1162 PROGRAMS += tstIntNet-1
1163 tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
1164 tstIntNet-1_SOURCES = \
1165 Network/testcase/tstIntNet-1.cpp \
1166 Network/Pcap.cpp
1167endif
1168
1169
1170#
1171# EEPROM device unit test requires cppunit
1172#
1173ifdef VBOX_WITH_CPPUNIT_TESTCASES
1174ifdef VBOX_WITH_E1000
1175 PROGRAMS += tstDevEEPROM
1176 tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
1177 tstDevEEPROM_SOURCES = \
1178 Network/testcase/tstDevEEPROM.cpp
1179 tstDevEEPROM_LIBS = \
1180 $(TARGET_DevicesR3)
1181 PROGRAMS += tstDevPhy
1182 tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
1183 tstDevPhy_SOURCES = \
1184 Network/testcase/tstDevPhy.cpp \
1185 Network/DevE1000Phy.cpp
1186 tstDevPhy_DEFS = PHY_UNIT_TEST
1187endif
1188endif
1189
1190include $(KBUILD_PATH)/subfooter.kmk
1191
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