VirtualBox

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

Last change on this file since 32048 was 32037, checked in by vboxsync, 14 years ago

PCI work: make ICH9 PCI an additional device, not alternative implementation

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 30.4 KB
Line 
1# $Id: Makefile.kmk 32037 2010-08-27 10:23:14Z 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 $(if $(VBOX_WITH_NEWPCI),Bus/DevPciIch9.cpp,) \
301 Graphics/DevVGA.cpp \
302 Storage/DevATA.cpp \
303 PC/DevPit-i8254.cpp \
304 PC/DevPIC.cpp \
305 PC/DevACPI.cpp \
306 PC/ACPI/VBoxAcpi.cpp \
307 PC/DevRTC.cpp \
308 PC/DevPcBios.cpp \
309 PC/DevFwCommon.cpp \
310 PC/DevPcArch.c \
311 VMMDev/VMMDev.cpp \
312 VMMDev/VMMDevHGCM.cpp \
313 VMMDev/VMMDevTesting.cpp \
314 Network/DevPCNet.cpp \
315 Audio/DevIchAc97.cpp \
316 Audio/DevSB16.cpp \
317 Audio/DevIchIntelHDA.cpp \
318 Audio/DevCodec.cpp \
319 PC/DevDMA.cpp \
320 Storage/fdc.c \
321 Serial/DevSerial.cpp \
322 Parallel/DevParallel.cpp
323
324ifdef VBOX_DYNAMIC_NET_ATTACH
325 DevicesR3_DEFS += VBOX_DYNAMIC_NET_ATTACH
326endif
327ifdef VBOX_BIOS_DMI_FALLBACK
328 DevicesR3_DEFS += VBOX_BIOS_DMI_FALLBACK
329endif
330
331ifdef VBOX_WITH_E1000
332 DevicesR3_DEFS += VBOX_WITH_E1000
333 DevicesR3_SOURCES += \
334 Network/DevE1000.cpp \
335 Network/DevE1000Phy.cpp \
336 Network/DevEEPROM.cpp
337endif
338
339ifdef VBOX_WITH_VIRTIO
340 DevicesR3_DEFS += VBOX_WITH_VIRTIO
341 DevicesR3_SOURCES += \
342 VirtIO/Virtio.cpp \
343 Network/DevVirtioNet.cpp
344endif
345
346ifdef VBOX_WITH_HGSMI
347 DevicesR3_DEFS += VBOX_WITH_HGSMI
348 DevicesR3_SOURCES += \
349 Graphics/DevVGA_VBVA.cpp \
350 Graphics/HGSMI/HGSMIHost.cpp \
351 Graphics/HGSMI/HGSMIHostHlp.cpp
352
353endif
354ifdef VBOXVDMA
355 DevicesR3_DEFS += VBOXVDMA
356 DevicesR3_SOURCES += \
357 Graphics/HGSMI/SHGSMIHost.cpp \
358 Graphics/DevVGA_VDMA.cpp
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_HPET
429 DevicesR3_DEFS += VBOX_WITH_HPET
430 DevicesR3_SOURCES += PC/DevHPET.cpp
431endif
432
433ifdef VBOX_WITH_EFI
434 DevicesR3_DEFS += VBOX_WITH_EFI
435 ifdef VBOX_WITH_ALT_EFITHUNK
436 DevicesR3_DEFS += VBOX_WITH_ALT_EFITHUNK
437 endif
438 DevicesR3_SOURCES += EFI/DevEFI.cpp
439 EFI/DevEFI.cpp_INCS += EFI/tools/include
440 EFI/DevEFI.cpp_INCS.x86 += EFI/tools/include/Ia32
441 EFI/DevEFI.cpp_INCS.amd64 += EFI/tools/include/X64
442endif
443
444ifdef VBOX_WITH_DYNAMIC_DSDT
445 DevicesR3_DEFS += VBOX_WITH_DYNAMIC_DSDT
446endif
447
448ifdef VBOX_WITH_VUSB
449 DevicesR3_DEFS += VBOX_WITH_VUSB
450 DevicesR3_SOURCES += \
451 USB/DevOHCI.cpp
452endif
453ifdef VBOX_WITH_USB
454 DevicesR3_DEFS += VBOX_WITH_USB
455 ifdef VBOX_WITH_EHCI
456 DevicesR3_DEFS += VBOX_WITH_EHCI
457 DevicesR3_SOURCES += \
458 USB/DevEHCI.cpp
459 endif
460endif
461
462ifdef VBOX_WITH_DTRACE_R3
463 DevicesR3_TEMPLATE = VBOXR3OSX105
464 DevicesR3_DEFS += VBOX_WITH_DTRACE
465 DevicesR3_INCS += $(DevicesR3_0_OUTDIR)
466 DevicesR3_INTERMEDIATES += $(DevicesR3_0_OUTDIR)/VBoxDD-dtrace.h
467 $$(DevicesR3_0_OUTDIR)/VBoxDD-dtrace.h: $(PATH_CURRENT)/VBoxDD-dtrace.d | $$(dir $$@)
468 dtrace -C -h -o $@ -s $<
469endif
470
471ifdef VBOX_WITH_DYNAMIC_DSDT
472 DevicesR3_CLEAN += $(PATH_DevicesR3)/vboxdsl.hex
473 PC/ACPI/VBoxAcpi.cpp_DEPS = $(PATH_DevicesR3)/vboxdsl.hex
474
475 $$(PATH_DevicesR3)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
476 $(call MSG_TOOL,bin2c,DevicesR3,$<,$@)
477 $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
478
479 vboxdsl.hex:: $$(PATH_DevicesR3)/vboxdsl.hex
480
481else # !VBOX_WITH_DYNAMIC_DSDT
482 # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
483 DevicesR3_CLEAN += \
484 $(PATH_DevicesR3)/vboxaml.hex \
485 $(PATH_DevicesR3)/vboxaml.aml \
486 $(PATH_DevicesR3)/vboxssdt-standard.hex \
487 $(PATH_DevicesR3)/vboxssdt-standard.aml \
488 $(PATH_DevicesR3)/vboxssdt-standard.aml.tmp \
489 $(PATH_DevicesR3)/vboxssdt-cpuhotplug.hex \
490 $(PATH_DevicesR3)/vboxssdt-cpuhotplug.aml \
491 $(PATH_DevicesR3)/vboxssdt-cpuhotplug.aml.tmp \
492 $(PATH_DevicesR3)/vboxssdt-cpuhotplug.aml.pre
493 PC/ACPI/VBoxAcpi.cpp_DEPS = \
494 $(PATH_DevicesR3)/vboxaml.hex \
495 $(PATH_DevicesR3)/vboxssdt-standard.hex \
496 $(PATH_DevicesR3)/vboxssdt-cpuhotplug.hex
497
498 $$(PATH_DevicesR3)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
499 $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
500 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
501
502 vboxaml.hex:: $$(PATH_DevicesR3)/vboxaml.hex
503
504 $$(PATH_DevicesR3)/vboxssdt-standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
505 $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
506 $(QUIET)$(RM) -f $@ [email protected]
507 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
508 $(QUIET)$(MV) -f $@ [email protected]
509 $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
510 --output $@ [email protected]
511 $(QUIET)$(RM) -f [email protected]
512
513
514 vboxssdt-standard.hex:: $$(PATH_DevicesR3)/vboxssdt-standard.hex
515
516 $$(PATH_DevicesR3)/vboxssdt-cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
517 $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
518 $(QUIET)$(RM) -f $@ [email protected] [email protected]
519 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o [email protected] $<
520 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ [email protected]
521 $(QUIET)$(MV) -f $@ [email protected]
522 $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
523 --output $@ [email protected]
524 $(QUIET)$(RM) -f [email protected] [email protected]
525
526
527 vboxssdt-cpuhotplug.hex:: $$(PATH_DevicesR3)/vboxssdt-cpuhotplug.hex
528
529endif # !VBOX_WITH_DYNAMIC_DSDT
530PC/ACPI/VBoxAcpi.cpp_INCS = $(PATH_DevicesR3)
531
532# For finding PCIInternal.h from VBox/pci.h.
533Bus/DevPCI.cpp_INCS = Bus
534Bus/DevPciIch9.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 $(if $(VBOX_WITH_NEWPCI),Bus/DevPciIch9.cpp,) \
555 Graphics/DevVGA.cpp \
556 Input/DevPS2.cpp \
557 PC/DevACPI.cpp \
558 PC/DevPit-i8254.cpp \
559 PC/DevPIC.cpp \
560 PC/DevRTC.cpp \
561 Storage/DevATA.cpp \
562 Network/DevPCNet.cpp \
563 Serial/DevSerial.cpp \
564 Parallel/DevParallel.cpp \
565 VMMDev/VMMDevTesting.cpp
566
567 ifdef VBOX_DYNAMIC_NET_ATTACH
568 VBoxDDGC_DEFS += VBOX_DYNAMIC_NET_ATTACH
569 endif
570
571 ifdef VBOX_WITH_E1000
572 VBoxDDGC_DEFS += VBOX_WITH_E1000
573 VBoxDDGC_SOURCES += \
574 Network/DevE1000.cpp \
575 Network/DevE1000Phy.cpp
576 endif
577
578 ifdef VBOX_WITH_VIRTIO
579 VBoxDDGC_DEFS += VBOX_WITH_VIRTIO
580 VBoxDDGC_SOURCES += \
581 VirtIO/Virtio.cpp \
582 Network/DevVirtioNet.cpp
583 endif
584
585 ifdef VBOX_WITH_HGSMI
586 VBoxDDGC_DEFS += VBOX_WITH_HGSMI
587 endif
588 ifdef VBOXVDMA
589 VBoxDDGC_DEFS += VBOXVDMA
590 endif
591 ifdef VBOXWDDM_WITH_VBVA
592 VBoxDDGC_DEFS += VBOXWDDM_WITH_VBVA
593 endif
594
595 ifdef VBOX_WITH_VUSB
596 VBoxDDGC_DEFS += VBOX_WITH_VUSB
597 VBoxDDGC_SOURCES += \
598 USB/DevOHCI.cpp
599 endif
600
601 ifdef VBOX_WITH_USB
602 VBoxDDGC_DEFS += VBOX_WITH_USB
603 ifdef VBOX_WITH_EHCI
604 VBoxDDGC_DEFS += VBOX_WITH_EHCI
605 VBoxDDGC_SOURCES += \
606 USB/DevEHCI.cpp
607 endif
608 endif
609
610 ifdef VBOX_WITH_HGSMI
611 VBoxDDGC_DEFS += VBOX_WITH_HGSMI
612 endif
613 ifdef VBOXVDMA
614 VBoxDDGC_DEFS += VBOXVDMA
615 endif
616 ifdef VBOXWDDM_WITH_VBVA
617 VBoxDDGC_DEFS += VBOXWDDM_WITH_VBVA
618 endif
619
620 ifdef VBOX_WITH_VIDEOHWACCEL
621 VBoxDDGC_DEFS += VBOX_WITH_VIDEOHWACCEL
622 endif
623
624 ifdef VBOX_WITH_AHCI
625 VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
626 VBoxDDGC_SOURCES += \
627 Storage/DevAHCI.cpp \
628 Storage/ATAController.cpp
629 endif
630
631 ifdef VBOX_WITH_BUSLOGIC
632 VBoxDDGC_DEFS += VBOX_WITH_BUSLOGIC
633 VBoxDDGC_SOURCES += \
634 Storage/DevBusLogic.cpp
635 endif
636
637 ifdef VBOX_WITH_LSILOGIC
638 VBoxDDGC_DEFS += VBOX_WITH_LSILOGIC
639 VBoxDDGC_SOURCES += \
640 Storage/DevLsiLogicSCSI.cpp
641 endif
642
643 ifdef VBOX_WITH_HPET
644 VBoxDDGC_DEFS += VBOX_WITH_HPET
645 VBoxDDGC_SOURCES += PC/DevHPET.cpp
646 endif
647
648 if1of ($(VBOX_LDR_FMT32), pe lx)
649 VBoxDDGC_LIBS = \
650 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
651 $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
652 endif
653endif # VBOX_WITH_RAW_MODE
654
655
656#
657# VBoxDDR0 (sysmod)
658#
659VBoxDDR0_TEMPLATE = VBoxR0
660VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
661VBoxDDR0_DEFS = IN_RT_R0 VBOX_WITH_HGCM # - WTF is IN_RT_R0 doing here?
662VBoxDDR0_INCS := \
663 $(PATH_SUB_CURRENT)
664VBoxDDR0_SOURCES = \
665 Bus/DevPCI.cpp \
666 $(if $(VBOX_WITH_NEWPCI),Bus/DevPciIch9.cpp,) \
667 Graphics/DevVGA.cpp \
668 Input/DevPS2.cpp \
669 PC/DevACPI.cpp \
670 PC/DevPit-i8254.cpp \
671 PC/DevPIC.cpp \
672 PC/DevRTC.cpp \
673 Storage/DevATA.cpp \
674 Network/DevPCNet.cpp \
675 Serial/DevSerial.cpp \
676 Parallel/DevParallel.cpp \
677 VMMDev/VMMDevTesting.cpp \
678 \
679 Network/DrvIntNet.cpp \
680 Network/DrvDedicatedNic.cpp
681
682ifdef VBOX_DYNAMIC_NET_ATTACH
683 VBoxDDR0_DEFS += VBOX_DYNAMIC_NET_ATTACH
684endif
685
686ifdef VBOX_WITH_E1000
687 VBoxDDR0_DEFS += VBOX_WITH_E1000
688 VBoxDDR0_SOURCES += \
689 Network/DevE1000.cpp \
690 Network/DevE1000Phy.cpp
691endif
692
693ifdef VBOX_WITH_VIRTIO
694 VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
695 VBoxDDR0_SOURCES += \
696 VirtIO/Virtio.cpp \
697 Network/DevVirtioNet.cpp
698endif
699
700ifdef VBOX_WITH_HGSMI
701 VBoxDDR0_DEFS += VBOX_WITH_HGSMI
702endif
703ifdef VBOXVDMA
704 VBoxDDR0_DEFS += VBOXVDMA
705endif
706ifdef VBOXWDDM_WITH_VBVA
707 VBoxDDR0_DEFS += VBOXWDDM_WITH_VBVA
708endif
709
710ifdef VBOX_WITH_VUSB
711 VBoxDDR0_DEFS += VBOX_WITH_VUSB
712 VBoxDDR0_SOURCES += \
713 USB/DevOHCI.cpp
714endif
715ifdef VBOX_WITH_USB
716VBoxDDR0_DEFS += VBOX_WITH_USB
717 ifdef VBOX_WITH_EHCI
718 VBoxDDR0_DEFS += VBOX_WITH_EHCI
719 VBoxDDR0_SOURCES += \
720 USB/DevEHCI.cpp
721 endif
722endif
723
724ifdef VBOX_WITH_AHCI
725VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
726VBoxDDR0_SOURCES += \
727 Storage/DevAHCI.cpp \
728 Storage/ATAController.cpp
729endif
730
731ifdef VBOX_WITH_BUSLOGIC
732VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
733VBoxDDR0_SOURCES += \
734 Storage/DevBusLogic.cpp
735endif
736
737ifdef VBOX_WITH_LSILOGIC
738VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
739VBoxDDR0_SOURCES += \
740 Storage/DevLsiLogicSCSI.cpp
741endif
742
743ifdef VBOX_WITH_HGSMI
744 VBoxDDR0_DEFS += VBOX_WITH_HGSMI
745endif
746ifdef VBOX_WITH_VIDEOHWACCEL
747 VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
748endif
749ifdef VBOXVDMA
750 VBoxDDR0_DEFS += VBOXVDMA
751endif
752ifdef VBOXWDDM_WITH_VBVA
753 VBoxDDR0_DEFS += VBOXWDDM_WITH_VBVA
754endif
755
756
757ifdef VBOX_WITH_HPET
758 VBoxDDR0_DEFS += VBOX_WITH_HPET
759 VBoxDDR0_SOURCES += PC/DevHPET.cpp
760endif
761
762if1of ($(VBOX_LDR_FMT), pe lx)
763VBoxDDR0_LIBS = \
764 $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
765 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
766endif
767
768
769ifdef VBOX_WITH_RAW_MODE
770 #
771 # VBoxDD2GC (LGPL sysmod)
772 #
773 VBoxDD2GC_TEMPLATE = VBoxRc
774 VBoxDD2GC_DEFS =
775 VBoxDD2GC_INCS := \
776 $(PATH_SUB_CURRENT)
777 VBoxDD2GC_SOURCES = \
778 PC/DevAPIC.cpp
779 if1of ($(VBOX_LDR_FMT32), pe lx)
780 VBoxDD2GC_LIBS = \
781 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
782 $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
783 endif
784endif
785
786#
787# VBoxDD2R0 (LGPL sysmod)
788#
789VBoxDD2R0_TEMPLATE = VBoxR0
790VBoxDD2R0_DEFS = IN_RT_R0
791VBoxDD2R0_INCS := \
792 $(PATH_SUB_CURRENT)
793VBoxDD2R0_SOURCES = \
794 PC/DevAPIC.cpp
795
796ifdef VBOX_WITH_SMC
797 VBoxDD2R0_DEFS += VBOX_WITH_SMC
798 VBoxDD2R0_SOURCES += PC/DevSMC.cpp
799endif
800
801if1of ($(VBOX_LDR_FMT), pe lx)
802VBoxDD2R0_LIBS = \
803 $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
804 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
805endif
806
807
808#
809# Drivers (library)
810#
811ifeq ($(KBUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
812Drivers_TEMPLATE = VBOXR3NP
813else
814Drivers_TEMPLATE = VBOXR3
815endif
816Drivers_SDKS.win = WINPSDK W2K3DDK
817Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
818Drivers_DEFS.win += _WIN32_WINNT=0x0510
819Drivers_DEFS = IN_IDE_R3
820ifdef VBOX_WITH_NETFLT
821Drivers_DEFS += VBOX_WITH_NETFLT
822endif
823ifdef VBOX_WITH_INIP
824Drivers_DEFS += VBOX_WITH_INIP
825endif
826ifdef VBOX_WITH_DRV_DISK_INTEGRITY
827Drivers_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
828endif
829
830Drivers_INCS := \
831 $(PATH_SUB_CURRENT) \
832 Network/slirp
833Drivers_SOURCES = \
834 Audio/audio.c \
835 Audio/audiosniffer.c \
836 Audio/mixeng.c \
837 Audio/noaudio.c \
838 Input/DrvKeyboardQueue.cpp \
839 Input/DrvMouseQueue.cpp \
840 Network/DrvIntNet.cpp \
841 Network/DrvDedicatedNic.cpp \
842 PC/DrvACPI.cpp \
843 PC/DrvAcpiCpu.cpp \
844 Serial/DrvChar.cpp \
845 Serial/DrvNamedPipe.cpp \
846 Serial/DrvRawFile.cpp \
847 Storage/DrvBlock.cpp \
848 Storage/DrvHostBase.cpp \
849 Storage/DrvHostDVD.cpp \
850 Storage/DrvHostFloppy.cpp \
851 Storage/DrvMediaISO.cpp \
852 Storage/DrvRawImage.cpp \
853 Storage/Debug.cpp \
854 Storage/DrvVD.cpp \
855 Network/DrvNetSniffer.cpp \
856 Network/Pcap.cpp
857
858VBOX_SLIRP_SOURCES = \
859 Network/DrvNAT.cpp \
860 Network/slirp/bootp.c \
861 Network/slirp/debug.c \
862 Network/slirp/ip_icmp.c \
863 Network/slirp/ip_input.c \
864 Network/slirp/ip_output.c \
865 Network/slirp/misc.c \
866 Network/slirp/sbuf.c \
867 Network/slirp/slirp.c \
868 Network/slirp/socket.c \
869 Network/slirp/tcp_input.c \
870 Network/slirp/tcp_output.c \
871 Network/slirp/tcp_subr.c \
872 Network/slirp/tcp_timer.c \
873 Network/slirp/udp.c \
874 Network/slirp/dnsproxy/hash.c \
875 Network/slirp/tftp.c \
876 Network/slirp/dnsproxy/dnsproxy.c
877
878ifdef VBOX_WITH_SLIRP_BSD_SBUF
879VBOX_SLIRP_SOURCES += Network/slirp/bsd/kern/subr_sbuf.c
880endif
881
882VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
883VBOX_SLIRP_BSD_SOURCES += \
884 Network/slirp/bsd/kern/kern_mbuf.c \
885 Network/slirp/bsd/kern/uipc_mbuf.c \
886 Network/slirp/bsd/kern/uipc_mbuf2.c \
887 Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
888
889VBOX_SLIRP_ALIAS_SOURCES = \
890 Network/slirp/libalias/alias.c \
891 Network/slirp/libalias/alias_db.c \
892 Network/slirp/libalias/alias_mod.c \
893 Network/slirp/libalias/alias_proxy.c \
894 Network/slirp/libalias/alias_ftp.c \
895 Network/slirp/libalias/alias_dns.c \
896 Network/slirp/libalias/alias_nbt.c \
897 Network/slirp/libalias/alias_util.c
898
899# some day will be deleted
900
901Drivers_SOURCES += $(VBOX_SLIRP_SOURCES)
902define def_vbox_slirp_cflags
903 $(file)_DEFS += \
904 $(if $(VBOX_WITH_SLIRP_BSD_SBUF),VBOX_WITH_SLIRP_BSD_SBUF,) \
905 $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
906 $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
907 $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
908 $(file)_INCS += $(1)/slirp/bsd/sys
909 $(file)_INCS += $(1)/slirp/bsd/sys/sys
910 $(file)_INCS += $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include
911 $(file)_INCS += $(1)/slirp/bsd/netinet
912 $(file)_INCS += $(1)/slirp
913 $(file)_INCS += $(1)/slirp/libalias
914 ifeq ($(KBUILD_TARGET),win)
915 $(file)_CFLAGS = -wd4018
916 else
917 $(file)_CFLAGS += -Wno-sign-compare
918 $(file)_CFLAGS += -Wno-format
919 $(file)_CFLAGS += -Wno-bad-function-cast
920 endif
921endef
922
923$(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
924
925Drivers_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
926define def_vbox_slirp_alias_cflags
927 $(file)_DEFS += VBOX_SLIRP_ALIAS \
928 $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
929 $(file)_INCS += $(1)/slirp/libalias
930 $(file)_INCS += $(1)/slirp
931 $(file)_INCS += $(1)/slirp/dnsproxy
932 ifneq ($(KBUILD_TARGET),win)
933 $(file)_CFLAGS += -Wno-shadow
934 endif
935endef
936$(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
937$(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
938
939VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
940Drivers_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
941define def_vbox_slirp_bsd_cflags
942 $(file)_DEFS += VBOX_SLIRP_BSD
943 $(file)_INCS += $(1)/slirp/dnsproxy
944endef
945$(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
946$(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
947
948ifdef VBOX_WITH_DRV_DISK_INTEGRITY
949Drivers_SOURCES += \
950 Storage/DrvDiskIntegrity.cpp
951endif
952
953ifdef VBOX_WITH_VDE
954 Drivers_SOURCES += \
955 Network/DrvVDE.cpp \
956 Network/VDEPlug.cpp
957 Drivers_DEFS += \
958 VBOX_WITH_VDE
959endif
960
961# -- OS specific --
962
963ifeq ($(KBUILD_TARGET),darwin)
964Drivers_SOURCES := $(filter-out \
965 Storage/DrvHostRaw% \
966 Storage/DrvHostFloppy% \
967 , $(Drivers_SOURCES)) \
968 Audio/coreaudio.c
969Drivers_SOURCES.darwin = \
970 Serial/DrvHostSerial.cpp
971endif # darwin
972
973ifeq ($(KBUILD_TARGET),freebsd)
974Drivers_SOURCES := $(filter-out \
975 Storage/DrvHostFloppy% \
976 , $(Drivers_SOURCES)) \
977 Audio/ossaudio.c \
978 Serial/DrvHostSerial.cpp
979Drivers_SOURCES.freebsd = \
980 Network/DrvTAP.cpp
981endif # freebsd
982
983
984ifeq ($(KBUILD_TARGET),l4)
985Drivers_SOURCES = \
986 Input/DrvMouseQueue.cpp \
987 Input/DrvKeyboardQueue.cpp \
988 Storage/DrvBlock.cpp \
989 Storage/DrvMediaISO.cpp \
990 Storage/DrvRawImage.cpp \
991 Storage/DrvHostBase.cpp \
992 Storage/DrvHostDVD.cpp \
993 Storage/DrvVD.cpp \
994 PC/DrvACPI.cpp \
995 Network/DrvIntNet.cpp \
996 Network/DHCPServerRunner.cpp \
997 Network/DrvNetSniffer.cpp \
998 Network/Pcap.cpp \
999 Audio/audio.c \
1000 Audio/mixeng.c \
1001 Audio/noaudio.c \
1002 Audio/audiosniffer.c
1003
1004Drivers_SOURCES.l4 = \
1005 Audio/ossaudio.c
1006endif # l4
1007
1008Drivers_SOURCES.linux = \
1009 Network/DrvTAP.cpp \
1010 Audio/ossaudio.c \
1011 Parallel/DrvHostParallel.cpp \
1012 Serial/DrvHostSerial.cpp
1013
1014ifeq ($(KBUILD_TARGET),os2)
1015Drivers_SOURCES := $(filter-out \
1016 Storage/DrvHost% \
1017 , $(Drivers_SOURCES))
1018endif
1019
1020ifeq ($(KBUILD_TARGET),solaris)
1021Drivers_SOURCES := $(filter-out \
1022 Storage/DrvHost% \
1023 , $(Drivers_SOURCES))
1024Drivers_SOURCES.solaris = \
1025 Audio/solaudio.c \
1026 Storage/DrvHostBase.cpp \
1027 Storage/DrvHostDVD.cpp \
1028 Serial/DrvHostSerial.cpp
1029 ifdef VBOX_WITH_SOLARIS_OSS
1030 Drivers_SOURCES += Audio/ossaudio.c
1031 Drivers_DEFS += VBOX_WITH_SOLARIS_OSS
1032 endif
1033 ifdef VBOX_WITH_CROSSBOW
1034 Drivers_SOURCES += Network/solaris/vbox-libdlpi.cpp
1035 Drivers_DEFS += VBOX_WITH_CROSSBOW
1036 endif
1037 ifdef VBOX_WITH_SUID_WRAPPER
1038 Drivers_DEFS += VBOX_WITH_SUID_WRAPPER
1039 endif
1040endif
1041
1042Drivers_SOURCES.win = \
1043 Audio/dsoundaudio.c \
1044 Serial/DrvHostSerial.cpp
1045
1046if defined(VBOX_WITH_NETFLT)
1047 if defined(VBOX_NETFLT_ONDEMAND_BIND)
1048 Drivers_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
1049 endif
1050endif
1051
1052# -- features --
1053
1054ifdef VBOX_WITH_ISCSI
1055 VBoxDDU_SOURCES += \
1056 Storage/ISCSIHDDCore.cpp
1057 VBoxDDU_DEFS += VBOX_WITH_ISCSI
1058 Storage/DrvVD.cpp_INCS = \
1059 Network/lwip/src/include \
1060 Network/lwip/src/include/ipv4 \
1061 Network/lwip/vbox/include
1062endif # VBOX_WITH_ISCSI
1063
1064ifdef VBOX_WITH_ALSA
1065 Drivers_DEFS.linux += VBOX_WITH_ALSA
1066 Drivers_SOURCES.linux+= \
1067 Audio/alsaaudio.c \
1068 Audio/alsa_stubs.c
1069endif
1070
1071ifdef VBOX_WITH_PULSE
1072 Drivers_DEFS.linux += VBOX_WITH_PULSE
1073 Drivers_SOURCES.linux+= \
1074 Audio/pulseaudio.c \
1075 Audio/pulse_stubs.c
1076 Drivers_DEFS.freebsd += VBOX_WITH_PULSE
1077 Drivers_SOURCES.freebsd+= \
1078 Audio/pulseaudio.c \
1079 Audio/pulse_stubs.c
1080endif
1081
1082ifdef VBOX_WITH_VUSB
1083 Drivers_DEFS += VBOX_WITH_VUSB
1084 Drivers_SOURCES += \
1085 USB/DrvVUSBRootHub.cpp \
1086 USB/VUSBDevice.cpp \
1087 USB/VUSBReadAhead.cpp \
1088 USB/VUSBUrb.cpp
1089
1090endif # VBOX_WITH_VUSB
1091
1092ifdef VBOX_WITH_USB
1093 Drivers_DEFS += VBOX_WITH_USB
1094
1095 ifdef VBOX_WITH_VRDP
1096 Drivers_DEFS += VBOX_WITH_VRDP
1097 Drivers_SOURCES += \
1098 USB/vrdp/USBProxyDevice-vrdp.cpp
1099 endif
1100
1101 Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
1102 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
1103 Drivers_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
1104 endif
1105 Drivers_SOURCES.darwin += \
1106 USB/USBProxyDevice.cpp \
1107 USB/darwin/USBProxyDevice-darwin.cpp
1108
1109 Drivers_DEFS.linux += \
1110 VUSB_HAVE_USBPROXY_DEVICE \
1111 $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
1112 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
1113 Drivers_SOURCES.linux += \
1114 USB/USBProxyDevice.cpp \
1115 USB/linux/USBProxyDevice-linux.cpp
1116
1117 Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
1118 Drivers_SOURCES.l4 += \
1119 USB/USBProxyDevice.cpp \
1120 USB/linux/USBProxyDevice-linux.cpp
1121
1122 Drivers_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
1123 Drivers_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
1124 Drivers_SOURCES.os2 += \
1125 USB/USBProxyDevice.cpp \
1126 USB/os2/USBProxyDevice-os2.cpp
1127
1128 Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
1129 Drivers_SOURCES.win += \
1130 USB/USBProxyDevice.cpp \
1131 USB/win/USBProxyDevice-win.cpp
1132
1133 Drivers_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
1134 Drivers_SOURCES.solaris += \
1135 USB/USBProxyDevice.cpp \
1136 USB/solaris/USBProxyDevice-solaris.cpp
1137
1138 Drivers_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
1139 Drivers_SOURCES.freebsd += \
1140 USB/USBProxyDevice.cpp \
1141 USB/freebsd/USBProxyDevice-freebsd.cpp
1142
1143 ifdef VBOX_WITH_SCSI
1144 Drivers_SOURCES += \
1145 Storage/UsbMsd.cpp
1146 endif
1147
1148endif # VBOX_WITH_USB
1149
1150ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
1151 Drivers_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
1152endif #VBOX_WITH_PDM_ASYNC_COMPLETION
1153
1154ifdef VBOX_WITH_SCSI
1155 Drivers_DEFS += VBOX_WITH_SCSI
1156 Drivers_SOURCES += \
1157 Storage/DrvSCSI.cpp
1158 Drivers_SOURCES.linux += \
1159 Storage/DrvSCSIHost.cpp
1160endif # VBOX_WITH_SCSI
1161
1162#
1163# Ring-0 Services (library, linked into VMMR0.r0)
1164#
1165ServicesR0_TEMPLATE = VBoxR0
1166ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
1167ServicesR0_SOURCES = \
1168 Network/SrvIntNetR0.cpp
1169
1170
1171#
1172# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
1173#
1174ifdef VBOX_WITH_TESTCASES
1175 PROGRAMS += tstIntNetR0
1176 tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
1177 tstIntNetR0_DEFS = IN_INTNET_R0
1178 tstIntNetR0_SOURCES = \
1179 Network/testcase/tstIntNetR0.cpp
1180endif
1181
1182#
1183# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
1184#
1185ifdef VBOX_WITH_TESTCASES
1186 PROGRAMS += tstIntNet-1
1187 tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
1188 tstIntNet-1_SOURCES = \
1189 Network/testcase/tstIntNet-1.cpp \
1190 Network/Pcap.cpp
1191endif
1192
1193
1194#
1195# EEPROM device unit test requires cppunit
1196#
1197ifdef VBOX_WITH_CPPUNIT_TESTCASES
1198ifdef VBOX_WITH_E1000
1199 PROGRAMS += tstDevEEPROM
1200 tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
1201 tstDevEEPROM_SOURCES = \
1202 Network/testcase/tstDevEEPROM.cpp
1203 tstDevEEPROM_LIBS = \
1204 $(TARGET_DevicesR3)
1205 PROGRAMS += tstDevPhy
1206 tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
1207 tstDevPhy_SOURCES = \
1208 Network/testcase/tstDevPhy.cpp \
1209 Network/DevE1000Phy.cpp
1210 tstDevPhy_DEFS = PHY_UNIT_TEST
1211endif
1212endif
1213
1214include $(KBUILD_PATH)/subfooter.kmk
1215
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