VirtualBox

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

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

DrvNAT: Watch for DNS server changes on OS X and force a reconnect

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