VirtualBox

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

Last change on this file since 33089 was 33037, checked in by vboxsync, 14 years ago

one more file

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