VirtualBox

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

Last change on this file since 5881 was 5849, checked in by vboxsync, 17 years ago

New device: internal network IP stack, based on lwIP.

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