VirtualBox

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

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

Devices, Main, FE/Qt: reverted r60036 for now

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