VirtualBox

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

Last change on this file since 7558 was 7551, checked in by vboxsync, 17 years ago

cosmetics.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 17.6 KB
Line 
1# $Id: Makefile.kmk 7551 2008-03-25 14:04:55Z 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
243 DevicesR3_DEFS += VBOX_WITH_E1000
244 DevicesR3_SOURCES += \
245 Network/DevE1000.cpp \
246 Network/DevE1000Phy.cpp \
247 Network/DevEEPROM.cpp
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_E1000
348 VBoxDDGC_DEFS += VBOX_WITH_E1000
349 VBoxDDGC_SOURCES += \
350 Network/DevE1000.cpp \
351 Network/DevE1000Phy.cpp \
352 Network/DevEEPROM.cpp
353endif
354
355ifdef VBOX_WITH_USB
356VBoxDDGC_DEFS += VBOX_WITH_USB IN_USB_GC
357VBoxDDGC_SOURCES += \
358 USB/DevOHCI.cpp
359
360 ifdef VBOX_WITH_EHCI
361 VBoxDDGC_DEFS += VBOX_WITH_EHCI
362 VBoxDDGC_SOURCES += \
363 USB/DevEHCI.cpp
364 endif
365
366endif
367
368ifdef VBOX_WITH_AHCI
369VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
370VBoxDDGC_SOURCES += \
371 Storage/DevAHCI.cpp \
372 Storage/ATAController.cpp
373endif
374
375ifeq ($(VBOX_LDR_FMT32),pe)
376VBoxDDGC_LDFLAGS = -Entry:vgaMMIOWrite
377endif
378ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
379VBoxDDGC_LIBS = \
380 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
381 $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
382endif
383
384
385#
386# VBoxDDR0 (sysmod)
387#
388VBoxDDR0_TEMPLATE = VBOXR0
389VBoxDDR0_SYSSUFF = .r0
390VBoxDDR0_DEFS = IN_RT_R0
391VBoxDDR0_INCS := \
392 $(PATH_SUB_CURRENT)
393VBoxDDR0_SOURCES = \
394 Bus/DevPCI.cpp \
395 Graphics/DevVGA.cpp \
396 Input/DevPS2.cpp \
397 PC/DevACPI.cpp \
398 PC/DevPit-i8254.cpp \
399 PC/DevPIC.cpp \
400 PC/DevRTC.cpp \
401 Storage/DevATA.cpp \
402 Network/DevPCNet.cpp \
403 Serial/DevSerial.cpp \
404 Parallel/DevParallel.cpp
405
406ifdef VBOX_WITH_E1000
407 VBoxDDR0_DEFS += VBOX_WITH_E1000
408 VBoxDDR0_SOURCES += \
409 Network/DevE1000.cpp \
410 Network/DevE1000Phy.cpp \
411 Network/DevEEPROM.cpp
412endif
413
414ifdef VBOX_WITH_USB
415VBoxDDR0_DEFS += VBOX_WITH_USB IN_USB_R0
416VBoxDDR0_SOURCES += \
417 USB/DevOHCI.cpp
418
419 ifdef VBOX_WITH_EHCI
420 VBoxDDR0_DEFS += VBOX_WITH_EHCI
421 VBoxDDR0_SOURCES += \
422 USB/DevEHCI.cpp
423 endif
424endif
425
426ifdef VBOX_WITH_AHCI
427VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
428VBoxDDR0_SOURCES += \
429 Storage/DevAHCI.cpp \
430 Storage/ATAController.cpp
431endif
432
433ifeq ($(VBOX_LDR_FMT32),pe)
434VBoxDDR0_LDFLAGS = -Entry:vgaMMIOWrite
435endif
436ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
437VBoxDDR0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
438endif
439VBoxDDR0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
440ifeq ($(VBOX_LDR_FMT32),elf) # this is template stuff!
441VBoxDDR0_LIBS += $(VBOX_GCC_LIBGCC)
442endif
443
444
445#
446# VBoxDD2GC (LGPL sysmod)
447#
448VBoxDD2GC_TEMPLATE = VBOXGC
449VBoxDD2GC_DEFS =
450VBoxDD2GC_SYSSUFF = .gc
451VBoxDD2GC_INCS := \
452 $(PATH_SUB_CURRENT)
453VBoxDD2GC_SOURCES = \
454 PC/DevAPIC.cpp
455ifeq ($(VBOX_LDR_FMT32),pe)
456VBoxDD2GC_LDFLAGS = -Entry:apicMMIOWrite
457endif
458ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
459VBoxDD2GC_LIBS = \
460 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
461 $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
462endif
463
464
465#
466# VBoxDD2R0 (LGPL sysmod)
467#
468VBoxDD2R0_TEMPLATE = VBOXR0
469VBoxDD2R0_DEFS = IN_RT_R0
470VBoxDD2R0_SYSSUFF = .r0
471VBoxDD2R0_INCS := \
472 $(PATH_SUB_CURRENT)
473VBoxDD2R0_SOURCES = \
474 PC/DevAPIC.cpp
475ifeq ($(VBOX_LDR_FMT),pe)
476VBoxDD2R0_LDFLAGS = -Entry:apicMMIOWrite
477endif
478ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
479VBoxDD2R0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
480endif
481VBoxDD2R0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
482ifeq ($(VBOX_LDR_FMT),elf)
483VBoxDD2R0_LIBS += $(VBOX_GCC_LIBGCC)
484endif
485
486
487#
488# Drivers (library)
489#
490ifeq ($(BUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
491Drivers_TEMPLATE = VBOXR3NP
492else
493Drivers_TEMPLATE = VBOXR3
494endif
495Drivers_SDKS.win = WINPSDK W2K3DDK
496Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
497Drivers_DEFS = IN_IDE_R3
498Drivers_DEFS.win += _WIN32_WINNT=0x0510
499Drivers_INCS := \
500 $(PATH_SUB_CURRENT) \
501 Network/slirp
502Drivers_SOURCES = \
503 Audio/audio.c \
504 Audio/audiosniffer.c \
505 Audio/mixeng.c \
506 Audio/noaudio.c \
507 Input/DrvKeyboardQueue.cpp \
508 Input/DrvMouseQueue.cpp \
509 Network/DrvIntNet.cpp \
510 Network/DrvNAT.cpp \
511 Network/DrvNetSniffer.cpp \
512 Network/slirp/bootp.c \
513 Network/slirp/cksum.c \
514 Network/slirp/debug.c \
515 Network/slirp/if.c \
516 Network/slirp/ip_icmp.c \
517 Network/slirp/ip_input.c \
518 Network/slirp/ip_output.c \
519 Network/slirp/mbuf.c \
520 Network/slirp/misc.c \
521 Network/slirp/sbuf.c \
522 Network/slirp/slirp.c \
523 Network/slirp/socket.c \
524 Network/slirp/tcp_input.c \
525 Network/slirp/tcp_output.c \
526 Network/slirp/tcp_subr.c \
527 Network/slirp/tcp_timer.c \
528 Network/slirp/tftp.c \
529 Network/slirp/udp.c \
530 PC/DrvACPI.cpp \
531 Serial/DrvChar.cpp \
532 Serial/DrvNamedPipe.cpp \
533 Storage/DrvBlock.cpp \
534 Storage/DrvHostBase.cpp \
535 Storage/DrvHostDVD.cpp \
536 Storage/DrvHostFloppy.cpp \
537 Storage/DrvMediaISO.cpp \
538 Storage/DrvRawImage.cpp \
539 Storage/DrvVD.cpp \
540 Storage/VBoxHDD.cpp
541
542# -- OS specific --
543
544ifeq ($(BUILD_TARGET),darwin)
545Drivers_SOURCES := $(filter-out \
546 Storage/DrvHostRaw% \
547 Storage/DrvHostFloppy% \
548 , $(Drivers_SOURCES)) \
549 Audio/coreaudio.c
550Drivers_SOURCES.darwin =
551endif # darwin
552
553ifeq ($(BUILD_TARGET),freebsd)
554Drivers_SOURCES := $(filter-out \
555 Storage/DrvHost% \
556 , $(Drivers_SOURCES))
557Drivers_SOURCES.freebsd =
558endif # freebsd
559
560
561ifeq ($(BUILD_TARGET),l4)
562Drivers_SOURCES = \
563 Input/DrvMouseQueue.cpp \
564 Input/DrvKeyboardQueue.cpp \
565 Storage/VBoxHDD.cpp \
566 Storage/DrvBlock.cpp \
567 Storage/DrvMediaISO.cpp \
568 Storage/DrvRawImage.cpp \
569 Storage/DrvHostBase.cpp \
570 Storage/DrvHostDVD.cpp \
571 Storage/DrvVD.cpp \
572 PC/DrvACPI.cpp \
573 Network/DrvIntNet.cpp \
574 Network/DrvNetSniffer.cpp \
575 Audio/audio.c \
576 Audio/mixeng.c \
577 Audio/noaudio.c \
578 Audio/audiosniffer.c
579
580Drivers_SOURCES.l4 = \
581 Network/DrvTAP.cpp \
582 Audio/ossaudio.c
583endif # l4
584
585Drivers_SOURCES.linux = \
586 Network/DrvTAP.cpp \
587 Audio/ossaudio.c \
588 Parallel/DrvHostParallel.cpp \
589 Serial/DrvHostSerial.cpp
590
591ifeq ($(BUILD_TARGET),os2)
592Drivers_SOURCES := $(filter-out \
593 Storage/DrvHost% \
594 , $(Drivers_SOURCES))
595Drivers_SOURCES.os2 = \
596 Network/DrvTAPOs2.cpp
597endif
598
599ifeq ($(BUILD_TARGET),solaris)
600Drivers_SOURCES := $(filter-out \
601 Storage/DrvHost% \
602 , $(Drivers_SOURCES))
603Drivers_SOURCES.solaris = \
604 Audio/solaudio.c \
605 Network/DrvTAP.cpp \
606 Storage/DrvHostBase.cpp \
607 Storage/DrvHostDVD.cpp
608 ifdef VBOX_WITH_CROSSBOW
609 Drivers_DEFS += VBOX_WITH_CROSSBOW
610 endif
611 ifdef VBOX_WITH_SUID_WRAPPER
612 Drivers_DEFS += VBOX_WITH_SUID_WRAPPER
613 endif
614endif
615
616Drivers_SOURCES.win = \
617 Network/DrvTAPWin32.cpp \
618 Audio/dsoundaudio.c \
619 Serial/DrvHostSerial.cpp
620
621
622# -- features --
623
624ifdef VBOX_WITH_ISCSI
625 Drivers_SOURCES += \
626 Storage/DrvISCSI.cpp \
627 Storage/DrvISCSITransportTCP.cpp
628 Drivers_DEFS += VBOX_WITH_ISCSI
629 Storage/DrvISCSITransportTCP.cpp_INCS = \
630 Network/lwip/src/include \
631 Network/lwip/src/include/ipv4 \
632 Network/lwip/vbox/include
633endif # VBOX_WITH_ISCSI
634
635ifdef VBOX_WITH_ALSA
636 Drivers_DEFS.linux += VBOX_WITH_ALSA
637 Drivers_SOURCES.linux+= \
638 Audio/alsaaudio.c \
639 Audio/alsa_stubs.c
640# VBoxDD_LIBS.linux += asound
641endif
642
643ifdef VBOX_WITH_PULSE
644 Drivers_DEFS.linux += VBOX_WITH_PULSE
645 Drivers_SOURCES.linux+= \
646 Audio/pulseaudio.c \
647 Audio/pulse_stubs.c
648# VBoxDD_LIBS.linux += pulse
649endif
650
651ifdef VBOX_WITH_USB
652 Drivers_DEFS += VBOX_WITH_USB IN_USB_R3
653 Drivers_SOURCES += \
654 USB/DrvVUSBRootHub.cpp \
655 USB/VUSBDevice.cpp \
656 USB/VUSBUrb.cpp
657 ifdef VBOX_WITH_VRDP
658 Drivers_DEFS += VBOX_VRDP
659 Drivers_SOURCES += \
660 USB/vrdp/USBProxyDevice-vrdp.cpp
661 endif
662
663 Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
664 #Drivers_DEFS.darwin += VBOX_WITH_USBFILTER
665 Drivers_SOURCES.darwin += \
666 USB/USBProxyDevice.cpp \
667 USB/darwin/USBProxyDevice-darwin.cpp
668
669 Drivers_DEFS.linux += VUSB_HAVE_USBPROXY_DEVICE
670 ifdef VBOX_WITHOUT_LINUX_COMPILER_H
671 Drivers_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
672 endif
673 Drivers_SOURCES.linux+= \
674 USB/USBProxyDevice.cpp \
675 USB/linux/USBProxyDevice-linux.cpp
676
677 Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
678 Drivers_SOURCES.l4 += \
679 USB/USBProxyDevice.cpp \
680 USB/linux/USBProxyDevice-linux.cpp
681
682 Drivers_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
683 Drivers_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
684 Drivers_SOURCES.os2 += \
685 USB/USBProxyDevice.cpp \
686 USB/os2/USBProxyDevice-os2.cpp
687
688 Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
689 Drivers_SOURCES.win += \
690 USB/USBProxyDevice.cpp \
691 USB/win32/USBProxyDevice-win32.cpp
692
693 Drivers_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
694 Drivers_SOURCES.solaris += \
695 USB/USBProxyDevice.cpp \
696 USB/USBProxyDevice-stub.cpp
697endif # VBOX_WITH_USB
698
699ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
700 Drivers_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
701 Drivers_SOURCES.linux += \
702 Storage/DrvRawImageAsync.cpp \
703 Storage/DrvTransportAsync.cpp
704
705 Drivers_SOURCES.win += \
706 Storage/DrvRawImageAsync.cpp \
707 Storage/DrvTransportAsync.cpp
708endif #VBOX_WITH_PDM_ASYNC_COMPLETION
709
710#
711# Ring-0 Services (library, linked into VMMR0.r0)
712#
713ServicesR0_TEMPLATE = VBOXR0
714ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
715ServicesR0_SOURCES = \
716 Network/SrvIntNetR0.cpp
717
718#
719# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
720#
721ifdef VBOX_WITH_TESTCASES
722 PROGRAMS += tstIntNetR0
723 tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
724 tstIntNetR0_DEFS = IN_INTNET_R0
725 tstIntNetR0_SOURCES = \
726 Network/testcase/tstIntNetR0.cpp
727endif
728
729#
730# EEPROM device unit test requires cppunit
731#
732ifdef VBOX_WITH_CPPUNIT_TESTCASES
733ifndef VBOX_OSE
734 PROGRAMS += tstDevEEPROM
735 tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
736 tstDevEEPROM_SOURCES = \
737 Network/testcase/tstDevEEPROM.cpp
738 tstDevEEPROM_LIBS = \
739 $(TARGET_DevicesR3)
740endif
741endif
742
743include $(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