VirtualBox

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

Last change on this file since 7188 was 7159, checked in by vboxsync, 17 years ago

Added VBoxHDD-new VDI backend. Untested, but harmless as the code won't be used without further changes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 17.3 KB
Line 
1# $Id: Makefile.kmk 7159 2008-02-26 18:20:08Z vboxsync $
2## @file
3# Top-level makefile for the devices, drivers and services.
4#
5
6#
7# Copyright (C) 2006-2007 innotek GmbH
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
18DEPTH = ../../..
19include $(PATH_KBUILD)/subheader.kmk
20
21# Include sub-makefiles.
22include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
23include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
24include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
25include $(PATH_SUB_CURRENT)/Storage/testcase/Makefile.kmk
26
27# Subdirs with complex makefiles.
28ifdef VBOX_WITH_INTEL_PXE
29SUBDIRS_LIBRARIES = PC/PXE
30SUBDIRS_CLEAN = PC/PXE
31else
32SUBDIRS_LIBRARIES = PC/Etherboot-src
33SUBDIRS_CLEAN = PC/Etherboot-src
34endif
35
36ifndef VBOX_OSE
37SUBDIRS_LIBRARIES += Storage/VBoxHDDFormats
38SUBDIRS_CLEAN += Storage/VBoxHDDFormats
39endif
40
41#
42# Main targets.
43#
44LIBRARIES += DevicesR3 Drivers ServicesR0
45DLLS += VBoxDDU VBoxDD VBoxDD2
46SYSMODS += VBoxDDGC VBoxDD2GC VBoxDDR0 VBoxDD2R0
47
48
49#
50# Enable the pdm lock (experimental).
51#
52ifdef VBOX_WITH_PDM_LOCK
53 DEFS += VBOX_WITH_PDM_LOCK
54endif
55
56
57#
58# VBoxDDU (shared object)
59#
60VBoxDDU_TEMPLATE = VBOXR3
61VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
62VBoxDDU_DEFS = IN_VBOXDDU
63ifdef VBOX_WITH_USB
64 VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
65 VBoxDDU_SDKS.win = WINPSDK W2K3DDK
66 ifdef VBOX_WITH_EHCI
67 VBoxDDU_DEFS += VBOX_WITH_EHCI
68 endif
69else
70 VBoxDDU_SDKS.win = WINPSDK
71endif
72VBoxDDU_SOURCES = \
73 Storage/VBoxHDD-new.cpp \
74 Storage/VDICore.cpp \
75 Storage/VDIHDDCore.cpp \
76 Storage/VmdkHDDCore.cpp \
77 VBoxDDUDeps.cpp
78ifndef VBOX_OSE
79VBoxDDU_SOURCES += \
80 Storage/VHDHDDCore.cpp
81endif
82ifdef VBOX_WITH_USB
83 VBoxDDU_SOURCES.win = \
84 USB/win32/USBLib-win32.cpp
85 VBoxDDU_INCS.os2 += \
86 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
87endif
88VBoxDDU_LIBS = \
89 $(LIB_RUNTIME)
90ifdef VBOX_WITH_USB
91 VBoxDDU_LIBS += \
92 $(PATH_LIB)/USBLib$(VBOX_SUFF_LIB)
93endif
94ifeq ($(BUILD_TARGET),l4)
95 VBoxDDU_LIBS += \
96 $(L4_LIBDIR)/libl4sys.p.a
97endif
98VBoxDDU_LDFLAGS.darwin = -install_name @executable_path/VBoxDDU.dylib
99VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
100VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
101
102#
103# VBoxDDULnxHostR3 (Only needed for l4, currently for executing vditool on L4Linux.)
104#
105ifeq ($(BUILD_TARGET),l4)
106 LIBRARIES += VBoxDDULnxHostR3
107 VBoxDDULnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
108 VBoxDDULnxHostR3_DEFS = IN_VBOXDDU
109 VBoxDDULnxHostR3_SOURCES = $(VBoxDDU_SOURCES)
110endif
111
112#
113# VBoxDD (shared object)
114#
115VBoxDD_TEMPLATE = VBOXR3
116VBoxDD_SDKS.win = WINPSDK DXSDK W2K3DDK VBOX_NTDLL
117VBoxDD_SOURCES = \
118 Builtins.cpp
119VBoxDD_DEFS = VBOX_ACPI
120ifdef VBOX_WITH_USB
121 VBoxDD_DEFS += VBOX_WITH_USB IN_USB_R3
122 ifdef VBOX_WITH_EHCI
123 VBoxDD_DEFS += VBOX_WITH_EHCI
124 endif
125endif
126ifdef VBOX_WITH_AHCI
127 VBoxDD_DEFS += VBOX_WITH_AHCI
128endif
129ifdef VBOX_WITH_ISCSI
130 VBoxDD_DEFS += VBOX_WITH_ISCSI
131endif
132ifdef VBOX_WITH_E1000
133 VBoxDD_DEFS += VBOX_WITH_E1000
134endif
135ifndef VBOX_OSE
136 VBoxDD_DEFS += VBOX_WITH_INIP
137endif
138ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
139 VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
140endif
141VBoxDD_LIBS = \
142 $(PATH_LIB)/DevicesR3$(VBOX_SUFF_LIB) \
143 $(PATH_LIB)/Drivers$(VBOX_SUFF_LIB) \
144 $(PATH_LIB)/PcDefBiosLogo$(VBOX_SUFF_LIB) \
145 $(LIB_VMM) \
146 $(LIB_RUNTIME)
147ifeq ($(BUILD_TARGET),win)
148 VBoxDD_LIBS += \
149 $(LIB_DDU) \
150 $(PATH_LIB)/VBoxDD2.lib \
151 $(PATH_SDK_DXSDK_LIB)/dxguid.lib
152else
153 VBoxDD_LIBS += \
154 $(INSTARGET_VBoxDDU) \
155 $(INSTARGET_VBoxDD2)
156endif
157ifeq ($(BUILD_TARGET),l4)
158 VBoxDD_LIBS += \
159 $(L4_LIBDIR)/libl4sys.p.a
160endif
161ifeq ($(BUILD_TARGET),solaris)
162 VBoxDD_LIBS += adm
163 ifdef VBOX_WITH_CROSSBOW
164 VBoxDD_LIBS += dlpi
165 endif
166 ifdef VBOX_WITH_SUID_WRAPPER
167 VBoxDD_LIBS += secdb
168 endif
169endif
170VBoxDD_LIBS.darwin += \
171 $(LIB_REM)
172VBoxDD_LDFLAGS.darwin = -install_name @executable_path/VBoxDD.dylib \
173 -framework CoreAudio \
174 -framework IOKit \
175 -framework Carbon \
176 -framework DiskArbitration
177VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
178VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined
179
180
181# damn, fix this.
182ifeq ($(BUILD_TARGET),win)
183$(PATH_LIB)/VBoxDD2.lib: $(PATH_BIN)/VBoxDD2.dll
184$(PATH_LIB)/VBoxDDU.lib: $(PATH_BIN)/VBoxDDU.dll
185endif
186
187
188#
189# VBoxDD2 (shared object)
190#
191VBoxDD2_TEMPLATE = VBOXR3
192VBoxDD2_DEFS = IN_VBOXDD2
193VBoxDD2_INCS := \
194 $(PATH_SUB_CURRENT)
195VBoxDD2_SOURCES = \
196 Builtins2.cpp \
197 PC/DevAPIC.cpp
198VBoxDD2_LIBS = \
199 $(PATH_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
200 $(PATH_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
201 $(PATH_LIB)/NetBiosBin$(VBOX_SUFF_LIB) \
202 $(LIB_VMM) \
203 $(LIB_RUNTIME)
204ifeq ($(BUILD_TARGET),l4)
205VBoxDD2_LIBS += \
206 $(L4_LIBDIR)/libl4sys.p.a
207endif
208VBoxDD2_LIBS.darwin += $(LIB_REM)
209VBoxDD2_LDFLAGS.darwin = -install_name @executable_path/VBoxDD2.dylib
210VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
211VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
212
213
214#
215# DevicesR3 (library)
216#
217DevicesR3_TEMPLATE = VBOXR3
218DevicesR3_SDKS.win = WINPSDK W2K3DDK
219DevicesR3_INCS := \
220 $(PATH_SUB_CURRENT)
221DevicesR3_SOURCES = \
222 Input/DevPS2.cpp \
223 Bus/DevPCI.cpp \
224 Graphics/DevVGA.cpp \
225 Storage/DevATA.cpp \
226 PC/DevPit-i8254.cpp \
227 PC/DevPIC.cpp \
228 PC/DevACPI.cpp \
229 PC/DevRTC.cpp \
230 PC/DevPcBios.cpp \
231 PC/DevPcArch.c \
232 VMMDev/VBoxDev.cpp \
233 VMMDev/VMMDevHGCM.cpp \
234 Network/DevPCNet.cpp \
235 Audio/DevIchAc97.cpp \
236 Audio/DevSB16.cpp \
237 PC/DevDMA.cpp \
238 Storage/fdc.c \
239 Serial/DevSerial.cpp \
240 Parallel/DevParallel.cpp
241
242ifdef VBOX_WITH_E1000
243DevicesR3_SOURCES += \
244 Network/DevE1000.cpp \
245 Network/DevE1000Phy.cpp \
246 Network/DevEEPROM.cpp
247DevicesR3_DEFS += VBOX_WITH_E1000
248endif
249
250ifndef VBOX_OSE
251DevicesR3_INCS += \
252 Network/lwip/src/include \
253 Network/lwip/src/include/ipv4 \
254 Network/lwip/vbox/include
255DevicesR3_SOURCES += \
256 Network/lwip/src/api/api_lib.c \
257 Network/lwip/src/api/api_msg.c \
258 Network/lwip/src/api/err.c \
259 Network/lwip/src/api/sockets.c \
260 Network/lwip/src/api/tcpip.c \
261 Network/lwip/src/core/tcp_in.c \
262 Network/lwip/src/core/dhcp.c \
263 Network/lwip/src/core/inet.c \
264 Network/lwip/src/core/mem.c \
265 Network/lwip/src/core/memp.c \
266 Network/lwip/src/core/netif.c \
267 Network/lwip/src/core/pbuf.c \
268 Network/lwip/src/core/raw.c \
269 Network/lwip/src/core/stats.c \
270 Network/lwip/src/core/sys.c \
271 Network/lwip/src/core/tcp.c \
272 Network/lwip/src/core/ipv4/ip_addr.c \
273 Network/lwip/src/core/ipv4/icmp.c \
274 Network/lwip/src/core/ipv4/ip.c \
275 Network/lwip/src/core/ipv4/ip_frag.c \
276 Network/lwip/src/core/tcp_out.c \
277 Network/lwip/src/core/udp.c \
278 Network/lwip/src/netif/etharp.c \
279 Network/lwip/vbox/sys_arch.c \
280 Network/DevINIP.cpp
281DevicesR3_DEFS += VBOX_WITH_INIP
282endif
283
284ifdef VBOX_WITH_AHCI
285DevicesR3_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
286DevicesR3_SOURCES += \
287 Storage/DevAHCI.cpp \
288 Storage/ATAController.cpp
289endif
290
291ifdef VBOX_WITH_USB
292DevicesR3_DEFS += VBOX_WITH_USB IN_USB_R3
293
294DevicesR3_SOURCES += \
295 USB/DevOHCI.cpp
296
297 ifdef VBOX_WITH_EHCI
298 DevicesR3_DEFS += VBOX_WITH_EHCI
299 DevicesR3_SOURCES += \
300 USB/DevEHCI.cpp
301 endif
302
303endif
304
305DevicesR3_DEFS += VBOX_HGCM
306DevicesR3_DEFS.linux += _GNU_SOURCE
307DevicesR3_DEFS.l4 += _GNU_SOURCE
308
309# DevACPI.cpp needs vboxaml.hex which we generate from PC/vbox.dsl.
310DevicesR3_CLEAN += $(PATH_TARGET)/vboxaml.hex $(PATH_TARGET)/vboxaml.aml
311PC/DevACPI.cpp_DEPS = $(PATH_TARGET)/vboxaml.hex
312PC/DevACPI.cpp_INCS = $(PATH_TARGET)
313
314$(PATH_TARGET)/vboxaml.hex: PC/vbox.dsl
315 $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
316 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
317
318# For finding PCIInternal.h from VBox/pci.h.
319Bus/DevPCI.cpp_INCS = Bus
320
321# for finding vbetables.h
322Graphics/DevVGA.cpp_INCS = $(PATH_TARGET)
323
324
325
326#
327# VBoxDDGC (sysmod)
328#
329VBoxDDGC_TEMPLATE = VBOXGC
330VBoxDDGC_DEFS =
331VBoxDDGC_SYSSUFF = .gc
332VBoxDDGC_INCS := \
333 $(PATH_SUB_CURRENT)
334VBoxDDGC_SOURCES = \
335 Bus/DevPCI.cpp \
336 Graphics/DevVGA.cpp \
337 Input/DevPS2.cpp \
338 PC/DevACPI.cpp \
339 PC/DevPit-i8254.cpp \
340 PC/DevPIC.cpp \
341 PC/DevRTC.cpp \
342 Storage/DevATA.cpp \
343 Network/DevPCNet.cpp \
344 Serial/DevSerial.cpp \
345 Parallel/DevParallel.cpp
346
347ifdef VBOX_WITH_USB
348VBoxDDGC_DEFS += VBOX_WITH_USB IN_USB_GC
349VBoxDDGC_SOURCES += \
350 USB/DevOHCI.cpp
351
352 ifdef VBOX_WITH_EHCI
353 VBoxDDGC_DEFS += VBOX_WITH_EHCI
354 VBoxDDGC_SOURCES += \
355 USB/DevEHCI.cpp
356 endif
357
358endif
359
360ifdef VBOX_WITH_AHCI
361VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
362VBoxDDGC_SOURCES += \
363 Storage/DevAHCI.cpp \
364 Storage/ATAController.cpp
365endif
366
367ifeq ($(VBOX_LDR_FMT32),pe)
368VBoxDDGC_LDFLAGS = -Entry:vgaMMIOWrite
369endif
370ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
371VBoxDDGC_LIBS = \
372 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
373 $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
374endif
375
376
377#
378# VBoxDDR0 (sysmod)
379#
380VBoxDDR0_TEMPLATE = VBOXR0
381VBoxDDR0_SYSSUFF = .r0
382VBoxDDR0_DEFS = IN_RT_R0
383VBoxDDR0_INCS := \
384 $(PATH_SUB_CURRENT)
385VBoxDDR0_SOURCES = \
386 Bus/DevPCI.cpp \
387 Graphics/DevVGA.cpp \
388 Input/DevPS2.cpp \
389 PC/DevACPI.cpp \
390 PC/DevPit-i8254.cpp \
391 PC/DevPIC.cpp \
392 PC/DevRTC.cpp \
393 Storage/DevATA.cpp \
394 Network/DevPCNet.cpp \
395 Serial/DevSerial.cpp \
396 Parallel/DevParallel.cpp
397
398ifdef VBOX_WITH_USB
399VBoxDDR0_DEFS += VBOX_WITH_USB IN_USB_R0
400VBoxDDR0_SOURCES += \
401 USB/DevOHCI.cpp
402
403 ifdef VBOX_WITH_EHCI
404 VBoxDDR0_DEFS += VBOX_WITH_EHCI
405 VBoxDDR0_SOURCES += \
406 USB/DevEHCI.cpp
407 endif
408endif
409
410ifdef VBOX_WITH_AHCI
411VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
412VBoxDDR0_SOURCES += \
413 Storage/DevAHCI.cpp \
414 Storage/ATAController.cpp
415endif
416
417ifeq ($(VBOX_LDR_FMT32),pe)
418VBoxDDR0_LDFLAGS = -Entry:vgaMMIOWrite
419endif
420ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
421VBoxDDR0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
422endif
423VBoxDDR0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
424ifeq ($(VBOX_LDR_FMT32),elf) # this is template stuff!
425VBoxDDR0_LIBS += $(VBOX_GCC_LIBGCC)
426endif
427
428
429#
430# VBoxDD2GC (LGPL sysmod)
431#
432VBoxDD2GC_TEMPLATE = VBOXGC
433VBoxDD2GC_DEFS =
434VBoxDD2GC_SYSSUFF = .gc
435VBoxDD2GC_INCS := \
436 $(PATH_SUB_CURRENT)
437VBoxDD2GC_SOURCES = \
438 PC/DevAPIC.cpp
439ifeq ($(VBOX_LDR_FMT32),pe)
440VBoxDD2GC_LDFLAGS = -Entry:apicMMIOWrite
441endif
442ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
443VBoxDD2GC_LIBS = \
444 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
445 $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
446endif
447
448
449#
450# VBoxDD2R0 (LGPL sysmod)
451#
452VBoxDD2R0_TEMPLATE = VBOXR0
453VBoxDD2R0_DEFS = IN_RT_R0
454VBoxDD2R0_SYSSUFF = .r0
455VBoxDD2R0_INCS := \
456 $(PATH_SUB_CURRENT)
457VBoxDD2R0_SOURCES = \
458 PC/DevAPIC.cpp
459ifeq ($(VBOX_LDR_FMT),pe)
460VBoxDD2R0_LDFLAGS = -Entry:apicMMIOWrite
461endif
462ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
463VBoxDD2R0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
464endif
465VBoxDD2R0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
466ifeq ($(VBOX_LDR_FMT),elf)
467VBoxDD2R0_LIBS += $(VBOX_GCC_LIBGCC)
468endif
469
470
471#
472# Drivers (library)
473#
474ifeq ($(BUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
475Drivers_TEMPLATE = VBOXR3NP
476else
477Drivers_TEMPLATE = VBOXR3
478endif
479Drivers_SDKS.win = WINPSDK W2K3DDK
480Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
481Drivers_DEFS = IN_IDE_R3
482Drivers_DEFS.win += _WIN32_WINNT=0x0510
483Drivers_INCS := \
484 $(PATH_SUB_CURRENT) \
485 Network/slirp
486Drivers_SOURCES = \
487 Audio/audio.c \
488 Audio/audiosniffer.c \
489 Audio/mixeng.c \
490 Audio/noaudio.c \
491 Input/DrvKeyboardQueue.cpp \
492 Input/DrvMouseQueue.cpp \
493 Network/DrvIntNet.cpp \
494 Network/DrvNAT.cpp \
495 Network/DrvNetSniffer.cpp \
496 Network/slirp/bootp.c \
497 Network/slirp/cksum.c \
498 Network/slirp/debug.c \
499 Network/slirp/if.c \
500 Network/slirp/ip_icmp.c \
501 Network/slirp/ip_input.c \
502 Network/slirp/ip_output.c \
503 Network/slirp/mbuf.c \
504 Network/slirp/misc.c \
505 Network/slirp/sbuf.c \
506 Network/slirp/slirp.c \
507 Network/slirp/socket.c \
508 Network/slirp/tcp_input.c \
509 Network/slirp/tcp_output.c \
510 Network/slirp/tcp_subr.c \
511 Network/slirp/tcp_timer.c \
512 Network/slirp/tftp.c \
513 Network/slirp/udp.c \
514 PC/DrvACPI.cpp \
515 Serial/DrvChar.cpp \
516 Serial/DrvNamedPipe.cpp \
517 Storage/DrvBlock.cpp \
518 Storage/DrvHostBase.cpp \
519 Storage/DrvHostDVD.cpp \
520 Storage/DrvHostFloppy.cpp \
521 Storage/DrvMediaISO.cpp \
522 Storage/DrvRawImage.cpp \
523 Storage/DrvVD.cpp \
524 Storage/VBoxHDD.cpp
525
526# -- OS specific --
527
528ifeq ($(BUILD_TARGET),darwin)
529Drivers_SOURCES := $(filter-out \
530 Storage/DrvHostRaw% \
531 Storage/DrvHostFloppy% \
532 , $(Drivers_SOURCES)) \
533 Audio/coreaudio.c
534Drivers_SOURCES.darwin =
535endif # darwin
536
537ifeq ($(BUILD_TARGET),freebsd)
538Drivers_SOURCES := $(filter-out \
539 Storage/DrvHost% \
540 , $(Drivers_SOURCES))
541Drivers_SOURCES.freebsd =
542endif # freebsd
543
544
545ifeq ($(BUILD_TARGET),l4)
546Drivers_SOURCES = \
547 Input/DrvMouseQueue.cpp \
548 Input/DrvKeyboardQueue.cpp \
549 Storage/VBoxHDD.cpp \
550 Storage/DrvBlock.cpp \
551 Storage/DrvMediaISO.cpp \
552 Storage/DrvRawImage.cpp \
553 Storage/DrvHostBase.cpp \
554 Storage/DrvHostDVD.cpp \
555 Storage/DrvVD.cpp \
556 PC/DrvACPI.cpp \
557 Network/DrvIntNet.cpp \
558 Network/DrvNetSniffer.cpp \
559 Audio/audio.c \
560 Audio/mixeng.c \
561 Audio/noaudio.c \
562 Audio/audiosniffer.c
563
564Drivers_SOURCES.l4 = \
565 Network/DrvTAP.cpp \
566 Audio/ossaudio.c
567endif # l4
568
569Drivers_SOURCES.linux = \
570 Network/DrvTAP.cpp \
571 Audio/ossaudio.c \
572 Parallel/DrvHostParallel.cpp \
573 Serial/DrvHostSerial.cpp
574
575ifeq ($(BUILD_TARGET),os2)
576Drivers_SOURCES := $(filter-out \
577 Storage/DrvHost% \
578 , $(Drivers_SOURCES))
579Drivers_SOURCES.os2 = \
580 Network/DrvTAPOs2.cpp
581endif
582
583ifeq ($(BUILD_TARGET),solaris)
584Drivers_SOURCES := $(filter-out \
585 Storage/DrvHost% \
586 , $(Drivers_SOURCES))
587Drivers_SOURCES.solaris = \
588 Audio/solaudio.c \
589 Network/DrvTAP.cpp \
590 Storage/DrvHostBase.cpp \
591 Storage/DrvHostDVD.cpp
592 ifdef VBOX_WITH_CROSSBOW
593 Drivers_DEFS += VBOX_WITH_CROSSBOW
594 endif
595 ifdef VBOX_WITH_SUID_WRAPPER
596 Drivers_DEFS += VBOX_WITH_SUID_WRAPPER
597 endif
598endif
599
600Drivers_SOURCES.win = \
601 Network/DrvTAPWin32.cpp \
602 Audio/dsoundaudio.c \
603 Serial/DrvHostSerial.cpp
604
605
606# -- features --
607
608ifdef VBOX_WITH_ISCSI
609 Drivers_SOURCES += \
610 Storage/DrvISCSI.cpp \
611 Storage/DrvISCSITransportTCP.cpp
612 Drivers_DEFS += VBOX_WITH_ISCSI
613 Storage/DrvISCSITransportTCP.cpp_INCS = \
614 Network/lwip/src/include \
615 Network/lwip/src/include/ipv4 \
616 Network/lwip/vbox/include
617endif # VBOX_WITH_ISCSI
618
619ifdef VBOX_WITH_ALSA
620 Drivers_DEFS.linux += VBOX_WITH_ALSA
621 Drivers_SOURCES.linux+= \
622 Audio/alsaaudio.c \
623 Audio/alsa_stubs.c
624# VBoxDD_LIBS.linux += asound
625endif
626
627ifdef VBOX_WITH_PULSE
628 Drivers_DEFS.linux += VBOX_WITH_PULSE
629 Drivers_SOURCES.linux+= \
630 Audio/pulseaudio.c \
631 Audio/pulse_stubs.c
632# VBoxDD_LIBS.linux += pulse
633endif
634
635ifdef VBOX_WITH_USB
636 Drivers_DEFS += VBOX_WITH_USB IN_USB_R3
637 Drivers_SOURCES += \
638 USB/DrvVUSBRootHub.cpp \
639 USB/VUSBDevice.cpp \
640 USB/VUSBUrb.cpp
641 ifdef VBOX_WITH_VRDP
642 Drivers_DEFS += VBOX_VRDP
643 Drivers_SOURCES += \
644 USB/vrdp/USBProxyDevice-vrdp.cpp
645 endif
646
647 Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
648 #Drivers_DEFS.darwin += VBOX_WITH_USBFILTER
649 Drivers_SOURCES.darwin += \
650 USB/USBProxyDevice.cpp \
651 USB/darwin/USBProxyDevice-darwin.cpp
652
653 Drivers_DEFS.linux += VUSB_HAVE_USBPROXY_DEVICE
654 ifdef VBOX_WITHOUT_LINUX_COMPILER_H
655 Drivers_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
656 endif
657 Drivers_SOURCES.linux+= \
658 USB/USBProxyDevice.cpp \
659 USB/linux/USBProxyDevice-linux.cpp
660
661 Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
662 Drivers_SOURCES.l4 += \
663 USB/USBProxyDevice.cpp \
664 USB/linux/USBProxyDevice-linux.cpp
665
666 Drivers_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
667 Drivers_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
668 Drivers_SOURCES.os2 += \
669 USB/USBProxyDevice.cpp \
670 USB/os2/USBProxyDevice-os2.cpp
671
672 Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
673 Drivers_SOURCES.win += \
674 USB/USBProxyDevice.cpp \
675 USB/win32/USBProxyDevice-win32.cpp
676
677 Drivers_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
678 Drivers_SOURCES.solaris += \
679 USB/USBProxyDevice.cpp \
680 USB/USBProxyDevice-stub.cpp
681endif # VBOX_WITH_USB
682
683ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
684 Drivers_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
685 Drivers_SOURCES.linux += \
686 Storage/DrvRawImageAsync.cpp \
687 Storage/DrvTransportAsync.cpp
688
689 Drivers_SOURCES.win += \
690 Storage/DrvRawImageAsync.cpp \
691 Storage/DrvTransportAsync.cpp
692endif #VBOX_WITH_PDM_ASYNC_COMPLETION
693
694#
695# Ring-0 Services (library, linked into VMMR0.r0)
696#
697ServicesR0_TEMPLATE = VBOXR0
698ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
699ServicesR0_SOURCES = \
700 Network/SrvIntNetR0.cpp
701
702#
703# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
704#
705ifdef VBOX_WITH_TESTCASES
706 PROGRAMS += tstIntNetR0
707 tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
708 tstIntNetR0_DEFS = IN_INTNET_R0
709 tstIntNetR0_SOURCES = \
710 Network/testcase/tstIntNetR0.cpp
711endif
712
713#
714# EEPROM device unit test requires cppunit
715#
716ifdef VBOX_WITH_CPPUNIT_TESTCASES
717ifndef VBOX_OSE
718 PROGRAMS += tstDevEEPROM
719 tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
720 tstDevEEPROM_SOURCES = \
721 Network/testcase/tstDevEEPROM.cpp
722 tstDevEEPROM_LIBS = \
723 $(TARGET_DevicesR3)
724endif
725endif
726
727include $(PATH_KBUILD)/subfooter.kmk
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