VirtualBox

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

Last change on this file since 37519 was 37477, checked in by vboxsync, 14 years ago

DevAPIC: Split out the IO-APIC into a separate source file.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 32.3 KB
Line 
1# $Id: Makefile.kmk 37477 2011-06-15 17:18:33Z 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) && !defined(VBOX_WITH_EXTPACK_PUEL)
61 VBoxDDU_DEFS += VBOX_WITH_EHCI
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/VSCSISense.cpp \
74 Storage/VSCSI/VSCSISgBuf.cpp \
75 Storage/VSCSI/VSCSIIoReq.cpp \
76 build/VBoxDDUDeps.cpp
77 ifdef VBOX_WITH_USB
78 VBoxDDU_INCS.os2 += \
79 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
80 endif
81 VBoxDDU_LIBS = \
82 $(LIB_RUNTIME) \
83 $(PATH_LIB)/StorageLib$(VBOX_SUFF_LIB)
84 ifdef VBOX_WITH_USB
85 VBoxDDU_LIBS += \
86 $(PATH_LIB)/USBLib$(VBOX_SUFF_LIB)
87 VBoxDDU_LIBS.win += \
88 $(PATH_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB)
89 endif
90 ifeq ($(KBUILD_TARGET),l4)
91 VBoxDDU_LIBS += \
92 $(L4_LIBDIR)/libl4sys.p.a
93 endif
94 VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
95 ifdef VBOX_WITH_USB
96 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
97 VBoxDDU_LDFLAGS.darwin += -framework IOKit
98 endif
99 endif
100
101 VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
102 VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
103
104 #
105 # VBoxDDULnxHostR3 (Only needed for l4, currently for executing vditool on L4Linux.)
106 #
107 ifeq ($(KBUILD_TARGET),l4)
108 LIBRARIES += VBoxDDULnxHostR3
109 VBoxDDULnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
110 VBoxDDULnxHostR3_DEFS = IN_VBOXDDU
111 VBoxDDULnxHostR3_SOURCES = $(VBoxDDU_SOURCES)
112 endif
113
114 #
115 # VBoxDD (shared object)
116 #
117 VBoxDD_TEMPLATE = VBoxR3DllWarnNoPic
118 VBoxDD_SDKS.win = WINPSDK DXSDK W2K3DDK VBOX_NTDLL
119 VBoxDD_INCS = build
120 VBoxDD_SOURCES = \
121 build/VBoxDD.cpp
122 VBoxDD_DEFS = VBOX_ACPI
123 ifdef VBOX_WITH_USB
124 VBoxDD_DEFS += VBOX_WITH_USB
125 if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_EXTPACK_PUEL)
126 VBoxDD_DEFS += VBOX_WITH_EHCI
127 endif
128 endif
129 ifdef VBOX_WITH_VUSB
130 VBoxDD_DEFS += VBOX_WITH_VUSB
131 endif
132 ifdef VBOX_WITH_AHCI
133 VBoxDD_DEFS += VBOX_WITH_AHCI
134 endif
135 ifdef VBOX_WITH_INIP
136 VBoxDD_DEFS += VBOX_WITH_INIP
137 endif
138 ifdef VBOX_WITH_E1000
139 VBoxDD_DEFS += VBOX_WITH_E1000
140 endif
141 ifdef VBOX_WITH_VIRTIO
142 VBoxDD_DEFS += VBOX_WITH_VIRTIO
143 endif
144 ifdef VBOX_WITH_BUSLOGIC
145 VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
146 endif
147 ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
148 VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
149 endif
150 ifdef VBOX_WITH_SCSI
151 VBoxDD_DEFS += VBOX_WITH_SCSI
152 endif
153 ifdef VBOX_WITH_LSILOGIC
154 VBoxDD_DEFS += VBOX_WITH_LSILOGIC
155 endif
156 ifdef VBOX_WITH_EFI
157 VBoxDD_DEFS += VBOX_WITH_EFI
158 endif
159 ifdef VBOX_WITH_DRV_DISK_INTEGRITY
160 VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
161 endif
162 ifdef VBOX_WITH_UDPTUNNEL
163 VBoxDD_DEFS += VBOX_WITH_UDPTUNNEL
164 endif
165 ifdef VBOX_WITH_VDE
166 VBoxDD_DEFS += VBOX_WITH_VDE
167 endif
168 ifdef VBOX_WITH_PCI_PASSTHROUGH
169 VBoxDD_DEFS += VBOX_WITH_PCI_PASSTHROUGH
170 endif
171
172 VBoxDD_LIBS = \
173 $(PATH_LIB)/DevicesR3$(VBOX_SUFF_LIB) \
174 $(PATH_LIB)/Drivers$(VBOX_SUFF_LIB) \
175 $(PATH_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
176 $(LIB_VMM) \
177 $(LIB_RUNTIME)
178 ifeq ($(KBUILD_TARGET),win)
179 VBoxDD_LIBS += \
180 $(LIB_DDU) \
181 $(PATH_LIB)/VBoxDD2.lib \
182 $(PATH_SDK_DXSDK_LIB)/dxguid.lib
183 else
184 VBoxDD_LIBS += \
185 $(INSTARGET_VBoxDDU) \
186 $(INSTARGET_VBoxDD2)
187 endif
188 ifeq ($(KBUILD_TARGET),l4)
189 VBoxDD_LIBS += \
190 $(L4_LIBDIR)/libl4sys.p.a
191 endif
192
193 ifdef VBOX_WITH_HGSMI
194 VBoxDD_LIBS += \
195 $(PATH_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
196 endif
197
198 ifdef VBOX_WITH_NETFLT
199 VBoxDD_LIBS.win += $(PATH_LIB)/WinNetConfig.lib
200 endif
201
202 ifdef VBOX_WITH_EFI
203 VBoxDD_LIBS += $(PATH_LIB)/EfiThunkBin$(VBOX_SUFF_LIB)
204 endif
205
206 ifeq ($(KBUILD_TARGET),solaris)
207 VBoxDD_LIBS += adm
208 ifdef VBOX_WITH_SUID_WRAPPER
209 VBoxDD_LIBS += secdb
210 endif
211 ifdef VBOX_WITH_USB
212 VBoxDD_LIBS += aio
213 endif
214 endif
215
216 VBoxDD_LIBS.darwin += \
217 $(LIB_REM)
218
219 VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
220 -framework CoreAudio \
221 -framework AudioUnit \
222 -framework AudioToolbox \
223 -framework IOKit \
224 -framework Carbon \
225 -framework DiskArbitration
226 VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
227 VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined
228
229
230 #
231 # VBoxDD2 (shared object)
232 #
233 VBoxDD2_TEMPLATE = VBoxR3DllWarnNoPic
234 VBoxDD2_DEFS = IN_VBOXDD2
235 VBoxDD2_INCS := \
236 build \
237 $(PATH_SUB_CURRENT)
238 VBoxDD2_SOURCES = \
239 build/VBoxDD2.cpp \
240 PC/DevAPIC.cpp \
241 PC/DevIoApic.cpp \
242 PC/DevSMC.cpp \
243 PC/DevLPC.cpp
244 VBoxDD2_LIBS = \
245 $(PATH_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
246 $(PATH_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
247 $(if $(VBOX_WITH_PXE_ROM),$(PATH_LIB)/NetBiosBin$(VBOX_SUFF_LIB),) \
248 $(LIB_VMM) \
249 $(LIB_RUNTIME)
250 ifeq ($(KBUILD_TARGET),l4)
251 VBoxDD2_LIBS += \
252 $(L4_LIBDIR)/libl4sys.p.a
253 endif
254 VBoxDD2_LIBS.darwin += $(LIB_REM)
255 VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
256 VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
257 VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
258
259 ifdef VBOX_WITH_PXE_ROM
260 VBoxDD2_DEFS += VBOX_WITH_PXE_ROM
261 endif
262
263 #
264 # DevicesR3 (library)
265 #
266 DevicesR3_TEMPLATE = VBoxR3DllWarnNoPic
267 DevicesR3_SDKS.win = WINPSDK W2K3DDK
268 DevicesR3_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
269 DevicesR3_DEFS += \
270 VBOX_HGCM_HOST_CODE \
271 VBOX_WITH_HGCM \
272 $(if $(VBOX_BIOS_DMI_FALLBACK),VBOX_BIOS_DMI_FALLBACK,) \
273 $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH,)
274
275 DevicesR3_DEFS.linux += _GNU_SOURCE
276 DevicesR3_DEFS.l4 += _GNU_SOURCE
277
278 DevicesR3_INCS = \
279 build
280
281 DevicesR3_SOURCES = \
282 Input/DevPS2.cpp \
283 Input/UsbKbd.cpp \
284 Input/UsbMouse.cpp \
285 Bus/DevPCI.cpp \
286 Bus/DevPciIch9.cpp \
287 Bus/MsiCommon.cpp \
288 Bus/MsixCommon.cpp \
289 $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/DevPciRaw.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) && !defined(VBOX_WITH_EXTPACK_PUEL)
452 DevicesR3_DEFS += VBOX_WITH_EHCI
453 DevicesR3_SOURCES += \
454 USB/DevEHCI.cpp
455 endif
456 endif
457
458 ifdef VBOX_WITH_DTRACE_R3
459 DevicesR3_DEFS += VBOX_WITH_DTRACE
460 DevicesR3_INCS += $(DevicesR3_0_OUTDIR)
461 DevicesR3_INTERMEDIATES += $(DevicesR3_0_OUTDIR)/VBoxDD-dtrace.h
462 $$(DevicesR3_0_OUTDIR)/VBoxDD-dtrace.h: $(PATH_SUB_CURRENT)/build/VBoxDD-dtrace.d | $$(dir $$@)
463 dtrace -C -h -o $@ -s $<
464 endif
465
466 ifdef VBOX_WITH_DYNAMIC_DSDT
467 DevicesR3_CLEAN += $(DevicesR3_0_OUTDIR)/vboxdsl.hex
468 PC/ACPI/VBoxAcpi.cpp_DEPS = $(DevicesR3_0_OUTDIR)/vboxdsl.hex
469
470 $$(DevicesR3_0_OUTDIR)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
471 $(call MSG_TOOL,bin2c,DevicesR3,$<,$@)
472 $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
473
474 vboxdsl.hex:: $$(DevicesR3_0_OUTDIR)/vboxdsl.hex
475
476 else # !VBOX_WITH_DYNAMIC_DSDT
477 # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
478 DevicesR3_CLEAN += \
479 $(DevicesR3_0_OUTDIR)/vboxaml.hex \
480 $(DevicesR3_0_OUTDIR)/vboxaml.aml \
481 $(DevicesR3_0_OUTDIR)/vboxssdt-standard.hex \
482 $(DevicesR3_0_OUTDIR)/vboxssdt-standard.aml \
483 $(DevicesR3_0_OUTDIR)/vboxssdt-standard.aml.tmp \
484 $(DevicesR3_0_OUTDIR)/vboxssdt-cpuhotplug.hex \
485 $(DevicesR3_0_OUTDIR)/vboxssdt-cpuhotplug.aml \
486 $(DevicesR3_0_OUTDIR)/vboxssdt-cpuhotplug.aml.tmp \
487 $(DevicesR3_0_OUTDIR)/vboxssdt-cpuhotplug.aml.pre
488 PC/ACPI/VBoxAcpi.cpp_DEPS = \
489 $(DevicesR3_0_OUTDIR)/vboxaml.hex \
490 $(DevicesR3_0_OUTDIR)/vboxssdt-standard.hex \
491 $(DevicesR3_0_OUTDIR)/vboxssdt-cpuhotplug.hex
492
493 $$(DevicesR3_0_OUTDIR)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
494 $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
495 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
496
497 vboxaml.hex:: $$(DevicesR3_0_OUTDIR)/vboxaml.hex
498
499 $$(DevicesR3_0_OUTDIR)/vboxssdt-standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
500 $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
501 $(QUIET)$(RM) -f $@ [email protected]
502 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
503 $(QUIET)$(MV) -f $@ [email protected]
504 $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
505 --output $@ [email protected]
506 $(QUIET)$(RM) -f [email protected]
507
508
509 vboxssdt-standard.hex:: $$(DevicesR3_0_OUTDIR)/vboxssdt-standard.hex
510
511 $$(DevicesR3_0_OUTDIR)/vboxssdt-cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
512 $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
513 $(QUIET)$(RM) -f $@ [email protected] [email protected]
514 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o [email protected] $<
515 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ [email protected]
516 $(QUIET)$(MV) -f $@ [email protected]
517 $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
518 --output $@ [email protected]
519 $(QUIET)$(RM) -f [email protected] [email protected]
520
521
522 vboxssdt-cpuhotplug.hex:: $$(DevicesR3_0_OUTDIR)/vboxssdt-cpuhotplug.hex
523
524 endif # !VBOX_WITH_DYNAMIC_DSDT
525 PC/ACPI/VBoxAcpi.cpp_INCS = $(DevicesR3_0_OUTDIR)
526
527 # For finding PCIInternal.h from VBox/pci.h.
528 Bus/DevPCI.cpp_INCS = Bus
529 Bus/DevPciIch9.cpp_INCS = Bus
530 Bus/MsiCommon.cpp_INCS = Bus
531 Bus/MsixCommon.cpp_INCS = Bus
532 Bus/DevPciRaw.cpp_INCS = Bus
533
534 # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
535 Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR)
536 Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
537
538
539 ifdef VBOX_WITH_RAW_MODE
540 #
541 # VBoxDDGC (sysmod)
542 #
543 VBoxDDGC_TEMPLATE = VBoxRc
544 ifeq ($(KBUILD_TARGET_ARCH),x86)
545 VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
546 endif
547 VBoxDDGC_DEFS = VBOX_WITH_HGCM
548 VBoxDDGC_INCS = build
549 VBoxDDGC_SOURCES = \
550 Bus/DevPCI.cpp \
551 Bus/DevPciIch9.cpp \
552 Bus/MsiCommon.cpp \
553 Bus/MsixCommon.cpp \
554 Graphics/DevVGA.cpp \
555 Input/DevPS2.cpp \
556 PC/DevACPI.cpp \
557 PC/DevPit-i8254.cpp \
558 PC/DevPIC.cpp \
559 PC/DevRTC.cpp \
560 PC/DevHPET.cpp \
561 Storage/DevATA.cpp \
562 Network/DevPCNet.cpp \
563 Serial/DevSerial.cpp \
564 Parallel/DevParallel.cpp \
565 VMMDev/VMMDevTesting.cpp
566
567 ifdef VBOX_WITH_E1000
568 VBoxDDGC_DEFS += VBOX_WITH_E1000
569 VBoxDDGC_SOURCES += \
570 Network/DevE1000.cpp \
571 Network/DevE1000Phy.cpp
572 endif
573
574 ifdef VBOX_WITH_VIRTIO
575 VBoxDDGC_DEFS += VBOX_WITH_VIRTIO
576 VBoxDDGC_SOURCES += \
577 VirtIO/Virtio.cpp \
578 Network/DevVirtioNet.cpp
579 endif
580
581 ifdef VBOX_WITH_HGSMI
582 VBoxDDGC_DEFS += VBOX_WITH_HGSMI
583 endif
584 ifdef VBOX_WITH_WDDM
585 VBoxDDGC_DEFS += VBOX_WITH_WDDM
586 endif
587 ifdef VBOX_WITH_VDMA
588 VBoxDDGC_DEFS += VBOX_WITH_VDMA
589 endif
590 ifdef VBOX_WITH_CRHGSMI
591 VBoxDDGC_DEFS += VBOX_WITH_CRHGSMI
592 endif
593
594 ifdef VBOXWDDM_WITH_VBVA
595 VBoxDDGC_DEFS += VBOXWDDM_WITH_VBVA
596 endif
597
598 ifdef VBOX_WITH_VUSB
599 VBoxDDGC_DEFS += VBOX_WITH_VUSB
600 VBoxDDGC_SOURCES += \
601 USB/DevOHCI.cpp
602 endif
603
604 ifdef VBOX_WITH_USB
605 VBoxDDGC_DEFS += VBOX_WITH_USB
606 if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_EXTPACK_PUEL)
607 VBoxDDGC_DEFS += VBOX_WITH_EHCI
608 VBoxDDGC_SOURCES += \
609 USB/DevEHCI.cpp
610 endif
611 endif
612
613 ifdef VBOX_WITH_VIDEOHWACCEL
614 VBoxDDGC_DEFS += VBOX_WITH_VIDEOHWACCEL
615 endif
616
617 ifdef VBOX_WITH_AHCI
618 VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
619 VBoxDDGC_SOURCES += \
620 Storage/DevAHCI.cpp \
621 Storage/ATAController.cpp
622 endif
623
624 ifdef VBOX_WITH_BUSLOGIC
625 VBoxDDGC_DEFS += VBOX_WITH_BUSLOGIC
626 VBoxDDGC_SOURCES += \
627 Storage/DevBusLogic.cpp
628 endif
629
630 ifdef VBOX_WITH_LSILOGIC
631 VBoxDDGC_DEFS += VBOX_WITH_LSILOGIC
632 VBoxDDGC_SOURCES += \
633 Storage/DevLsiLogicSCSI.cpp
634 endif
635
636 if1of ($(VBOX_LDR_FMT32), pe lx)
637 VBoxDDGC_LIBS = \
638 $(PATH_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
639 $(PATH_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
640 endif
641 endif # VBOX_WITH_RAW_MODE
642
643
644 #
645 # VBoxDDR0 (sysmod)
646 #
647 VBoxDDR0_TEMPLATE = VBoxR0
648 VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
649 VBoxDDR0_DEFS = IN_RT_R0 VBOX_WITH_HGCM # - WTF is IN_RT_R0 doing here?
650 VBoxDDR0_INCS = build
651 VBoxDDR0_SOURCES = \
652 build/VBoxDDR0.cpp \
653 Bus/DevPCI.cpp \
654 Bus/DevPciIch9.cpp \
655 Bus/MsiCommon.cpp \
656 Bus/MsixCommon.cpp \
657 $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/DevPciRaw.cpp,) \
658 Graphics/DevVGA.cpp \
659 Input/DevPS2.cpp \
660 PC/DevACPI.cpp \
661 PC/DevPit-i8254.cpp \
662 PC/DevPIC.cpp \
663 PC/DevRTC.cpp \
664 PC/DevHPET.cpp \
665 Storage/DevATA.cpp \
666 Network/DevPCNet.cpp \
667 Serial/DevSerial.cpp \
668 Parallel/DevParallel.cpp \
669 VMMDev/VMMDevTesting.cpp \
670 \
671 Network/DrvIntNet.cpp \
672 Network/DrvDedicatedNic.cpp
673
674 ifdef VBOX_WITH_E1000
675 VBoxDDR0_DEFS += VBOX_WITH_E1000
676 VBoxDDR0_SOURCES += \
677 Network/DevE1000.cpp \
678 Network/DevE1000Phy.cpp
679 endif
680
681 ifdef VBOX_WITH_VIRTIO
682 VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
683 VBoxDDR0_SOURCES += \
684 VirtIO/Virtio.cpp \
685 Network/DevVirtioNet.cpp
686 endif
687
688 ifdef VBOX_WITH_HGSMI
689 VBoxDDR0_DEFS += VBOX_WITH_HGSMI
690 endif
691 ifdef VBOX_WITH_WDDM
692 VBoxDDR0_DEFS += VBOX_WITH_WDDM
693 endif
694 ifdef VBOX_WITH_VDMA
695 VBoxDDR0_DEFS += VBOX_WITH_VDMA
696 endif
697 ifdef VBOX_WITH_CRHGSMI
698 VBoxDDR0_DEFS += VBOX_WITH_CRHGSMI
699 endif
700 ifdef VBOXWDDM_WITH_VBVA
701 VBoxDDR0_DEFS += VBOXWDDM_WITH_VBVA
702 endif
703
704 ifdef VBOX_WITH_VUSB
705 VBoxDDR0_DEFS += VBOX_WITH_VUSB
706 VBoxDDR0_SOURCES += \
707 USB/DevOHCI.cpp
708 endif
709 ifdef VBOX_WITH_USB
710 VBoxDDR0_DEFS += VBOX_WITH_USB
711 if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_EXTPACK_PUEL)
712 VBoxDDR0_DEFS += VBOX_WITH_EHCI
713 VBoxDDR0_SOURCES += \
714 USB/DevEHCI.cpp
715 endif
716 endif
717
718 ifdef VBOX_WITH_AHCI
719 VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
720 VBoxDDR0_SOURCES += \
721 Storage/DevAHCI.cpp \
722 Storage/ATAController.cpp
723 endif
724
725 ifdef VBOX_WITH_BUSLOGIC
726 VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
727 VBoxDDR0_SOURCES += \
728 Storage/DevBusLogic.cpp
729 endif
730
731 ifdef VBOX_WITH_LSILOGIC
732 VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
733 VBoxDDR0_SOURCES += \
734 Storage/DevLsiLogicSCSI.cpp
735 endif
736
737 ifdef VBOX_WITH_HGSMI
738 VBoxDDR0_DEFS += VBOX_WITH_HGSMI
739 endif
740 ifdef VBOX_WITH_VIDEOHWACCEL
741 VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
742 endif
743
744 if1of ($(VBOX_LDR_FMT), pe lx)
745 VBoxDDR0_LIBS = \
746 $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
747 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
748 endif
749
750
751 ifdef VBOX_WITH_RAW_MODE
752 #
753 # VBoxDD2GC (LGPL sysmod)
754 #
755 VBoxDD2GC_TEMPLATE = VBoxRc
756 VBoxDD2GC_DEFS =
757 VBoxDD2GC_INCS = build
758 VBoxDD2GC_SOURCES = \
759 PC/DevAPIC.cpp \
760 PC/DevIoApic.cpp \
761 PC/DevSMC.cpp
762 if1of ($(VBOX_LDR_FMT32), pe lx)
763 VBoxDD2GC_LIBS = \
764 $(PATH_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
765 $(PATH_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
766 endif
767 endif
768
769 #
770 # VBoxDD2R0 (LGPL sysmod)
771 #
772 VBoxDD2R0_TEMPLATE = VBoxR0
773 VBoxDD2R0_DEFS = IN_RT_R0
774 VBoxDD2R0_INCS = build
775 VBoxDD2R0_SOURCES = \
776 build/VBoxDD2R0.cpp \
777 PC/DevAPIC.cpp \
778 PC/DevIoApic.cpp \
779 PC/DevSMC.cpp
780
781 if1of ($(VBOX_LDR_FMT), pe lx)
782 VBoxDD2R0_LIBS = \
783 $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
784 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
785 endif
786
787
788 #
789 # Drivers (library)
790 #
791 ifeq ($(KBUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
792 Drivers_TEMPLATE = VBOXR3NP
793 else
794 Drivers_TEMPLATE = VBoxR3DllWarnNoPic
795 endif
796 Drivers_SDKS.win = WINPSDK W2K3DDK
797 Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
798 Drivers_DEFS.win += _WIN32_WINNT=0x0510
799 Drivers_DEFS = \
800 IN_IDE_R3 \
801 $(if $(VBOX_WITH_NETFLT),VBOX_WITH_NETFLT,) \
802 $(if $(VBOX_WITH_INIP),VBOX_WITH_INIP,) \
803 $(if $(VBOX_WITH_DRV_DISK_INTEGRITY),VBOX_WITH_DRV_DISK_INTEGRITY,) \
804
805 Drivers_INCS := \
806 build \
807 Network/slirp
808 Drivers_SOURCES = \
809 Audio/audio.c \
810 Audio/audiosniffer.c \
811 Audio/mixeng.c \
812 Audio/noaudio.c \
813 Audio/filteraudio.c \
814 Input/DrvKeyboardQueue.cpp \
815 Input/DrvMouseQueue.cpp \
816 Network/DrvIntNet.cpp \
817 Network/DrvDedicatedNic.cpp \
818 PC/DrvACPI.cpp \
819 PC/DrvAcpiCpu.cpp \
820 Serial/DrvChar.cpp \
821 Serial/DrvNamedPipe.cpp \
822 Serial/DrvRawFile.cpp \
823 Storage/DrvBlock.cpp \
824 Storage/DrvHostBase.cpp \
825 Storage/DrvHostDVD.cpp \
826 Storage/DrvHostFloppy.cpp \
827 Storage/DrvMediaISO.cpp \
828 Storage/DrvRawImage.cpp \
829 Storage/Debug.cpp \
830 Storage/DrvVD.cpp \
831 Network/DrvNetSniffer.cpp \
832 Network/Pcap.cpp
833
834 VBOX_SLIRP_SOURCES = \
835 Network/DrvNAT.cpp \
836 Network/slirp/bootp.c \
837 Network/slirp/debug.c \
838 Network/slirp/ip_icmp.c \
839 Network/slirp/ip_input.c \
840 Network/slirp/ip_output.c \
841 Network/slirp/misc.c \
842 Network/slirp/sbuf.c \
843 Network/slirp/slirp.c \
844 Network/slirp/socket.c \
845 Network/slirp/tcp_input.c \
846 Network/slirp/tcp_output.c \
847 Network/slirp/tcp_subr.c \
848 Network/slirp/tcp_timer.c \
849 Network/slirp/udp.c \
850 Network/slirp/dnsproxy/hash.c \
851 Network/slirp/tftp.c \
852 Network/slirp/dnsproxy/dnsproxy.c
853
854 ifdef VBOX_WITH_SLIRP_BSD_SBUF
855 VBOX_SLIRP_SOURCES += Network/slirp/bsd/kern/subr_sbuf.c
856 endif
857
858 VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
859 VBOX_SLIRP_BSD_SOURCES += \
860 Network/slirp/bsd/kern/kern_mbuf.c \
861 Network/slirp/bsd/kern/uipc_mbuf.c \
862 Network/slirp/bsd/kern/uipc_mbuf2.c \
863 Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
864
865 VBOX_SLIRP_ALIAS_SOURCES = \
866 Network/slirp/libalias/alias.c \
867 Network/slirp/libalias/alias_db.c \
868 Network/slirp/libalias/alias_mod.c \
869 Network/slirp/libalias/alias_proxy.c \
870 Network/slirp/libalias/alias_ftp.c \
871 Network/slirp/libalias/alias_dns.c \
872 Network/slirp/libalias/alias_nbt.c \
873 Network/slirp/libalias/alias_util.c
874
875 # some day will be deleted
876
877 Drivers_SOURCES += $(VBOX_SLIRP_SOURCES)
878 define def_vbox_slirp_cflags
879 $(file)_DEFS += \
880 $(if $(VBOX_WITH_SLIRP_BSD_SBUF),VBOX_WITH_SLIRP_BSD_SBUF,) \
881 $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
882 $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
883 $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
884 $(file)_INCS += $(1)/slirp/bsd/sys
885 $(file)_INCS += $(1)/slirp/bsd/sys/sys
886 $(file)_INCS += $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include
887 $(file)_INCS += $(1)/slirp/bsd/netinet
888 $(file)_INCS += $(1)/slirp
889 $(file)_INCS += $(1)/slirp/libalias
890 ifeq ($(KBUILD_TARGET),win)
891 $(file)_CFLAGS = -wd4018
892 else
893 $(file)_CFLAGS += -Wno-sign-compare
894 $(file)_CFLAGS += -Wno-format
895 $(file)_CFLAGS += -Wno-bad-function-cast
896 endif
897 endef
898
899 $(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
900
901 Drivers_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
902 define def_vbox_slirp_alias_cflags
903 $(file)_DEFS += VBOX_SLIRP_ALIAS \
904 $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
905 $(file)_INCS += $(1)/slirp/libalias
906 $(file)_INCS += $(1)/slirp
907 $(file)_INCS += $(1)/slirp/dnsproxy
908 ifneq ($(KBUILD_TARGET),win)
909 $(file)_CFLAGS += -Wno-shadow
910 endif
911 endef
912 $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
913 $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
914
915 VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
916 Drivers_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
917 define def_vbox_slirp_bsd_cflags
918 $(file)_DEFS += VBOX_SLIRP_BSD
919 $(file)_INCS += $(1)/slirp/dnsproxy
920 endef
921 $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
922 $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
923
924 ifdef VBOX_WITH_DRV_DISK_INTEGRITY
925 Drivers_SOURCES += \
926 Storage/DrvDiskIntegrity.cpp
927 endif
928
929 ifdef VBOX_WITH_UDPTUNNEL
930 Drivers_SOURCES += \
931 Network/DrvUDPTunnel.cpp
932 Drivers_DEFS += VBOX_WITH_UDPTUNNEL
933 endif
934 ifdef VBOX_WITH_VDE
935 Drivers_SOURCES += \
936 Network/DrvVDE.cpp \
937 Network/VDEPlug.cpp
938 Drivers_DEFS += VBOX_WITH_VDE
939 endif
940
941 # -- OS specific --
942
943 ifeq ($(KBUILD_TARGET),darwin)
944 Drivers_SOURCES := $(filter-out \
945 Storage/DrvHostRaw% \
946 Storage/DrvHostFloppy% \
947 , $(Drivers_SOURCES)) \
948 Audio/coreaudio.c
949 Drivers_SOURCES.darwin = \
950 Serial/DrvHostSerial.cpp
951 endif # darwin
952
953 ifeq ($(KBUILD_TARGET),freebsd)
954 Drivers_SOURCES := $(filter-out \
955 Storage/DrvHostFloppy% \
956 , $(Drivers_SOURCES)) \
957 Audio/ossaudio.c \
958 Serial/DrvHostSerial.cpp
959 Drivers_SOURCES.freebsd = \
960 Network/DrvTAP.cpp
961 endif # freebsd
962
963
964 ifeq ($(KBUILD_TARGET),l4)
965 Drivers_SOURCES = \
966 Input/DrvMouseQueue.cpp \
967 Input/DrvKeyboardQueue.cpp \
968 Storage/DrvBlock.cpp \
969 Storage/DrvMediaISO.cpp \
970 Storage/DrvRawImage.cpp \
971 Storage/DrvHostBase.cpp \
972 Storage/DrvHostDVD.cpp \
973 Storage/DrvVD.cpp \
974 PC/DrvACPI.cpp \
975 Network/DrvIntNet.cpp \
976 Network/DHCPServerRunner.cpp \
977 Network/DrvNetSniffer.cpp \
978 Network/Pcap.cpp \
979 Audio/audio.c \
980 Audio/mixeng.c \
981 Audio/noaudio.c \
982 Audio/audiosniffer.c
983
984 Drivers_SOURCES.l4 = \
985 Audio/ossaudio.c
986 endif # l4
987
988 Drivers_SOURCES.linux = \
989 Network/DrvTAP.cpp \
990 Audio/ossaudio.c \
991 Parallel/DrvHostParallel.cpp \
992 Serial/DrvHostSerial.cpp
993
994 ifeq ($(KBUILD_TARGET),os2)
995 Drivers_SOURCES := $(filter-out \
996 Storage/DrvHost% \
997 , $(Drivers_SOURCES))
998 endif
999
1000 ifeq ($(KBUILD_TARGET),solaris)
1001 Drivers_SOURCES := $(filter-out \
1002 Storage/DrvHost% \
1003 , $(Drivers_SOURCES))
1004 Drivers_SOURCES.solaris = \
1005 Audio/solaudio.c \
1006 Storage/DrvHostBase.cpp \
1007 Storage/DrvHostDVD.cpp \
1008 Serial/DrvHostSerial.cpp
1009 ifdef VBOX_WITH_SOLARIS_OSS
1010 Drivers_SOURCES += Audio/ossaudio.c
1011 Drivers_DEFS += VBOX_WITH_SOLARIS_OSS
1012 endif
1013 ifdef VBOX_WITH_CROSSBOW
1014 Drivers_SOURCES += Network/solaris/vbox-libdlpi.cpp
1015 Drivers_DEFS += VBOX_WITH_CROSSBOW
1016 endif
1017 ifdef VBOX_WITH_SUID_WRAPPER
1018 Drivers_DEFS += VBOX_WITH_SUID_WRAPPER
1019 endif
1020 endif
1021
1022 Drivers_SOURCES.win = \
1023 Audio/dsoundaudio.c \
1024 Serial/DrvHostSerial.cpp
1025
1026 if defined(VBOX_WITH_NETFLT)
1027 if defined(VBOX_NETFLT_ONDEMAND_BIND)
1028 Drivers_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
1029 endif
1030 endif
1031
1032 # -- features --
1033
1034 ifdef VBOX_WITH_ISCSI
1035 Storage/DrvVD.cpp_INCS = \
1036 Network/lwip/src/include \
1037 Network/lwip/src/include/ipv4 \
1038 Network/lwip/vbox/include
1039 endif # VBOX_WITH_ISCSI
1040
1041 ifdef VBOX_WITH_ALSA
1042 Drivers_DEFS.linux += VBOX_WITH_ALSA
1043 Drivers_SOURCES.linux+= \
1044 Audio/alsaaudio.c \
1045 Audio/alsa_stubs.c
1046 endif
1047
1048 ifdef VBOX_WITH_PULSE
1049 Drivers_DEFS.linux += VBOX_WITH_PULSE
1050 Drivers_SOURCES.linux+= \
1051 Audio/pulseaudio.c \
1052 Audio/pulse_stubs.c
1053 Drivers_DEFS.freebsd += VBOX_WITH_PULSE
1054 Drivers_SOURCES.freebsd+= \
1055 Audio/pulseaudio.c \
1056 Audio/pulse_stubs.c
1057 endif
1058
1059 ifdef VBOX_WITH_VUSB
1060 Drivers_DEFS += VBOX_WITH_VUSB
1061 Drivers_SOURCES += \
1062 USB/DrvVUSBRootHub.cpp \
1063 USB/VUSBDevice.cpp \
1064 USB/VUSBReadAhead.cpp \
1065 USB/VUSBUrb.cpp
1066
1067 endif # VBOX_WITH_VUSB
1068
1069 ifdef VBOX_WITH_USB
1070 Drivers_DEFS += VBOX_WITH_USB
1071
1072 Drivers_SOURCES += \
1073 USB/vrdp/USBProxyDevice-vrdp.cpp
1074
1075 Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
1076 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
1077 Drivers_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
1078 endif
1079 Drivers_SOURCES.darwin += \
1080 USB/USBProxyDevice.cpp \
1081 USB/darwin/USBProxyDevice-darwin.cpp
1082
1083 Drivers_DEFS.linux += \
1084 VUSB_HAVE_USBPROXY_DEVICE \
1085 $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
1086 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
1087 Drivers_SOURCES.linux += \
1088 USB/USBProxyDevice.cpp \
1089 USB/linux/USBProxyDevice-linux.cpp
1090
1091 Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
1092 Drivers_SOURCES.l4 += \
1093 USB/USBProxyDevice.cpp \
1094 USB/linux/USBProxyDevice-linux.cpp
1095
1096 Drivers_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
1097 Drivers_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
1098 Drivers_SOURCES.os2 += \
1099 USB/USBProxyDevice.cpp \
1100 USB/os2/USBProxyDevice-os2.cpp
1101
1102 Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
1103 Drivers_SOURCES.win += \
1104 USB/USBProxyDevice.cpp \
1105 USB/win/USBProxyDevice-win.cpp
1106
1107 Drivers_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
1108 Drivers_SOURCES.solaris += \
1109 USB/USBProxyDevice.cpp \
1110 USB/solaris/USBProxyDevice-solaris.cpp
1111
1112 Drivers_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
1113 Drivers_SOURCES.freebsd += \
1114 USB/USBProxyDevice.cpp \
1115 USB/freebsd/USBProxyDevice-freebsd.cpp
1116
1117 ifdef VBOX_WITH_SCSI
1118 Drivers_SOURCES += \
1119 Storage/UsbMsd.cpp
1120 endif
1121
1122 endif # VBOX_WITH_USB
1123
1124 ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
1125 Drivers_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
1126 endif #VBOX_WITH_PDM_ASYNC_COMPLETION
1127
1128 ifdef VBOX_WITH_SCSI
1129 Drivers_DEFS += VBOX_WITH_SCSI
1130 Drivers_SOURCES += \
1131 Storage/DrvSCSI.cpp
1132 Drivers_SOURCES.linux += \
1133 Storage/DrvSCSIHost.cpp
1134 endif # VBOX_WITH_SCSI
1135
1136 #
1137 # Ring-0 Services (library, linked into VMMR0.r0)
1138 #
1139 ServicesR0_TEMPLATE = VBoxR0
1140 ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0 $(if $(VBOX_WITH_PCI_PASSTHROUGH),IN_PCIRAW_R0,)
1141 ServicesR0_SOURCES = \
1142 Network/SrvIntNetR0.cpp \
1143 $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
1144 Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
1145
1146 #
1147 # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
1148 #
1149 ifdef VBOX_WITH_TESTCASES
1150 PROGRAMS += tstIntNetR0
1151 tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
1152 tstIntNetR0_DEFS = IN_INTNET_R0
1153 tstIntNetR0_SOURCES = \
1154 Network/testcase/tstIntNetR0.cpp
1155 endif
1156
1157 #
1158 # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
1159 #
1160 ifdef VBOX_WITH_TESTCASES
1161 PROGRAMS += tstIntNet-1
1162 tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
1163 tstIntNet-1_SOURCES = \
1164 Network/testcase/tstIntNet-1.cpp \
1165 Network/Pcap.cpp
1166 endif
1167
1168
1169 #
1170 # EEPROM device unit test requires cppunit
1171 #
1172 ifdef VBOX_WITH_CPPUNIT_TESTCASES
1173 ifdef VBOX_WITH_E1000
1174 PROGRAMS += tstDevEEPROM
1175 tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
1176 tstDevEEPROM_SOURCES = \
1177 Network/testcase/tstDevEEPROM.cpp
1178 tstDevEEPROM_LIBS = \
1179 $(TARGET_DevicesR3)
1180 PROGRAMS += tstDevPhy
1181 tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
1182 tstDevPhy_SOURCES = \
1183 Network/testcase/tstDevPhy.cpp \
1184 Network/DevE1000Phy.cpp
1185 tstDevPhy_DEFS = PHY_UNIT_TEST
1186 endif
1187 endif
1188
1189endif # !VBOX_ONLY_EXTPACKS
1190
1191ifdef VBOX_WITH_EXTPACK_PUEL
1192 #
1193 # The EHCI (USB 2.0) Extension Pack Modules.
1194 #
1195 if defined(VBOX_WITH_USB)
1196 DLLS += VBoxEhciR3
1197 VBoxEhciR3_TEMPLATE = VBoxR3ExtPackPuel
1198 VBoxEhciR3_SOURCES = USB/DevEHCI.cpp
1199
1200 SYSMODS += VBoxEhciR0
1201 VBoxEhciR0_TEMPLATE = VBoxR0ExtPackPuel
1202 VBoxEhciR0_SOURCES = USB/DevEHCI.cpp
1203
1204 ifdef VBOX_WITH_RAW_MODE
1205 SYSMODS += VBoxEhciRC
1206 VBoxEhciRC_TEMPLATE = VBoxRcExtPackPuel
1207 VBoxEhciRC_SOURCES = USB/DevEHCI.cpp
1208 endif
1209 endif
1210
1211 #
1212 # The Intel PXE rom.
1213 #
1214 INSTALLS += VBoxExtPackPuelInsRoms
1215 VBoxExtPackPuelInsRoms_TEMPLATE = VBoxInsExtPackPuel
1216 VBoxExtPackPuelInsRoms_SOURCES = PC/PXE/PXE-Intel.rom=>PXE-Intel.rom
1217endif # VBOX_WITH_EXTPACK_PUEL
1218
1219include $(KBUILD_PATH)/subfooter.kmk
1220
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