VirtualBox

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

Last change on this file since 9917 was 9865, checked in by vboxsync, 17 years ago

Solaris USB: enabled ProxyDev, and some cleanups.

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