VirtualBox

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

Last change on this file since 29485 was 29332, checked in by vboxsync, 15 years ago

removed VBOX_WITH_VMI

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