VirtualBox

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

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

NAT: logs too noisy.

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