VirtualBox

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

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

NAT: VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER=1

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