VirtualBox

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

Last change on this file since 30714 was 30309, checked in by vboxsync, 15 years ago

Storage/iSCSI: switch to sending in a single call, avoiding separate sending of iSCSI PDU header separately on some IP stacks. Adjustments to VBoxHDD, DrvVD and MediumImpl to pass the required VD interface methods.

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