VirtualBox

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

Last change on this file since 32299 was 32241, checked in by vboxsync, 14 years ago

wddm: 1. guest installler integration (uninstall needs additional fixing), 2. dev/vga saved state fixes, 3. better split video dma and wddm 4. separate wddm wine libs, 5. etc.

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