VirtualBox

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

Last change on this file since 33332 was 33236, checked in by vboxsync, 14 years ago

PCI: MSI-X work

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