VirtualBox

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

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

wddm/3d: chromium hgsmi, host part + guest part debugging

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