VirtualBox

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

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

PDM,UsbMsd,++: Resumed hacking the MSD code.

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