VirtualBox

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

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

Devices/testcase: DEFS cleanup

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