VirtualBox

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

Last change on this file since 8140 was 7872, checked in by vboxsync, 17 years ago

enable e1k structure member size tests again

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