VirtualBox

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

Last change on this file since 40638 was 40638, checked in by vboxsync, 13 years ago

Devices/Makefile.kmk: whitespace cleanup

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