VirtualBox

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

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

NAT: enables BSD MBUFS. (see xTracker 3993)

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