VirtualBox

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

Last change on this file since 45907 was 44824, checked in by vboxsync, 12 years ago

Network-service for lwip-driven proxy.
additionally enables SrvNat trunk type for Nat services.
Note: all changes disabled by default.

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