VirtualBox

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

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

Removed EFI/tools as it is no longer needed for OSE.

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