1 | # $Id: Makefile.kmk 3651 2007-07-16 15:53:48Z 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 | # If you received this file as part of a commercial VirtualBox
|
---|
18 | # distribution, then only the terms of your commercial VirtualBox
|
---|
19 | # license agreement apply instead of the previous paragraph.
|
---|
20 | #
|
---|
21 |
|
---|
22 | DEPTH = ../../..
|
---|
23 | include $(PATH_KBUILD)/subheader.kmk
|
---|
24 |
|
---|
25 | # Include sub-makefiles.
|
---|
26 | include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
|
---|
27 | include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
|
---|
28 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
29 | include $(PATH_SUB_CURRENT)/Storage/testcase/Makefile.kmk
|
---|
30 |
|
---|
31 | # Subdirs with complex makefiles.
|
---|
32 | SUBDIRS_LIBRARIES = PC/Etherboot-src
|
---|
33 | SUBDIRS_CLEAN = PC/Etherboot-src
|
---|
34 |
|
---|
35 | #
|
---|
36 | # Main targets.
|
---|
37 | #
|
---|
38 | LIBRARIES += DevicesR3 Drivers ServicesR0
|
---|
39 | DLLS += VBoxDDU VBoxDD VBoxDD2
|
---|
40 | SYSMODS += VBoxDDGC VBoxDD2GC VBoxDDR0 VBoxDD2R0
|
---|
41 |
|
---|
42 |
|
---|
43 | ##
|
---|
44 | ## Enable the pdm lock (experimental).
|
---|
45 | ##
|
---|
46 | #DEFS += VBOX_WITH_PDM_LOCK
|
---|
47 |
|
---|
48 |
|
---|
49 | #
|
---|
50 | # VBoxDDU (shared object)
|
---|
51 | #
|
---|
52 | VBoxDDU_TEMPLATE = VBOXR3
|
---|
53 | VBoxDDU_DEFS = IN_VBOXDDU
|
---|
54 | ifdef VBOX_WITH_USB
|
---|
55 | VBoxDDU_DEFS.win = VBOX_WITH_USB
|
---|
56 | VBoxDDU_SDKS.win = WINPSDK W2K3DDK
|
---|
57 | VBoxDDU_SOURCES.win = \
|
---|
58 | USB/win32/USBLib-win32.cpp
|
---|
59 | else
|
---|
60 | VBoxDDU_SDKS.win = WINPSDK
|
---|
61 | endif
|
---|
62 | VBoxDDU_SOURCES = \
|
---|
63 | Storage/VBoxHDD-new.cpp \
|
---|
64 | Storage/VDICore.cpp \
|
---|
65 | Storage/VmdkHDDCore.cpp
|
---|
66 | VBoxDDU_LIBS = \
|
---|
67 | $(LIB_RUNTIME)
|
---|
68 | ifeq ($(BUILD_TARGET),l4)
|
---|
69 | VBoxDDU_LIBS += \
|
---|
70 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
71 | endif
|
---|
72 | VBoxDDU_LDFLAGS.darwin = -install_name @executable_path/VBoxDDU.dylib
|
---|
73 | VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
|
---|
74 | VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
75 |
|
---|
76 |
|
---|
77 | #
|
---|
78 | # VBoxDD (shared object)
|
---|
79 | #
|
---|
80 | VBoxDD_TEMPLATE = VBOXR3
|
---|
81 | VBoxDD_SDKS.win = WINPSDK DXSDK W2K3DDK VBOX_NTDLL
|
---|
82 | VBoxDD_SOURCES = \
|
---|
83 | Builtins.cpp
|
---|
84 | VBoxDD_DEFS = VBOX_ACPI
|
---|
85 | ifdef VBOX_WITH_USB
|
---|
86 | VBoxDD_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
87 | endif
|
---|
88 | ifdef VBOX_WITH_ISCSI
|
---|
89 | VBoxDD_DEFS += VBOX_WITH_ISCSI
|
---|
90 | endif
|
---|
91 | VBoxDD_LIBS = \
|
---|
92 | $(PATH_LIB)/DevicesR3$(VBOX_SUFF_LIB) \
|
---|
93 | $(PATH_LIB)/Drivers$(VBOX_SUFF_LIB) \
|
---|
94 | $(PATH_LIB)/PcDefBiosLogo$(VBOX_SUFF_LIB) \
|
---|
95 | $(LIB_VMM) \
|
---|
96 | $(LIB_RUNTIME)
|
---|
97 | ifeq ($(BUILD_TARGET),win)
|
---|
98 | VBoxDD_LIBS += \
|
---|
99 | $(PATH_LIB)/VBoxDDU.lib \
|
---|
100 | $(PATH_LIB)/VBoxDD2.lib \
|
---|
101 | $(PATH_SDK_DXSDK_LIB)/dxguid.lib
|
---|
102 | else
|
---|
103 | VBoxDD_LIBS += \
|
---|
104 | $(INSTARGET_VBoxDDU) \
|
---|
105 | $(INSTARGET_VBoxDD2)
|
---|
106 | endif
|
---|
107 | ifeq ($(BUILD_TARGET),l4)
|
---|
108 | VBoxDD_LIBS += \
|
---|
109 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
110 | endif
|
---|
111 | VBoxDD_LIBS.darwin = \
|
---|
112 | $(LIB_REM)
|
---|
113 | VBoxDD_LDFLAGS.darwin = -install_name @executable_path/VBoxDD.dylib \
|
---|
114 | -framework CoreAudio \
|
---|
115 | -framework IOKit \
|
---|
116 | -framework Carbon \
|
---|
117 | -framework DiskArbitration
|
---|
118 | VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
|
---|
119 | VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
120 |
|
---|
121 |
|
---|
122 | # damn, fix this.
|
---|
123 | ifeq ($(BUILD_TARGET),win)
|
---|
124 | $(PATH_LIB)/VBoxDD2.lib: $(PATH_BIN)/VBoxDD2.dll
|
---|
125 | $(PATH_LIB)/VBoxDDU.lib: $(PATH_BIN)/VBoxDDU.dll
|
---|
126 | endif
|
---|
127 |
|
---|
128 |
|
---|
129 | #
|
---|
130 | # VBoxDD2 (shared object)
|
---|
131 | #
|
---|
132 | VBoxDD2_TEMPLATE = VBOXR3
|
---|
133 | VBoxDD2_DEFS = IN_VBOXDD2
|
---|
134 | VBoxDD2_INCS := \
|
---|
135 | $(PATH_SUB_CURRENT)
|
---|
136 | VBoxDD2_SOURCES = \
|
---|
137 | Builtins2.cpp \
|
---|
138 | PC/DevAPIC.cpp
|
---|
139 | VBoxDD2_LIBS = \
|
---|
140 | $(PATH_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
141 | $(PATH_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
142 | $(PATH_LIB)/NetBiosBin$(VBOX_SUFF_LIB) \
|
---|
143 | $(LIB_VMM) \
|
---|
144 | $(LIB_RUNTIME)
|
---|
145 | ifeq ($(BUILD_TARGET),l4)
|
---|
146 | VBoxDD2_LIBS += \
|
---|
147 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
148 | endif
|
---|
149 | VBoxDD2_LIBS.darwin += $(LIB_REM)
|
---|
150 | VBoxDD2_LDFLAGS.darwin = -install_name @executable_path/VBoxDD2.dylib
|
---|
151 | VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
|
---|
152 | VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
153 |
|
---|
154 |
|
---|
155 | #
|
---|
156 | # DevicesR3 (library)
|
---|
157 | #
|
---|
158 | DevicesR3_TEMPLATE = VBOXR3
|
---|
159 | DevicesR3_SDKS.win = WINPSDK W2K3DDK
|
---|
160 | DevicesR3_INCS := \
|
---|
161 | $(PATH_SUB_CURRENT)
|
---|
162 | DevicesR3_SOURCES = \
|
---|
163 | Input/DevPS2.cpp \
|
---|
164 | Bus/DevPCI.cpp \
|
---|
165 | Graphics/DevVGA.cpp \
|
---|
166 | Storage/DevATA.cpp \
|
---|
167 | PC/DevPit-i8254.cpp \
|
---|
168 | PC/DevPIC.cpp \
|
---|
169 | PC/DevACPI.cpp \
|
---|
170 | PC/DevRTC.cpp \
|
---|
171 | PC/DevPcBios.cpp \
|
---|
172 | PC/DevPcArch.c \
|
---|
173 | VMMDev/VBoxDev.cpp \
|
---|
174 | VMMDev/VMMDevHGCM.cpp \
|
---|
175 | Network/DevPCNet.cpp \
|
---|
176 | Audio/DevIchAc97.cpp \
|
---|
177 | PC/DevDMA.cpp \
|
---|
178 | Storage/fdc.c \
|
---|
179 | Serial/DevSerial.cpp \
|
---|
180 | Parallel/DevParallel.cpp
|
---|
181 |
|
---|
182 | ifeq (0,1)
|
---|
183 | DevicesR3_SOURCES += \
|
---|
184 | Network/ne2000.c
|
---|
185 | endif
|
---|
186 |
|
---|
187 | ifdef VBOX_WITH_USB
|
---|
188 | DevicesR3_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
189 | DevicesR3_SOURCES += \
|
---|
190 | USB/DevOHCI.cpp
|
---|
191 | endif
|
---|
192 |
|
---|
193 | DevicesR3_DEFS += VBOX_HGCM
|
---|
194 | DevicesR3_DEFS.linux += _GNU_SOURCE
|
---|
195 | DevicesR3_DEFS.l4 += _GNU_SOURCE
|
---|
196 |
|
---|
197 | # DevACPI.cpp needs vboxaml.hex which we generate from PC/vbox.dsl.
|
---|
198 | DevicesR3_CLEAN += $(PATH_TARGET)/vboxaml.hex $(PATH_TARGET)/vboxaml.aml
|
---|
199 | PC/DevACPI.cpp_DEPS = $(PATH_TARGET)/vboxaml.hex
|
---|
200 | PC/DevACPI.cpp_INCS = $(PATH_TARGET)
|
---|
201 |
|
---|
202 | $(PATH_TARGET)/vboxaml.hex: PC/vbox.dsl
|
---|
203 | $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
|
---|
204 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
205 |
|
---|
206 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
207 | Bus/DevPCI.cpp_INCS = Bus
|
---|
208 |
|
---|
209 |
|
---|
210 |
|
---|
211 | #
|
---|
212 | # VBoxDDGC (sysmod)
|
---|
213 | #
|
---|
214 | VBoxDDGC_TEMPLATE = VBOXGC
|
---|
215 | VBoxDDGC_DEFS =
|
---|
216 | VBoxDDGC_SYSSUFF = .gc
|
---|
217 | VBoxDDGC_INCS := \
|
---|
218 | $(PATH_SUB_CURRENT)
|
---|
219 | VBoxDDGC_SOURCES = \
|
---|
220 | Bus/DevPCI.cpp \
|
---|
221 | Graphics/DevVGA.cpp \
|
---|
222 | Input/DevPS2.cpp \
|
---|
223 | PC/DevACPI.cpp \
|
---|
224 | PC/DevPit-i8254.cpp \
|
---|
225 | PC/DevPIC.cpp \
|
---|
226 | PC/DevRTC.cpp \
|
---|
227 | Storage/DevATA.cpp \
|
---|
228 | Network/DevPCNet.cpp \
|
---|
229 | Serial/DevSerial.cpp \
|
---|
230 | Parallel/DevParallel.cpp
|
---|
231 |
|
---|
232 | ifdef VBOX_WITH_USB
|
---|
233 | VBoxDDGC_DEFS += VBOX_WITH_USB IN_USB_GC
|
---|
234 | VBoxDDGC_SOURCES += \
|
---|
235 | USB/DevOHCI.cpp
|
---|
236 | endif
|
---|
237 |
|
---|
238 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
239 | VBoxDDGC_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
240 | endif
|
---|
241 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
242 | VBoxDDGC_LIBS = \
|
---|
243 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
244 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
245 | endif
|
---|
246 |
|
---|
247 |
|
---|
248 | #
|
---|
249 | # VBoxDDR0 (sysmod)
|
---|
250 | #
|
---|
251 | VBoxDDR0_TEMPLATE = VBOXR0
|
---|
252 | VBoxDDR0_SYSSUFF = .r0
|
---|
253 | VBoxDDR0_DEFS = IN_RT_R0
|
---|
254 | VBoxDDR0_INCS := \
|
---|
255 | $(PATH_SUB_CURRENT)
|
---|
256 | VBoxDDR0_SOURCES = \
|
---|
257 | Bus/DevPCI.cpp \
|
---|
258 | Graphics/DevVGA.cpp \
|
---|
259 | Input/DevPS2.cpp \
|
---|
260 | PC/DevACPI.cpp \
|
---|
261 | PC/DevPit-i8254.cpp \
|
---|
262 | PC/DevPIC.cpp \
|
---|
263 | PC/DevRTC.cpp \
|
---|
264 | Storage/DevATA.cpp \
|
---|
265 | Network/DevPCNet.cpp \
|
---|
266 | Serial/DevSerial.cpp \
|
---|
267 | Parallel/DevParallel.cpp
|
---|
268 |
|
---|
269 | ifdef VBOX_WITH_USB
|
---|
270 | VBoxDDR0_DEFS += VBOX_WITH_USB IN_USB_R0
|
---|
271 | VBoxDDR0_SOURCES += \
|
---|
272 | USB/DevOHCI.cpp
|
---|
273 | endif
|
---|
274 |
|
---|
275 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
276 | VBoxDDR0_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
277 | endif
|
---|
278 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
279 | VBoxDDR0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
280 | endif
|
---|
281 | VBoxDDR0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
282 | ifeq ($(VBOX_LDR_FMT32),elf) # this is template stuff!
|
---|
283 | VBoxDDR0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
284 | endif
|
---|
285 |
|
---|
286 |
|
---|
287 | #
|
---|
288 | # VBoxDD2GC (LGPL sysmod)
|
---|
289 | #
|
---|
290 | VBoxDD2GC_TEMPLATE = VBOXGC
|
---|
291 | VBoxDD2GC_DEFS =
|
---|
292 | VBoxDD2GC_SYSSUFF = .gc
|
---|
293 | VBoxDD2GC_INCS := \
|
---|
294 | $(PATH_SUB_CURRENT)
|
---|
295 | VBoxDD2GC_SOURCES = \
|
---|
296 | PC/DevAPIC.cpp
|
---|
297 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
298 | VBoxDD2GC_LDFLAGS = -Entry:apicMMIOWrite
|
---|
299 | endif
|
---|
300 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
301 | VBoxDD2GC_LIBS = \
|
---|
302 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
303 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
304 | endif
|
---|
305 |
|
---|
306 |
|
---|
307 | #
|
---|
308 | # VBoxDD2R0 (LGPL sysmod)
|
---|
309 | #
|
---|
310 | VBoxDD2R0_TEMPLATE = VBOXR0
|
---|
311 | VBoxDD2R0_DEFS = IN_RT_R0
|
---|
312 | VBoxDD2R0_SYSSUFF = .r0
|
---|
313 | VBoxDD2R0_INCS := \
|
---|
314 | $(PATH_SUB_CURRENT)
|
---|
315 | VBoxDD2R0_SOURCES = \
|
---|
316 | PC/DevAPIC.cpp
|
---|
317 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
318 | VBoxDD2R0_LDFLAGS = -Entry:apicMMIOWrite
|
---|
319 | endif
|
---|
320 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
321 | VBoxDD2R0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
322 | endif
|
---|
323 | VBoxDD2R0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
324 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
325 | VBoxDD2R0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
326 | endif
|
---|
327 |
|
---|
328 |
|
---|
329 | #
|
---|
330 | # Drivers (library)
|
---|
331 | #
|
---|
332 | ifeq ($(BUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
|
---|
333 | Drivers_TEMPLATE = VBOXR3NP
|
---|
334 | else
|
---|
335 | Drivers_TEMPLATE = VBOXR3
|
---|
336 | endif
|
---|
337 | Drivers_SDKS.win = WINPSDK W2K3DDK
|
---|
338 | Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
|
---|
339 | Drivers_DEFS = IN_IDE_R3
|
---|
340 | Drivers_DEFS.win.x86 += _WIN32_WINNT=0x0500
|
---|
341 | Drivers_DEFS.win.amd64 += _WIN32_WINNT=0x0510
|
---|
342 | Drivers_INCS := \
|
---|
343 | $(PATH_SUB_CURRENT) \
|
---|
344 | Network/slirp
|
---|
345 | Drivers_SOURCES = \
|
---|
346 | Audio/audio.c \
|
---|
347 | Audio/audiosniffer.c \
|
---|
348 | Audio/mixeng.c \
|
---|
349 | Audio/noaudio.c \
|
---|
350 | Input/DrvKeyboardQueue.cpp \
|
---|
351 | Input/DrvMouseQueue.cpp \
|
---|
352 | Network/DrvIntNet.cpp \
|
---|
353 | Network/DrvNAT.cpp \
|
---|
354 | Network/DrvNetSniffer.cpp \
|
---|
355 | Network/slirp/bootp.c \
|
---|
356 | Network/slirp/cksum.c \
|
---|
357 | Network/slirp/debug.c \
|
---|
358 | Network/slirp/if.c \
|
---|
359 | Network/slirp/ip_icmp.c \
|
---|
360 | Network/slirp/ip_input.c \
|
---|
361 | Network/slirp/ip_output.c \
|
---|
362 | Network/slirp/mbuf.c \
|
---|
363 | Network/slirp/misc.c \
|
---|
364 | Network/slirp/sbuf.c \
|
---|
365 | Network/slirp/slirp.c \
|
---|
366 | Network/slirp/socket.c \
|
---|
367 | Network/slirp/tcp_input.c \
|
---|
368 | Network/slirp/tcp_output.c \
|
---|
369 | Network/slirp/tcp_subr.c \
|
---|
370 | Network/slirp/tcp_timer.c \
|
---|
371 | Network/slirp/tftp.c \
|
---|
372 | Network/slirp/udp.c \
|
---|
373 | PC/DrvACPI.cpp \
|
---|
374 | Serial/DrvChar.cpp \
|
---|
375 | Serial/DrvNamedPipe.cpp \
|
---|
376 | Storage/DrvBlock.cpp \
|
---|
377 | Storage/DrvHostBase.cpp \
|
---|
378 | Storage/DrvHostDVD.cpp \
|
---|
379 | Storage/DrvHostFloppy.cpp \
|
---|
380 | Storage/DrvHostRawDisk.cpp \
|
---|
381 | Storage/DrvMediaISO.cpp \
|
---|
382 | Storage/DrvRawImage.cpp \
|
---|
383 | Storage/DrvVD.cpp \
|
---|
384 | Storage/DrvVmdk.cpp \
|
---|
385 | Storage/VBoxHDD.cpp
|
---|
386 |
|
---|
387 | # -- OS specific --
|
---|
388 |
|
---|
389 | ifeq ($(BUILD_TARGET),darwin)
|
---|
390 | Drivers_SOURCES := $(filter-out \
|
---|
391 | Storage/DrvHostRaw% \
|
---|
392 | Storage/DrvHostFloppy% \
|
---|
393 | , $(Drivers_SOURCES)) \
|
---|
394 | Audio/coreaudio.c
|
---|
395 | Drivers_SOURCES.darwin =
|
---|
396 | endif # darwin
|
---|
397 |
|
---|
398 | ifeq ($(BUILD_TARGET),freebsd)
|
---|
399 | Drivers_SOURCES := $(filter-out \
|
---|
400 | Storage/DrvHost% \
|
---|
401 | , $(Drivers_SOURCES))
|
---|
402 | Drivers_SOURCES.freebsd =
|
---|
403 | endif # freebsd
|
---|
404 |
|
---|
405 |
|
---|
406 | ifeq ($(BUILD_TARGET),l4)
|
---|
407 | Drivers_SOURCES = \
|
---|
408 | Input/DrvMouseQueue.cpp \
|
---|
409 | Input/DrvKeyboardQueue.cpp \
|
---|
410 | Storage/VBoxHDD.cpp \
|
---|
411 | Storage/DrvBlock.cpp \
|
---|
412 | Storage/DrvMediaISO.cpp \
|
---|
413 | Storage/DrvRawImage.cpp \
|
---|
414 | Storage/DrvHostBase.cpp \
|
---|
415 | Storage/DrvHostDVD.cpp \
|
---|
416 | Storage/DrvVD.cpp \
|
---|
417 | PC/DrvACPI.cpp \
|
---|
418 | Network/DrvIntNet.cpp \
|
---|
419 | Network/DrvNetSniffer.cpp \
|
---|
420 | Audio/audio.c \
|
---|
421 | Audio/mixeng.c \
|
---|
422 | Audio/noaudio.c \
|
---|
423 | Audio/audiosniffer.c
|
---|
424 |
|
---|
425 | Drivers_SOURCES.l4 = \
|
---|
426 | Network/DrvTAP.cpp \
|
---|
427 | Audio/ossaudio.c
|
---|
428 | endif # l4
|
---|
429 |
|
---|
430 | Drivers_SOURCES.linux = \
|
---|
431 | Network/DrvTAP.cpp \
|
---|
432 | Audio/ossaudio.c \
|
---|
433 | Parallel/DrvHostParallel.cpp
|
---|
434 |
|
---|
435 | ifeq ($(BUILD_TARGET),os2)
|
---|
436 | Drivers_SOURCES := $(filter-out \
|
---|
437 | Storage/DrvHost% \
|
---|
438 | , $(Drivers_SOURCES))
|
---|
439 | Drivers_SOURCES.os2 =
|
---|
440 | endif
|
---|
441 |
|
---|
442 | Drivers_SOURCES.win = \
|
---|
443 | Network/DrvTAPWin32.cpp \
|
---|
444 | Audio/dsoundaudio.c
|
---|
445 |
|
---|
446 |
|
---|
447 | # -- features --
|
---|
448 |
|
---|
449 | ifdef VBOX_WITH_ISCSI
|
---|
450 | Drivers_SOURCES += \
|
---|
451 | Storage/DrvISCSI.cpp \
|
---|
452 | Storage/DrvISCSITransportTCP.cpp
|
---|
453 | Drivers_DEFS += VBOX_WITH_ISCSI
|
---|
454 | endif # VBOX_WITH_ISCSI
|
---|
455 |
|
---|
456 | ifdef VBOX_WITH_ALSA
|
---|
457 | Drivers_DEFS.linux += VBOX_WITH_ALSA
|
---|
458 | Drivers_SOURCES.linux+= \
|
---|
459 | Audio/alsaaudio.c
|
---|
460 | VBoxDD_LIBS.linux += asound
|
---|
461 | endif
|
---|
462 |
|
---|
463 | ifdef VBOX_WITH_USB
|
---|
464 | Drivers_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
465 | Drivers_SOURCES += \
|
---|
466 | USB/DrvVUSBRootHub.cpp \
|
---|
467 | USB/VUSBDevice.cpp \
|
---|
468 | USB/VUSBUrb.cpp
|
---|
469 | ifdef VBOX_WITH_VRDP
|
---|
470 | Drivers_DEFS += VBOX_VRDP
|
---|
471 | Drivers_SOURCES += \
|
---|
472 | USB/vrdp/USBProxyDevice-vrdp.cpp
|
---|
473 | endif
|
---|
474 |
|
---|
475 | Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
476 | Drivers_SOURCES.darwin += \
|
---|
477 | USB/USBProxyDevice.cpp \
|
---|
478 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
479 |
|
---|
480 | Drivers_DEFS.linux += VUSB_HAVE_USBPROXY_DEVICE
|
---|
481 | ifdef VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
482 | Drivers_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
483 | endif
|
---|
484 | Drivers_SOURCES.linux+= \
|
---|
485 | USB/USBProxyDevice.cpp \
|
---|
486 | USB/linux/USBProxyDevice-linux.cpp
|
---|
487 |
|
---|
488 | Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
489 | Drivers_SOURCES.l4 += \
|
---|
490 | USB/USBProxyDevice.cpp \
|
---|
491 | USB/linux/USBProxyDevice-linux.cpp
|
---|
492 |
|
---|
493 | Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
494 | Drivers_SOURCES.win += \
|
---|
495 | USB/USBProxyDevice.cpp \
|
---|
496 | USB/win32/USBProxyDevice-win32.cpp
|
---|
497 | endif # VBOX_WITH_USB
|
---|
498 |
|
---|
499 |
|
---|
500 |
|
---|
501 | #
|
---|
502 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
503 | #
|
---|
504 | ServicesR0_TEMPLATE = VBOXR0
|
---|
505 | ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
|
---|
506 | ServicesR0_SOURCES = \
|
---|
507 | Network/SrvIntNetR0.cpp
|
---|
508 |
|
---|
509 | #
|
---|
510 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
511 | #
|
---|
512 | ifdef VBOX_WITH_TESTCASES
|
---|
513 | PROGRAMS += tstIntNetR0
|
---|
514 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
515 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
516 | tstIntNetR0_SOURCES = \
|
---|
517 | Network/testcase/tstIntNetR0.cpp
|
---|
518 | tstIntNetR0_LIBS = \
|
---|
519 | $(LIB_RUNTIME)
|
---|
520 | endif
|
---|
521 |
|
---|
522 |
|
---|
523 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
524 |
|
---|