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