VirtualBox

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

Last change on this file since 37423 was 37228, checked in by vboxsync, 14 years ago

SUPDrv,VMM,VBoxDD*: Implemented native loading of the angnostic modules on solaris (disabled by default).

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