VirtualBox

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

Last change on this file since 7729 was 7654, checked in by vboxsync, 17 years ago

Implement raw file backend for VBoxHDD-new.

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