VirtualBox

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

Last change on this file since 49983 was 49983, checked in by vboxsync, 11 years ago

Devices/Graphics: VMware SVGA II compatible graphics emulation (2D only), including the associated small API and VBoxManage changes, contributed by trivirt AG.

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