VirtualBox

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

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

Audio: Inital HDA commit. Not fully workable, compilable on Mac (Linux, Windows haven't been tested).

  • 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 30866 2010-07-16 05:37:14Z vboxsync $
2## @file
3# Top-level sub-makefile for the devices, drivers and services.
4#
5
6#
7# Copyright (C) 2006-2010 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21
22VBOX_PATH_DEVICES_SRC := $(PATH_SUB_CURRENT)
23
24# Include sub-makefiles.
25include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
26include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
27include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
28include $(PATH_SUB_CURRENT)/Storage/testcase/Makefile.kmk
29ifndef VBOX_OSE
30 include $(PATH_SUB_CURRENT)/Storage/VBoxHDDFormats/Makefile.kmk
31endif
32ifdef VBOX_WITH_EFI
33 include $(PATH_SUB_CURRENT)/EFI/Thunk/Makefile.kmk
34endif
35ifdef VBOX_WITH_INTEL_PXE
36 include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
37else
38 # Subdir with complex makefile.
39 SUBDIRS_LIBRARIES += $(VBOX_PATH_DEVICES_SRC)/PC/Etherboot-src
40 SUBDIRS_CLEAN += $(VBOX_PATH_DEVICES_SRC)/PC/Etherboot-src
41 # Disable the unsafe pass order optimizations.
42 KBUILD_SAFE_PARALLEL = 1
43endif
44
45#
46# Main targets.
47#
48LIBRARIES += DevicesR3 Drivers ServicesR0
49DLLS += VBoxDDU VBoxDD VBoxDD2
50SYSMODS += VBoxDDR0 VBoxDD2R0
51ifdef VBOX_WITH_RAW_MODE
52 SYSMODS += VBoxDDGC VBoxDD2GC
53endif
54
55
56#
57# VBoxDDU (shared object)
58#
59VBoxDDU_TEMPLATE = VBOXR3
60VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
61VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
62VBoxDDU_DEFS = IN_VBOXDDU
63ifdef VBOX_WITH_VUSB
64 VBoxDDU_DEFS += VBOX_WITH_VUSB
65endif
66ifdef VBOX_WITH_USB
67 VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
68 VBoxDDU_SDKS.win = WINPSDK W2K3DDK
69 ifdef VBOX_WITH_EHCI
70 VBoxDDU_DEFS += VBOX_WITH_EHCI
71 endif
72 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
73 VBoxDDU_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
74 endif
75else
76 VBoxDDU_SDKS.win = WINPSDK
77endif
78ifdef VBOX_WITH_NEW_IO_CODE
79 VBoxDDU_DEFS += VBOX_WITH_NEW_IO_CODE
80endif
81VBoxDDU_SOURCES = \
82 Storage/VBoxHDD.cpp \
83 Storage/VDIHDDCore.cpp \
84 Storage/VHDHDDCore.cpp \
85 Storage/VmdkHDDCore.cpp \
86 Storage/RawHDDCore.cpp \
87 Storage/ParallelsHDDCore.cpp \
88 Storage/VSCSI/VSCSIDevice.cpp \
89 Storage/VSCSI/VSCSILun.cpp \
90 Storage/VSCSI/VSCSILunSbc.cpp \
91 Storage/VSCSI/VSCSISense.cpp \
92 Storage/VSCSI/VSCSISgBuf.cpp \
93 Storage/VSCSI/VSCSIIoReq.cpp \
94 VBoxDDUDeps.cpp
95ifdef VBOX_WITH_USB
96 VBoxDDU_INCS.os2 += \
97 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
98endif
99VBoxDDU_LIBS = \
100 $(LIB_RUNTIME)
101ifdef VBOX_WITH_USB
102 VBoxDDU_LIBS += \
103 $(PATH_LIB)/USBLib$(VBOX_SUFF_LIB)
104endif
105ifeq ($(KBUILD_TARGET),l4)
106 VBoxDDU_LIBS += \
107 $(L4_LIBDIR)/libl4sys.p.a
108endif
109VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
110ifdef VBOX_WITH_USB
111 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
112 VBoxDDU_LDFLAGS.darwin += -framework IOKit
113 endif
114endif
115
116VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
117VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
118
119#
120# VBoxDDULnxHostR3 (Only needed for l4, currently for executing vditool on L4Linux.)
121#
122ifeq ($(KBUILD_TARGET),l4)
123 LIBRARIES += VBoxDDULnxHostR3
124 VBoxDDULnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
125 VBoxDDULnxHostR3_DEFS = IN_VBOXDDU
126 VBoxDDULnxHostR3_SOURCES = $(VBoxDDU_SOURCES)
127endif
128
129#
130# VBoxDD (shared object)
131#
132VBoxDD_TEMPLATE = VBOXR3
133ifdef VBOX_WITH_DTRACE_R3
134 VBoxDD_TEMPLATE = VBOXR3OSX105
135endif
136VBoxDD_SDKS.win = WINPSDK DXSDK W2K3DDK VBOX_NTDLL
137VBoxDD_SOURCES = \
138 Builtins.cpp
139VBoxDD_DEFS = VBOX_ACPI
140ifdef VBOX_WITH_USB
141 VBoxDD_DEFS += VBOX_WITH_USB
142 ifdef VBOX_WITH_EHCI
143 VBoxDD_DEFS += VBOX_WITH_EHCI
144 endif
145endif
146ifdef VBOX_WITH_VUSB
147 VBoxDD_DEFS += VBOX_WITH_VUSB
148endif
149ifdef VBOX_WITH_AHCI
150 VBoxDD_DEFS += VBOX_WITH_AHCI
151endif
152ifdef VBOX_WITH_INIP
153 VBoxDD_DEFS += VBOX_WITH_INIP
154endif
155ifdef VBOX_WITH_E1000
156 VBoxDD_DEFS += VBOX_WITH_E1000
157endif
158ifdef VBOX_WITH_VIRTIO
159 VBoxDD_DEFS += VBOX_WITH_VIRTIO
160endif
161ifdef VBOX_WITH_BUSLOGIC
162 VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
163endif
164ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
165 VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
166endif
167ifdef VBOX_WITH_SCSI
168 VBoxDD_DEFS += VBOX_WITH_SCSI
169endif
170ifdef VBOX_WITH_LSILOGIC
171 VBoxDD_DEFS += VBOX_WITH_LSILOGIC
172endif
173ifdef VBOX_WITH_HPET
174 VBoxDD_DEFS += VBOX_WITH_HPET
175endif
176ifdef VBOX_WITH_SMC
177 VBoxDD_DEFS += VBOX_WITH_SMC
178endif
179ifdef VBOX_WITH_EFI
180 VBoxDD_DEFS += VBOX_WITH_EFI
181endif
182ifdef VBOX_WITH_DRV_DISK_INTEGRITY
183 VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
184endif
185ifdef VBOX_WITH_VDE
186 VBoxDD_DEFS += VBOX_WITH_VDE
187endif
188
189VBoxDD_LIBS = \
190 $(PATH_LIB)/DevicesR3$(VBOX_SUFF_LIB) \
191 $(PATH_LIB)/Drivers$(VBOX_SUFF_LIB) \
192 $(PATH_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
193 $(LIB_VMM) \
194 $(LIB_RUNTIME)
195ifeq ($(KBUILD_TARGET),win)
196 VBoxDD_LIBS += \
197 $(LIB_DDU) \
198 $(PATH_LIB)/VBoxDD2.lib \
199 $(PATH_SDK_DXSDK_LIB)/dxguid.lib
200else
201 VBoxDD_LIBS += \
202 $(INSTARGET_VBoxDDU) \
203 $(INSTARGET_VBoxDD2)
204endif
205ifeq ($(KBUILD_TARGET),l4)
206 VBoxDD_LIBS += \
207 $(L4_LIBDIR)/libl4sys.p.a
208endif
209
210ifdef VBOX_WITH_HGSMI
211 VBoxDD_LIBS += \
212 $(PATH_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
213endif
214
215ifdef VBOX_WITH_NETFLT
216 VBoxDD_LIBS.win += $(PATH_LIB)/WinNetConfig.lib
217endif
218
219ifdef VBOX_WITH_EFI
220 VBoxDD_LIBS += $(PATH_LIB)/EfiThunkBin$(VBOX_SUFF_LIB)
221endif
222
223ifeq ($(KBUILD_TARGET),solaris)
224 VBoxDD_LIBS += adm
225 ifdef VBOX_WITH_SUID_WRAPPER
226 VBoxDD_LIBS += secdb
227 endif
228 ifdef VBOX_WITH_USB
229 VBoxDD_LIBS += aio
230 endif
231endif
232
233VBoxDD_LIBS.darwin += \
234 $(LIB_REM)
235
236VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
237 -framework CoreAudio \
238 -framework AudioUnit \
239 -framework AudioToolbox \
240 -framework IOKit \
241 -framework Carbon \
242 -framework DiskArbitration
243VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
244VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined
245
246
247#
248# VBoxDD2 (shared object)
249#
250VBoxDD2_TEMPLATE = VBOXR3
251VBoxDD2_DEFS = IN_VBOXDD2
252VBoxDD2_INCS := \
253 $(PATH_SUB_CURRENT)
254VBoxDD2_SOURCES = \
255 Builtins2.cpp \
256 PC/DevAPIC.cpp
257ifdef VBOX_WITH_SMC
258 VBoxDD2_DEFS += VBOX_WITH_SMC
259 VBoxDD2_SOURCES += PC/DevSMC.cpp
260endif
261ifdef VBOX_WITH_LPC
262 VBoxDD2_DEFS += VBOX_WITH_LPC
263 VBoxDD2_SOURCES += PC/DevLPC.cpp
264endif
265VBoxDD2_LIBS = \
266 $(PATH_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
267 $(PATH_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
268 $(PATH_LIB)/NetBiosBin$(VBOX_SUFF_LIB) \
269 $(LIB_VMM) \
270 $(LIB_RUNTIME)
271ifeq ($(KBUILD_TARGET),l4)
272VBoxDD2_LIBS += \
273 $(L4_LIBDIR)/libl4sys.p.a
274endif
275VBoxDD2_LIBS.darwin += $(LIB_REM)
276VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
277VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
278VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
279
280
281#
282# DevicesR3 (library)
283#
284DevicesR3_TEMPLATE = VBOXR3
285DevicesR3_SDKS.win = WINPSDK W2K3DDK
286DevicesR3_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
287DevicesR3_DEFS += VBOX_HGCM_HOST_CODE \
288 VBOX_WITH_HGCM
289DevicesR3_DEFS.linux += _GNU_SOURCE
290DevicesR3_DEFS.l4 += _GNU_SOURCE
291
292DevicesR3_INCS = \
293 .
294
295DevicesR3_SOURCES = \
296 Input/DevPS2.cpp \
297 Input/UsbKbd.cpp \
298 Input/UsbMouse.cpp \
299 Bus/DevPCI.cpp \
300 Graphics/DevVGA.cpp \
301 Storage/DevATA.cpp \
302 PC/DevPit-i8254.cpp \
303 PC/DevPIC.cpp \
304 PC/DevACPI.cpp \
305 PC/ACPI/VBoxAcpi.cpp \
306 PC/DevRTC.cpp \
307 PC/DevPcBios.cpp \
308 PC/DevFwCommon.cpp \
309 PC/DevPcArch.c \
310 VMMDev/VMMDev.cpp \
311 VMMDev/VMMDevHGCM.cpp \
312 VMMDev/VMMDevTesting.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_WITH_AUDIO_INTELHD
322 DevicesR3_SOURCES += Audio/DevIchIntelHDA.cpp
323 DevicesR3_SOURCES += Audio/DevCodec.cpp
324 DevicesR3_DEFS += VBOX_WITH_AUDIO_INTELHD
325 VBoxDD_DEFS += VBOX_WITH_AUDIO_INTELHD
326endif
327
328ifdef VBOX_DYNAMIC_NET_ATTACH
329 DevicesR3_DEFS += VBOX_DYNAMIC_NET_ATTACH
330endif
331ifdef VBOX_BIOS_DMI_FALLBACK
332 DevicesR3_DEFS += VBOX_BIOS_DMI_FALLBACK
333endif
334
335ifdef VBOX_WITH_E1000
336 DevicesR3_DEFS += VBOX_WITH_E1000
337 DevicesR3_SOURCES += \
338 Network/DevE1000.cpp \
339 Network/DevE1000Phy.cpp \
340 Network/DevEEPROM.cpp
341endif
342
343ifdef VBOX_WITH_VIRTIO
344 DevicesR3_DEFS += VBOX_WITH_VIRTIO
345 DevicesR3_SOURCES += \
346 VirtIO/Virtio.cpp \
347 Network/DevVirtioNet.cpp
348endif
349
350ifdef VBOX_WITH_HGSMI
351 DevicesR3_DEFS += VBOX_WITH_HGSMI
352 DevicesR3_SOURCES += \
353 Graphics/DevVGA_VBVA.cpp \
354 Graphics/HGSMI/HGSMIHost.cpp \
355 Graphics/HGSMI/HGSMIHostHlp.cpp
356
357endif
358ifdef VBOXVDMA
359 DevicesR3_DEFS += VBOXVDMA
360 DevicesR3_SOURCES += \
361 Graphics/HGSMI/SHGSMIHost.cpp \
362 Graphics/DevVGA_VDMA.cpp
363endif
364ifdef VBOXWDDM_WITH_VBVA
365 DevicesR3_DEFS += VBOXWDDM_WITH_VBVA
366endif
367
368ifdef VBOX_WITH_VIDEOHWACCEL
369 DevicesR3_DEFS += VBOX_WITH_VIDEOHWACCEL
370endif
371ifdef VBOX_WITH_DMI_CHASSIS
372 DevicesR3_DEFS += VBOX_WITH_DMI_CHASSIS
373endif
374ifdef VBOX_WITH_DMI_OEMSTRINGS
375 DevicesR3_DEFS += VBOX_WITH_DMI_OEMSTRINGS
376endif
377
378ifdef VBOX_WITH_INIP
379 DevicesR3_INCS += \
380 Network/lwip/src/include \
381 Network/lwip/src/include/ipv4 \
382 Network/lwip/vbox/include
383 DevicesR3_SOURCES += \
384 Network/lwip/src/api/api_lib.c \
385 Network/lwip/src/api/api_msg.c \
386 Network/lwip/src/api/err.c \
387 Network/lwip/src/api/sockets.c \
388 Network/lwip/src/api/tcpip.c \
389 Network/lwip/src/core/tcp_in.c \
390 Network/lwip/src/core/dhcp.c \
391 Network/lwip/src/core/inet.c \
392 Network/lwip/src/core/mem.c \
393 Network/lwip/src/core/memp.c \
394 Network/lwip/src/core/netif.c \
395 Network/lwip/src/core/pbuf.c \
396 Network/lwip/src/core/raw.c \
397 Network/lwip/src/core/stats.c \
398 Network/lwip/src/core/sys.c \
399 Network/lwip/src/core/tcp.c \
400 Network/lwip/src/core/ipv4/ip_addr.c \
401 Network/lwip/src/core/ipv4/icmp.c \
402 Network/lwip/src/core/ipv4/ip.c \
403 Network/lwip/src/core/ipv4/ip_frag.c \
404 Network/lwip/src/core/tcp_out.c \
405 Network/lwip/src/core/udp.c \
406 Network/lwip/src/netif/etharp.c \
407 Network/lwip/vbox/sys_arch.c \
408 Network/DevINIP.cpp
409 DevicesR3_DEFS += VBOX_WITH_INIP
410endif
411
412ifdef VBOX_WITH_AHCI
413 DevicesR3_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
414 DevicesR3_SOURCES += \
415 Storage/DevAHCI.cpp \
416 Storage/ATAController.cpp
417endif
418
419ifdef VBOX_WITH_BUSLOGIC
420 DevicesR3_DEFS += VBOX_WITH_BUSLOGIC
421 DevicesR3_SOURCES += \
422 Storage/DevBusLogic.cpp \
423 Storage/VBoxSCSI.cpp
424endif
425
426ifdef VBOX_WITH_LSILOGIC
427 DevicesR3_DEFS += VBOX_WITH_LSILOGIC
428 DevicesR3_SOURCES += \
429 Storage/DevLsiLogicSCSI.cpp
430endif
431
432ifdef VBOX_WITH_HPET
433 DevicesR3_DEFS += VBOX_WITH_HPET
434 DevicesR3_SOURCES += PC/DevHPET.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 $@ $@.tmp
511 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
512 $(QUIET)$(MV) -f $@ $@.tmp
513 $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
514 --output $@ $@.tmp
515 $(QUIET)$(RM) -f $@.tmp
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 $@ $@.tmp $@.pre
523 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $<
524 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre
525 $(QUIET)$(MV) -f $@ $@.tmp
526 $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
527 --output $@ $@.tmp
528 $(QUIET)$(RM) -f $@.tmp $@.pre
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 ifeq ($(KBUILD_TARGET_ARCH),x86)
550 VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
551 endif
552 VBoxDDGC_DEFS = VBOX_WITH_HGCM
553 VBoxDDGC_INCS := \
554 $(PATH_SUB_CURRENT)
555 VBoxDDGC_SOURCES = \
556 Bus/DevPCI.cpp \
557 Graphics/DevVGA.cpp \
558 Input/DevPS2.cpp \
559 PC/DevACPI.cpp \
560 PC/DevPit-i8254.cpp \
561 PC/DevPIC.cpp \
562 PC/DevRTC.cpp \
563 Storage/DevATA.cpp \
564 Network/DevPCNet.cpp \
565 Serial/DevSerial.cpp \
566 Parallel/DevParallel.cpp \
567 VMMDev/VMMDevTesting.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_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
663VBoxDDR0_DEFS = IN_RT_R0 VBOX_WITH_HGCM # - WTF is IN_RT_R0 doing here?
664VBoxDDR0_INCS := \
665 $(PATH_SUB_CURRENT)
666VBoxDDR0_SOURCES = \
667 Bus/DevPCI.cpp \
668 Graphics/DevVGA.cpp \
669 Input/DevPS2.cpp \
670 PC/DevACPI.cpp \
671 PC/DevPit-i8254.cpp \
672 PC/DevPIC.cpp \
673 PC/DevRTC.cpp \
674 Storage/DevATA.cpp \
675 Network/DevPCNet.cpp \
676 Serial/DevSerial.cpp \
677 Parallel/DevParallel.cpp \
678 VMMDev/VMMDevTesting.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_INCS := \
777 $(PATH_SUB_CURRENT)
778 VBoxDD2GC_SOURCES = \
779 PC/DevAPIC.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
797ifdef VBOX_WITH_SMC
798 VBoxDD2R0_DEFS += VBOX_WITH_SMC
799 VBoxDD2R0_SOURCES += PC/DevSMC.cpp
800endif
801
802if1of ($(VBOX_LDR_FMT), pe lx)
803VBoxDD2R0_LIBS = \
804 $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
805 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
806endif
807
808
809#
810# Drivers (library)
811#
812ifeq ($(KBUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
813Drivers_TEMPLATE = VBOXR3NP
814else
815Drivers_TEMPLATE = VBOXR3
816endif
817Drivers_SDKS.win = WINPSDK W2K3DDK
818Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
819Drivers_DEFS.win += _WIN32_WINNT=0x0510
820Drivers_DEFS = IN_IDE_R3
821ifdef VBOX_WITH_NETFLT
822Drivers_DEFS += VBOX_WITH_NETFLT
823endif
824ifdef VBOX_WITH_INIP
825Drivers_DEFS += VBOX_WITH_INIP
826endif
827ifdef VBOX_WITH_DRV_DISK_INTEGRITY
828Drivers_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
829endif
830
831Drivers_INCS := \
832 $(PATH_SUB_CURRENT) \
833 Network/slirp
834Drivers_SOURCES = \
835 Audio/audio.c \
836 Audio/audiosniffer.c \
837 Audio/mixeng.c \
838 Audio/noaudio.c \
839 Input/DrvKeyboardQueue.cpp \
840 Input/DrvMouseQueue.cpp \
841 Network/DrvIntNet.cpp \
842 Network/DrvDedicatedNic.cpp \
843 PC/DrvACPI.cpp \
844 PC/DrvAcpiCpu.cpp \
845 Serial/DrvChar.cpp \
846 Serial/DrvNamedPipe.cpp \
847 Serial/DrvRawFile.cpp \
848 Storage/DrvBlock.cpp \
849 Storage/DrvHostBase.cpp \
850 Storage/DrvHostDVD.cpp \
851 Storage/DrvHostFloppy.cpp \
852 Storage/DrvMediaISO.cpp \
853 Storage/DrvRawImage.cpp \
854 Storage/Debug.cpp \
855 Storage/DrvVD.cpp \
856 Network/DrvNetSniffer.cpp \
857 Network/Pcap.cpp
858
859VBOX_SLIRP_SOURCES = \
860 Network/DrvNAT.cpp \
861 Network/slirp/bootp.c \
862 Network/slirp/debug.c \
863 Network/slirp/ip_icmp.c \
864 Network/slirp/ip_input.c \
865 Network/slirp/ip_output.c \
866 Network/slirp/misc.c \
867 Network/slirp/sbuf.c \
868 Network/slirp/slirp.c \
869 Network/slirp/socket.c \
870 Network/slirp/tcp_input.c \
871 Network/slirp/tcp_output.c \
872 Network/slirp/tcp_subr.c \
873 Network/slirp/tcp_timer.c \
874 Network/slirp/udp.c \
875 Network/slirp/dnsproxy/hash.c \
876 Network/slirp/tftp.c \
877 Network/slirp/dnsproxy/dnsproxy.c
878
879ifdef VBOX_WITH_SLIRP_BSD_SBUF
880VBOX_SLIRP_SOURCES += Network/slirp/bsd/kern/subr_sbuf.c
881endif
882
883VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
884VBOX_SLIRP_BSD_SOURCES += \
885 Network/slirp/bsd/kern/kern_mbuf.c \
886 Network/slirp/bsd/kern/uipc_mbuf.c \
887 Network/slirp/bsd/kern/uipc_mbuf2.c \
888 Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
889
890VBOX_SLIRP_ALIAS_SOURCES = \
891 Network/slirp/libalias/alias.c \
892 Network/slirp/libalias/alias_db.c \
893 Network/slirp/libalias/alias_mod.c \
894 Network/slirp/libalias/alias_proxy.c \
895 Network/slirp/libalias/alias_ftp.c \
896 Network/slirp/libalias/alias_dns.c \
897 Network/slirp/libalias/alias_nbt.c \
898 Network/slirp/libalias/alias_util.c
899
900# some day will be deleted
901
902Drivers_SOURCES += $(VBOX_SLIRP_SOURCES)
903define def_vbox_slirp_cflags
904 $(file)_DEFS += \
905 $(if $(VBOX_WITH_SLIRP_BSD_SBUF),VBOX_WITH_SLIRP_BSD_SBUF,) \
906 $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
907 $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
908 $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
909 $(file)_INCS += $(1)/slirp/bsd/sys
910 $(file)_INCS += $(1)/slirp/bsd/sys/sys
911 $(file)_INCS += $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include
912 $(file)_INCS += $(1)/slirp/bsd/netinet
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 $(file)_CFLAGS += -Wno-format
920 $(file)_CFLAGS += -Wno-bad-function-cast
921 endif
922endef
923
924$(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
925
926Drivers_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
927define def_vbox_slirp_alias_cflags
928 $(file)_DEFS += VBOX_SLIRP_ALIAS \
929 $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
930 $(file)_INCS += $(1)/slirp/libalias
931 $(file)_INCS += $(1)/slirp
932 $(file)_INCS += $(1)/slirp/dnsproxy
933 ifneq ($(KBUILD_TARGET),win)
934 $(file)_CFLAGS += -Wno-shadow
935 endif
936endef
937$(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
938$(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
939
940VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
941Drivers_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
942define def_vbox_slirp_bsd_cflags
943 $(file)_DEFS += VBOX_SLIRP_BSD
944 $(file)_INCS += $(1)/slirp/dnsproxy
945endef
946$(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
947$(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
948
949ifdef VBOX_WITH_DRV_DISK_INTEGRITY
950Drivers_SOURCES += \
951 Storage/DrvDiskIntegrity.cpp
952endif
953
954ifdef VBOX_WITH_VDE
955 Drivers_SOURCES += \
956 Network/DrvVDE.cpp \
957 Network/VDEPlug.cpp
958 Drivers_DEFS += \
959 VBOX_WITH_VDE
960endif
961
962# -- OS specific --
963
964ifeq ($(KBUILD_TARGET),darwin)
965Drivers_SOURCES := $(filter-out \
966 Storage/DrvHostRaw% \
967 Storage/DrvHostFloppy% \
968 , $(Drivers_SOURCES)) \
969 Audio/coreaudio.c
970Drivers_SOURCES.darwin = \
971 Serial/DrvHostSerial.cpp
972endif # darwin
973
974ifeq ($(KBUILD_TARGET),freebsd)
975Drivers_SOURCES := $(filter-out \
976 Storage/DrvHostFloppy% \
977 , $(Drivers_SOURCES)) \
978 Audio/ossaudio.c \
979 Serial/DrvHostSerial.cpp
980Drivers_SOURCES.freebsd = \
981 Network/DrvTAP.cpp
982endif # freebsd
983
984
985ifeq ($(KBUILD_TARGET),l4)
986Drivers_SOURCES = \
987 Input/DrvMouseQueue.cpp \
988 Input/DrvKeyboardQueue.cpp \
989 Storage/DrvBlock.cpp \
990 Storage/DrvMediaISO.cpp \
991 Storage/DrvRawImage.cpp \
992 Storage/DrvHostBase.cpp \
993 Storage/DrvHostDVD.cpp \
994 Storage/DrvVD.cpp \
995 PC/DrvACPI.cpp \
996 Network/DrvIntNet.cpp \
997 Network/DHCPServerRunner.cpp \
998 Network/DrvNetSniffer.cpp \
999 Network/Pcap.cpp \
1000 Audio/audio.c \
1001 Audio/mixeng.c \
1002 Audio/noaudio.c \
1003 Audio/audiosniffer.c
1004
1005Drivers_SOURCES.l4 = \
1006 Audio/ossaudio.c
1007endif # l4
1008
1009Drivers_SOURCES.linux = \
1010 Network/DrvTAP.cpp \
1011 Audio/ossaudio.c \
1012 Parallel/DrvHostParallel.cpp \
1013 Serial/DrvHostSerial.cpp
1014
1015ifeq ($(KBUILD_TARGET),os2)
1016Drivers_SOURCES := $(filter-out \
1017 Storage/DrvHost% \
1018 , $(Drivers_SOURCES))
1019endif
1020
1021ifeq ($(KBUILD_TARGET),solaris)
1022Drivers_SOURCES := $(filter-out \
1023 Storage/DrvHost% \
1024 , $(Drivers_SOURCES))
1025Drivers_SOURCES.solaris = \
1026 Audio/solaudio.c \
1027 Storage/DrvHostBase.cpp \
1028 Storage/DrvHostDVD.cpp \
1029 Serial/DrvHostSerial.cpp
1030 ifdef VBOX_WITH_SOLARIS_OSS
1031 Drivers_SOURCES += Audio/ossaudio.c
1032 Drivers_DEFS += VBOX_WITH_SOLARIS_OSS
1033 endif
1034 ifdef VBOX_WITH_CROSSBOW
1035 Drivers_SOURCES += Network/solaris/vbox-libdlpi.cpp
1036 Drivers_DEFS += VBOX_WITH_CROSSBOW
1037 endif
1038 ifdef VBOX_WITH_SUID_WRAPPER
1039 Drivers_DEFS += VBOX_WITH_SUID_WRAPPER
1040 endif
1041endif
1042
1043Drivers_SOURCES.win = \
1044 Audio/dsoundaudio.c \
1045 Serial/DrvHostSerial.cpp
1046
1047if defined(VBOX_WITH_NETFLT)
1048 if defined(VBOX_NETFLT_ONDEMAND_BIND)
1049 Drivers_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
1050 endif
1051endif
1052
1053# -- features --
1054
1055ifdef VBOX_WITH_ISCSI
1056 VBoxDDU_SOURCES += \
1057 Storage/ISCSIHDDCore.cpp
1058 VBoxDDU_DEFS += VBOX_WITH_ISCSI
1059 Storage/DrvVD.cpp_INCS = \
1060 Network/lwip/src/include \
1061 Network/lwip/src/include/ipv4 \
1062 Network/lwip/vbox/include
1063endif # VBOX_WITH_ISCSI
1064
1065ifdef VBOX_WITH_ALSA
1066 Drivers_DEFS.linux += VBOX_WITH_ALSA
1067 Drivers_SOURCES.linux+= \
1068 Audio/alsaaudio.c \
1069 Audio/alsa_stubs.c
1070endif
1071
1072ifdef VBOX_WITH_PULSE
1073 Drivers_DEFS.linux += VBOX_WITH_PULSE
1074 Drivers_SOURCES.linux+= \
1075 Audio/pulseaudio.c \
1076 Audio/pulse_stubs.c
1077 Drivers_DEFS.freebsd += VBOX_WITH_PULSE
1078 Drivers_SOURCES.freebsd+= \
1079 Audio/pulseaudio.c \
1080 Audio/pulse_stubs.c
1081endif
1082
1083ifdef VBOX_WITH_VUSB
1084 Drivers_DEFS += VBOX_WITH_VUSB
1085 Drivers_SOURCES += \
1086 USB/DrvVUSBRootHub.cpp \
1087 USB/VUSBDevice.cpp \
1088 USB/VUSBReadAhead.cpp \
1089 USB/VUSBUrb.cpp
1090
1091endif # VBOX_WITH_VUSB
1092
1093ifdef VBOX_WITH_USB
1094 Drivers_DEFS += VBOX_WITH_USB
1095
1096 ifdef VBOX_WITH_VRDP
1097 Drivers_DEFS += VBOX_WITH_VRDP
1098 Drivers_SOURCES += \
1099 USB/vrdp/USBProxyDevice-vrdp.cpp
1100 endif
1101
1102 Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
1103 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
1104 Drivers_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
1105 endif
1106 Drivers_SOURCES.darwin += \
1107 USB/USBProxyDevice.cpp \
1108 USB/darwin/USBProxyDevice-darwin.cpp
1109
1110 Drivers_DEFS.linux += \
1111 VUSB_HAVE_USBPROXY_DEVICE \
1112 $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
1113 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
1114 Drivers_SOURCES.linux += \
1115 USB/USBProxyDevice.cpp \
1116 USB/linux/USBProxyDevice-linux.cpp
1117
1118 Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
1119 Drivers_SOURCES.l4 += \
1120 USB/USBProxyDevice.cpp \
1121 USB/linux/USBProxyDevice-linux.cpp
1122
1123 Drivers_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
1124 Drivers_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
1125 Drivers_SOURCES.os2 += \
1126 USB/USBProxyDevice.cpp \
1127 USB/os2/USBProxyDevice-os2.cpp
1128
1129 Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
1130 Drivers_SOURCES.win += \
1131 USB/USBProxyDevice.cpp \
1132 USB/win/USBProxyDevice-win.cpp
1133
1134 Drivers_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
1135 Drivers_SOURCES.solaris += \
1136 USB/USBProxyDevice.cpp \
1137 USB/solaris/$(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),USBProxyDevice2-solaris.cpp,USBProxyDevice-solaris.cpp)
1138
1139 Drivers_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
1140 Drivers_SOURCES.freebsd += \
1141 USB/USBProxyDevice.cpp \
1142 USB/freebsd/USBProxyDevice-freebsd.cpp
1143
1144 ifdef VBOX_WITH_SCSI
1145 Drivers_SOURCES += \
1146 Storage/UsbMsd.cpp
1147 endif
1148
1149endif # VBOX_WITH_USB
1150
1151ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
1152 Drivers_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
1153endif #VBOX_WITH_PDM_ASYNC_COMPLETION
1154
1155ifdef VBOX_WITH_SCSI
1156 Drivers_DEFS += VBOX_WITH_SCSI
1157 Drivers_SOURCES += \
1158 Storage/DrvSCSI.cpp
1159 Drivers_SOURCES.linux += \
1160 Storage/DrvSCSIHost.cpp
1161endif # VBOX_WITH_SCSI
1162
1163#
1164# Ring-0 Services (library, linked into VMMR0.r0)
1165#
1166ServicesR0_TEMPLATE = VBoxR0
1167ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
1168ServicesR0_SOURCES = \
1169 Network/SrvIntNetR0.cpp
1170
1171
1172#
1173# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
1174#
1175ifdef VBOX_WITH_TESTCASES
1176 PROGRAMS += tstIntNetR0
1177 tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
1178 tstIntNetR0_DEFS = IN_INTNET_R0
1179 tstIntNetR0_SOURCES = \
1180 Network/testcase/tstIntNetR0.cpp
1181endif
1182
1183#
1184# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
1185#
1186ifdef VBOX_WITH_TESTCASES
1187 PROGRAMS += tstIntNet-1
1188 tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
1189 tstIntNet-1_SOURCES = \
1190 Network/testcase/tstIntNet-1.cpp \
1191 Network/Pcap.cpp
1192endif
1193
1194
1195#
1196# EEPROM device unit test requires cppunit
1197#
1198ifdef VBOX_WITH_CPPUNIT_TESTCASES
1199ifdef VBOX_WITH_E1000
1200 PROGRAMS += tstDevEEPROM
1201 tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
1202 tstDevEEPROM_SOURCES = \
1203 Network/testcase/tstDevEEPROM.cpp
1204 tstDevEEPROM_LIBS = \
1205 $(TARGET_DevicesR3)
1206 PROGRAMS += tstDevPhy
1207 tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
1208 tstDevPhy_SOURCES = \
1209 Network/testcase/tstDevPhy.cpp \
1210 Network/DevE1000Phy.cpp
1211 tstDevPhy_DEFS = PHY_UNIT_TEST
1212endif
1213endif
1214
1215include $(KBUILD_PATH)/subfooter.kmk
1216
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