1 | # $Id: Makefile.kmk 2981 2007-06-01 16:01:28Z 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 |
|
---|
181 | ifeq (0,1)
|
---|
182 | DevicesR3_SOURCES += \
|
---|
183 | Network/ne2000.c
|
---|
184 | endif
|
---|
185 |
|
---|
186 | ifdef VBOX_WITH_USB
|
---|
187 | DevicesR3_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
188 | DevicesR3_SOURCES += \
|
---|
189 | USB/DevOHCI.cpp
|
---|
190 | endif
|
---|
191 |
|
---|
192 | DevicesR3_DEFS += VBOX_HGCM
|
---|
193 | DevicesR3_DEFS.linux += _GNU_SOURCE
|
---|
194 | DevicesR3_DEFS.l4 += _GNU_SOURCE
|
---|
195 |
|
---|
196 | # DevACPI.cpp needs vboxaml.hex which we generate from PC/vbox.dsl.
|
---|
197 | DevicesR3_CLEAN += $(PATH_TARGET)/vboxaml.hex $(PATH_TARGET)/vboxaml.aml
|
---|
198 | PC/DevACPI.cpp_DEPS = $(PATH_TARGET)/vboxaml.hex
|
---|
199 | PC/DevACPI.cpp_INCS = $(PATH_TARGET)
|
---|
200 |
|
---|
201 | $(PATH_TARGET)/vboxaml.hex: PC/vbox.dsl
|
---|
202 | $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
|
---|
203 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
204 |
|
---|
205 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
206 | Bus/DevPCI.cpp_INCS = Bus
|
---|
207 |
|
---|
208 |
|
---|
209 |
|
---|
210 | #
|
---|
211 | # VBoxDDGC (sysmod)
|
---|
212 | #
|
---|
213 | VBoxDDGC_TEMPLATE = VBOXGC
|
---|
214 | VBoxDDGC_DEFS =
|
---|
215 | VBoxDDGC_SYSSUFF = .gc
|
---|
216 | VBoxDDGC_INCS := \
|
---|
217 | $(PATH_SUB_CURRENT)
|
---|
218 | VBoxDDGC_SOURCES = \
|
---|
219 | Bus/DevPCI.cpp \
|
---|
220 | Graphics/DevVGA.cpp \
|
---|
221 | Input/DevPS2.cpp \
|
---|
222 | PC/DevACPI.cpp \
|
---|
223 | PC/DevPit-i8254.cpp \
|
---|
224 | PC/DevPIC.cpp \
|
---|
225 | PC/DevRTC.cpp \
|
---|
226 | Storage/DevATA.cpp \
|
---|
227 | Network/DevPCNet.cpp \
|
---|
228 | Serial/DevSerial.cpp
|
---|
229 |
|
---|
230 | ifdef VBOX_WITH_USB
|
---|
231 | VBoxDDGC_DEFS += VBOX_WITH_USB IN_USB_GC
|
---|
232 | VBoxDDGC_SOURCES += \
|
---|
233 | USB/DevOHCI.cpp
|
---|
234 | endif
|
---|
235 |
|
---|
236 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
237 | VBoxDDGC_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
238 | endif
|
---|
239 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
240 | VBoxDDGC_LIBS = \
|
---|
241 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
242 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
243 | endif
|
---|
244 |
|
---|
245 |
|
---|
246 | #
|
---|
247 | # VBoxDDR0 (sysmod)
|
---|
248 | #
|
---|
249 | VBoxDDR0_TEMPLATE = VBOXR0
|
---|
250 | VBoxDDR0_SYSSUFF = .r0
|
---|
251 | VBoxDDR0_DEFS = IN_RT_R0
|
---|
252 | VBoxDDR0_INCS := \
|
---|
253 | $(PATH_SUB_CURRENT)
|
---|
254 | VBoxDDR0_SOURCES = \
|
---|
255 | Bus/DevPCI.cpp \
|
---|
256 | Graphics/DevVGA.cpp \
|
---|
257 | Input/DevPS2.cpp \
|
---|
258 | PC/DevACPI.cpp \
|
---|
259 | PC/DevPit-i8254.cpp \
|
---|
260 | PC/DevPIC.cpp \
|
---|
261 | PC/DevRTC.cpp \
|
---|
262 | Storage/DevATA.cpp \
|
---|
263 | Network/DevPCNet.cpp \
|
---|
264 | Serial/DevSerial.cpp
|
---|
265 |
|
---|
266 | ifdef VBOX_WITH_USB
|
---|
267 | VBoxDDR0_DEFS += VBOX_WITH_USB IN_USB_R0
|
---|
268 | VBoxDDR0_SOURCES += \
|
---|
269 | USB/DevOHCI.cpp
|
---|
270 | endif
|
---|
271 |
|
---|
272 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
273 | VBoxDDR0_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
274 | endif
|
---|
275 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
276 | VBoxDDR0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
277 | endif
|
---|
278 | VBoxDDR0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
279 | ifeq ($(VBOX_LDR_FMT32),elf) # this is template stuff!
|
---|
280 | VBoxDDR0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
281 | endif
|
---|
282 |
|
---|
283 |
|
---|
284 | #
|
---|
285 | # VBoxDD2GC (LGPL sysmod)
|
---|
286 | #
|
---|
287 | VBoxDD2GC_TEMPLATE = VBOXGC
|
---|
288 | VBoxDD2GC_DEFS =
|
---|
289 | VBoxDD2GC_SYSSUFF = .gc
|
---|
290 | VBoxDD2GC_INCS := \
|
---|
291 | $(PATH_SUB_CURRENT)
|
---|
292 | VBoxDD2GC_SOURCES = \
|
---|
293 | PC/DevAPIC.cpp
|
---|
294 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
295 | VBoxDD2GC_LDFLAGS = -Entry:apicMMIOWrite
|
---|
296 | endif
|
---|
297 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
298 | VBoxDD2GC_LIBS = \
|
---|
299 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
300 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
301 | endif
|
---|
302 |
|
---|
303 |
|
---|
304 | #
|
---|
305 | # VBoxDD2R0 (LGPL sysmod)
|
---|
306 | #
|
---|
307 | VBoxDD2R0_TEMPLATE = VBOXR0
|
---|
308 | VBoxDD2R0_DEFS = IN_RT_R0
|
---|
309 | VBoxDD2R0_SYSSUFF = .r0
|
---|
310 | VBoxDD2R0_INCS := \
|
---|
311 | $(PATH_SUB_CURRENT)
|
---|
312 | VBoxDD2R0_SOURCES = \
|
---|
313 | PC/DevAPIC.cpp
|
---|
314 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
315 | VBoxDD2R0_LDFLAGS = -Entry:apicMMIOWrite
|
---|
316 | endif
|
---|
317 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
318 | VBoxDD2R0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
319 | endif
|
---|
320 | VBoxDD2R0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
321 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
322 | VBoxDD2R0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
323 | endif
|
---|
324 |
|
---|
325 |
|
---|
326 | #
|
---|
327 | # Drivers (library)
|
---|
328 | #
|
---|
329 | ifeq ($(BUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
|
---|
330 | Drivers_TEMPLATE = VBOXR3NP
|
---|
331 | else
|
---|
332 | Drivers_TEMPLATE = VBOXR3
|
---|
333 | endif
|
---|
334 | Drivers_SDKS.win = WINPSDK W2K3DDK
|
---|
335 | Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
|
---|
336 | Drivers_DEFS = IN_IDE_R3
|
---|
337 | Drivers_DEFS.win.x86 += _WIN32_WINNT=0x0500
|
---|
338 | Drivers_DEFS.win.amd64 += _WIN32_WINNT=0x0510
|
---|
339 | Drivers_INCS := \
|
---|
340 | $(PATH_SUB_CURRENT) \
|
---|
341 | Network/slirp
|
---|
342 | Drivers_SOURCES = \
|
---|
343 | Audio/audio.c \
|
---|
344 | Audio/audiosniffer.c \
|
---|
345 | Audio/mixeng.c \
|
---|
346 | Audio/noaudio.c \
|
---|
347 | Input/DrvKeyboardQueue.cpp \
|
---|
348 | Input/DrvMouseQueue.cpp \
|
---|
349 | Network/DrvIntNet.cpp \
|
---|
350 | Network/DrvNAT.cpp \
|
---|
351 | Network/DrvNetSniffer.cpp \
|
---|
352 | Network/slirp/bootp.c \
|
---|
353 | Network/slirp/cksum.c \
|
---|
354 | Network/slirp/debug.c \
|
---|
355 | Network/slirp/if.c \
|
---|
356 | Network/slirp/ip_icmp.c \
|
---|
357 | Network/slirp/ip_input.c \
|
---|
358 | Network/slirp/ip_output.c \
|
---|
359 | Network/slirp/mbuf.c \
|
---|
360 | Network/slirp/misc.c \
|
---|
361 | Network/slirp/sbuf.c \
|
---|
362 | Network/slirp/slirp.c \
|
---|
363 | Network/slirp/socket.c \
|
---|
364 | Network/slirp/tcp_input.c \
|
---|
365 | Network/slirp/tcp_output.c \
|
---|
366 | Network/slirp/tcp_subr.c \
|
---|
367 | Network/slirp/tcp_timer.c \
|
---|
368 | Network/slirp/tftp.c \
|
---|
369 | Network/slirp/udp.c \
|
---|
370 | PC/DrvACPI.cpp \
|
---|
371 | Serial/DrvChar.cpp \
|
---|
372 | Serial/DrvNamedPipe.cpp \
|
---|
373 | Storage/DrvBlock.cpp \
|
---|
374 | Storage/DrvHostBase.cpp \
|
---|
375 | Storage/DrvHostDVD.cpp \
|
---|
376 | Storage/DrvHostFloppy.cpp \
|
---|
377 | Storage/DrvHostRawDisk.cpp \
|
---|
378 | Storage/DrvMediaISO.cpp \
|
---|
379 | Storage/DrvRawImage.cpp \
|
---|
380 | Storage/DrvVD.cpp \
|
---|
381 | Storage/DrvVmdk.cpp \
|
---|
382 | Storage/VBoxHDD.cpp
|
---|
383 |
|
---|
384 | # -- OS specific --
|
---|
385 |
|
---|
386 | ifeq ($(BUILD_TARGET),darwin)
|
---|
387 | Drivers_SOURCES := $(filter-out \
|
---|
388 | Storage/DrvHostRaw% \
|
---|
389 | Storage/DrvHostFloppy% \
|
---|
390 | , $(Drivers_SOURCES)) \
|
---|
391 | Audio/coreaudio.c
|
---|
392 | Drivers_SOURCES.darwin =
|
---|
393 | endif # darwin
|
---|
394 |
|
---|
395 | ifeq ($(BUILD_TARGET),freebsd)
|
---|
396 | Drivers_SOURCES := $(filter-out \
|
---|
397 | Storage/DrvHost% \
|
---|
398 | , $(Drivers_SOURCES))
|
---|
399 | Drivers_SOURCES.freebsd =
|
---|
400 | endif # freebsd
|
---|
401 |
|
---|
402 |
|
---|
403 | ifeq ($(BUILD_TARGET),l4)
|
---|
404 | Drivers_SOURCES = \
|
---|
405 | Input/DrvMouseQueue.cpp \
|
---|
406 | Input/DrvKeyboardQueue.cpp \
|
---|
407 | Storage/VBoxHDD.cpp \
|
---|
408 | Storage/DrvBlock.cpp \
|
---|
409 | Storage/DrvMediaISO.cpp \
|
---|
410 | Storage/DrvRawImage.cpp \
|
---|
411 | Storage/DrvHostBase.cpp \
|
---|
412 | Storage/DrvHostDVD.cpp \
|
---|
413 | Storage/DrvVD.cpp \
|
---|
414 | PC/DrvACPI.cpp \
|
---|
415 | Network/DrvIntNet.cpp \
|
---|
416 | Network/DrvNetSniffer.cpp \
|
---|
417 | Audio/audio.c \
|
---|
418 | Audio/mixeng.c \
|
---|
419 | Audio/noaudio.c \
|
---|
420 | Audio/audiosniffer.c
|
---|
421 |
|
---|
422 | Drivers_SOURCES.l4 = \
|
---|
423 | Network/DrvTAP.cpp \
|
---|
424 | Audio/ossaudio.c
|
---|
425 | endif # l4
|
---|
426 |
|
---|
427 | Drivers_SOURCES.linux = \
|
---|
428 | Network/DrvTAP.cpp \
|
---|
429 | Audio/ossaudio.c
|
---|
430 |
|
---|
431 | ifeq ($(BUILD_TARGET),os2)
|
---|
432 | Drivers_SOURCES := $(filter-out \
|
---|
433 | Storage/DrvHost% \
|
---|
434 | , $(Drivers_SOURCES))
|
---|
435 | Drivers_SOURCES.os2 =
|
---|
436 | endif
|
---|
437 |
|
---|
438 | Drivers_SOURCES.win = \
|
---|
439 | Network/DrvTAPWin32.cpp \
|
---|
440 | Audio/dsoundaudio.c
|
---|
441 |
|
---|
442 |
|
---|
443 | # -- features --
|
---|
444 |
|
---|
445 | ifdef VBOX_WITH_ISCSI
|
---|
446 | Drivers_SOURCES += \
|
---|
447 | Storage/DrvISCSI.cpp \
|
---|
448 | Storage/DrvISCSITransportTCP.cpp
|
---|
449 | Drivers_DEFS += VBOX_WITH_ISCSI
|
---|
450 | endif # VBOX_WITH_ISCSI
|
---|
451 |
|
---|
452 | ifdef VBOX_WITH_ALSA
|
---|
453 | Drivers_DEFS.linux += VBOX_WITH_ALSA
|
---|
454 | Drivers_SOURCES.linux+= \
|
---|
455 | Audio/alsaaudio.c
|
---|
456 | VBoxDD_LIBS.linux += asound
|
---|
457 | endif
|
---|
458 |
|
---|
459 | ifdef VBOX_WITH_USB
|
---|
460 | Drivers_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
461 | Drivers_SOURCES += \
|
---|
462 | USB/DrvVUSBRootHub.cpp \
|
---|
463 | USB/VUSBDevice.cpp \
|
---|
464 | USB/VUSBUrb.cpp
|
---|
465 | ifdef VBOX_WITH_VRDP
|
---|
466 | Drivers_DEFS += VBOX_VRDP
|
---|
467 | Drivers_SOURCES += \
|
---|
468 | USB/vrdp/USBProxyDevice-vrdp.cpp
|
---|
469 | endif
|
---|
470 |
|
---|
471 | Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
472 | Drivers_SOURCES.darwin += \
|
---|
473 | USB/USBProxyDevice.cpp \
|
---|
474 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
475 |
|
---|
476 | Drivers_DEFS.linux += VUSB_HAVE_USBPROXY_DEVICE
|
---|
477 | ifdef VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
478 | Drivers_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
479 | endif
|
---|
480 | Drivers_SOURCES.linux+= \
|
---|
481 | USB/USBProxyDevice.cpp \
|
---|
482 | USB/linux/USBProxyDevice-linux.cpp
|
---|
483 |
|
---|
484 | Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
485 | Drivers_SOURCES.l4 += \
|
---|
486 | USB/USBProxyDevice.cpp \
|
---|
487 | USB/linux/USBProxyDevice-linux.cpp
|
---|
488 |
|
---|
489 | Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
490 | Drivers_SOURCES.win += \
|
---|
491 | USB/USBProxyDevice.cpp \
|
---|
492 | USB/win32/USBProxyDevice-win32.cpp
|
---|
493 | endif # VBOX_WITH_USB
|
---|
494 |
|
---|
495 |
|
---|
496 |
|
---|
497 | #
|
---|
498 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
499 | #
|
---|
500 | ServicesR0_TEMPLATE = VBOXR0
|
---|
501 | ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
|
---|
502 | ServicesR0_SOURCES = \
|
---|
503 | Network/SrvIntNetR0.cpp
|
---|
504 |
|
---|
505 | #
|
---|
506 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
507 | #
|
---|
508 | ifdef VBOX_WITH_TESTCASES
|
---|
509 | PROGRAMS += tstIntNetR0
|
---|
510 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
511 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
512 | tstIntNetR0_SOURCES = \
|
---|
513 | Network/testcase/tstIntNetR0.cpp
|
---|
514 | tstIntNetR0_LIBS = \
|
---|
515 | $(LIB_RUNTIME)
|
---|
516 | endif
|
---|
517 |
|
---|
518 |
|
---|
519 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
520 |
|
---|