1 | #
|
---|
2 | # Makefile for the devices, drivers and services.
|
---|
3 | #
|
---|
4 |
|
---|
5 | #
|
---|
6 | # Copyright (C) 2006 InnoTek Systemberatung GmbH
|
---|
7 | #
|
---|
8 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | # available from http://www.virtualbox.org. This file is free software;
|
---|
10 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | # General Public License as published by the Free Software Foundation,
|
---|
12 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | #
|
---|
16 | # If you received this file as part of a commercial VirtualBox
|
---|
17 | # distribution, then only the terms of your commercial VirtualBox
|
---|
18 | # license agreement apply instead of the previous paragraph.
|
---|
19 | #
|
---|
20 |
|
---|
21 | DEPTH = ../../..
|
---|
22 | include $(PATH_KBUILD)/header.kmk
|
---|
23 |
|
---|
24 | ifdef VBOX_WITH_TESTCASES
|
---|
25 | PROGRAMS = tstIntNetR0
|
---|
26 | endif
|
---|
27 | LIBRARIES = DevicesR3 Drivers ServicesR0
|
---|
28 | DLLS = VBoxDDU VBoxDD VBoxDD2
|
---|
29 | SYSMODS = VBoxDDGC VBoxDD2GC VBoxDDR0 VBoxDD2R0
|
---|
30 |
|
---|
31 | OTHER_CLEAN = \
|
---|
32 | $(PATH_TARGET)/vboxaml.hex \
|
---|
33 | $(PATH_TARGET)/vboxaml.aml
|
---|
34 |
|
---|
35 | SUBDIRS = \
|
---|
36 | testcase \
|
---|
37 | PC/BIOS \
|
---|
38 | PC/Etherboot-src \
|
---|
39 | Graphics/BIOS
|
---|
40 | SUBDIRS_AFTER = \
|
---|
41 | Storage/testcase
|
---|
42 |
|
---|
43 |
|
---|
44 | #
|
---|
45 | # Check for VBOX_* stuff which governs defines.
|
---|
46 | #
|
---|
47 | ifdef VBOX_USE_IOAPIC
|
---|
48 | DEFS += USE_IOAPIC
|
---|
49 | endif
|
---|
50 | ifdef VBOX_WITH_VRDP
|
---|
51 | DEFS += VBOX_VRDP
|
---|
52 | endif
|
---|
53 | ifdef VBOX_WITH_INTERNAL_NETWORKING
|
---|
54 | DEFS += VBOX_WITH_INTERNAL_NETWORKING
|
---|
55 | endif
|
---|
56 |
|
---|
57 | # enable the pdm lock.
|
---|
58 | #DEFS += VBOX_WITH_PDM_LOCK
|
---|
59 |
|
---|
60 |
|
---|
61 | #
|
---|
62 | # VBoxDDU (shared object)
|
---|
63 | #
|
---|
64 | VBoxDDU_TEMPLATE = VBOXR3
|
---|
65 | VBoxDDU_DEFS = IN_VBOXDDU
|
---|
66 | ifdef VBOX_WITH_USB
|
---|
67 | VBoxDDU_DEFS.win = VBOX_WITH_USB
|
---|
68 | VBoxDDU_SDKS.win = WINPSDK W2K3DDK
|
---|
69 | VBoxDDU_SOURCES.win = \
|
---|
70 | USB/win32/USBLib-win32.cpp
|
---|
71 | else
|
---|
72 | VBoxDDU_SDKS.win = WINPSDK
|
---|
73 | endif
|
---|
74 | VBoxDDU_SOURCES = \
|
---|
75 | Storage/VDICore.cpp
|
---|
76 | # Storage/VmdkHDDCore.cpp
|
---|
77 | VBoxDDU_LIBS = \
|
---|
78 | $(LIB_RUNTIME)
|
---|
79 | ifeq ($(BUILD_TARGET),l4)
|
---|
80 | VBoxDDU_LIBS += \
|
---|
81 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
82 | endif
|
---|
83 | VBoxDDU_LDFLAGS.darwin = -install_name @executable_path/VBoxDDU.dylib
|
---|
84 | VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
|
---|
85 | VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
86 |
|
---|
87 |
|
---|
88 | #
|
---|
89 | # VBoxDD (shared object)
|
---|
90 | #
|
---|
91 | VBoxDD_TEMPLATE = VBOXR3
|
---|
92 | VBoxDD_SDKS.win = WINPSDK DXSDK W2K3DDK VBOX_NTDLL
|
---|
93 | VBoxDD_SOURCES = \
|
---|
94 | Builtins.cpp \
|
---|
95 | muldiv64.c
|
---|
96 | VBoxDD_DEFS = VBOX_ACPI
|
---|
97 | ifdef VBOX_WITH_USB
|
---|
98 | VBoxDD_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
99 | endif
|
---|
100 | ifdef VBOX_WITH_ISCSI
|
---|
101 | VBoxDD_DEFS += VBOX_WITH_ISCSI
|
---|
102 | endif
|
---|
103 | VBoxDD_LIBS = \
|
---|
104 | $(PATH_LIB)/DevicesR3$(VBOX_SUFF_LIB) \
|
---|
105 | $(PATH_LIB)/Drivers$(VBOX_SUFF_LIB) \
|
---|
106 | $(PATH_LIB)/PcDefBiosLogo$(VBOX_SUFF_LIB) \
|
---|
107 | $(LIB_VMM) \
|
---|
108 | $(LIB_RUNTIME)
|
---|
109 | ifeq ($(BUILD_TARGET),win)
|
---|
110 | VBoxDD_LIBS += \
|
---|
111 | $(PATH_LIB)/VBoxDDU.lib \
|
---|
112 | $(PATH_LIB)/VBoxDD2.lib \
|
---|
113 | $(PATH_SDK_DXSDK_LIB)/dxguid.lib
|
---|
114 | else
|
---|
115 | VBoxDD_LIBS += \
|
---|
116 | $(INSTARGET_VBoxDDU) \
|
---|
117 | $(INSTARGET_VBoxDD2)
|
---|
118 | endif
|
---|
119 | ifeq ($(BUILD_TARGET),l4)
|
---|
120 | VBoxDD_LIBS += \
|
---|
121 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
122 | endif
|
---|
123 | VBoxDD_LIBS.darwin = \
|
---|
124 | $(LIB_REM)
|
---|
125 | VBoxDD_LDFLAGS.darwin = -install_name @executable_path/VBoxDD.dylib -framework CoreAudio
|
---|
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_SOURCES = \
|
---|
143 | Builtins2.cpp \
|
---|
144 | PC/apic.c
|
---|
145 | VBoxDD2_LIBS = \
|
---|
146 | $(PATH_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
147 | $(PATH_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
148 | $(PATH_LIB)/NetBiosBin$(VBOX_SUFF_LIB) \
|
---|
149 | $(LIB_VMM) \
|
---|
150 | $(LIB_RUNTIME)
|
---|
151 | ifeq ($(BUILD_TARGET),l4)
|
---|
152 | VBoxDD2_LIBS += \
|
---|
153 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
154 | endif
|
---|
155 | VBoxDD2_LIBS.darwin += $(LIB_REM)
|
---|
156 | VBoxDD2_LDFLAGS.darwin = -install_name @executable_path/VBoxDD2.dylib
|
---|
157 | VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
|
---|
158 | VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
159 |
|
---|
160 |
|
---|
161 | #
|
---|
162 | # DevicesR3 (library)
|
---|
163 | #
|
---|
164 | DevicesR3_TEMPLATE = VBOXR3
|
---|
165 | DevicesR3_SDKS.win = WINPSDK W2K3DDK
|
---|
166 | DevicesR3_INCS = \
|
---|
167 | $(PATH_CURRENT)
|
---|
168 | DevicesR3_SOURCES = \
|
---|
169 | Input/pckbd.c \
|
---|
170 | Bus/DevPCI.cpp \
|
---|
171 | Graphics/DevVGA.cpp \
|
---|
172 | Storage/DevATA.cpp \
|
---|
173 | PC/DevPit-i8254.cpp \
|
---|
174 | PC/DevPIC.cpp \
|
---|
175 | PC/DevACPI.cpp \
|
---|
176 | PC/DevRTC.cpp \
|
---|
177 | PC/DevPcBios.cpp \
|
---|
178 | PC/DevPcArch.c \
|
---|
179 | VMMDev/VBoxDev.cpp \
|
---|
180 | VMMDev/VMMDevHGCM.cpp \
|
---|
181 | Network/DevPCNet.cpp \
|
---|
182 | Audio/DevIchAc97.cpp \
|
---|
183 | PC/dma.c \
|
---|
184 | Storage/fdc.c \
|
---|
185 | Serial/DevSerial.cpp
|
---|
186 |
|
---|
187 | ifeq (0,1)
|
---|
188 | DevicesR3_SOURCES += \
|
---|
189 | Network/ne2000.c
|
---|
190 | endif
|
---|
191 |
|
---|
192 | ifdef VBOX_WITH_USB
|
---|
193 | DevicesR3_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
194 | DevicesR3_SOURCES += \
|
---|
195 | USB/DevOHCI.cpp
|
---|
196 | endif
|
---|
197 |
|
---|
198 | DevicesR3_DEFS += VBOX_HGCM
|
---|
199 | DevicesR3_DEFS.linux += _GNU_SOURCE
|
---|
200 | DevicesR3_DEFS.l4 += _GNU_SOURCE
|
---|
201 |
|
---|
202 |
|
---|
203 | # DevACPI.cpp needs vboxaml.hex which we generate from PC/vbox.dsl.
|
---|
204 | PC/DevACPI.cpp_DEPS = $(PATH_TARGET)/vboxaml.hex
|
---|
205 | PC/DevACPI.cpp_INCS = $(PATH_TARGET)
|
---|
206 | Bus/DevPCI.cpp_INCS = Bus
|
---|
207 |
|
---|
208 |
|
---|
209 | #
|
---|
210 | # VBoxDDGC (sysmod)
|
---|
211 | #
|
---|
212 | VBoxDDGC_TEMPLATE = VBOXGC
|
---|
213 | VBoxDDGC_DEFS =
|
---|
214 | VBoxDDGC_SYSSUFF = .gc
|
---|
215 | VBoxDDGC_INCS = \
|
---|
216 | $(PATH_CURRENT)
|
---|
217 | VBoxDDGC_SOURCES = \
|
---|
218 | muldiv64.c \
|
---|
219 | Bus/DevPCI.cpp \
|
---|
220 | Graphics/DevVGA.cpp \
|
---|
221 | Input/pckbd.c \
|
---|
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_CURRENT)
|
---|
254 | VBoxDDR0_SOURCES = \
|
---|
255 | muldiv64.c \
|
---|
256 | Bus/DevPCI.cpp \
|
---|
257 | Graphics/DevVGA.cpp \
|
---|
258 | Input/pckbd.c \
|
---|
259 | PC/DevACPI.cpp \
|
---|
260 | PC/DevPit-i8254.cpp \
|
---|
261 | PC/DevPIC.cpp \
|
---|
262 | PC/DevRTC.cpp \
|
---|
263 | Storage/DevATA.cpp \
|
---|
264 | Network/DevPCNet.cpp \
|
---|
265 | Serial/DevSerial.cpp
|
---|
266 |
|
---|
267 | ifdef VBOX_WITH_USB
|
---|
268 | VBoxDDR0_DEFS += VBOX_WITH_USB IN_USB_R0
|
---|
269 | VBoxDDR0_SOURCES += \
|
---|
270 | USB/DevOHCI.cpp
|
---|
271 | endif
|
---|
272 |
|
---|
273 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
274 | VBoxDDR0_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
275 | endif
|
---|
276 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
277 | VBoxDDR0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
278 | endif
|
---|
279 | VBoxDDR0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
280 | ifeq ($(VBOX_LDR_FMT32),elf) # this is template stuff!
|
---|
281 | VBoxDDR0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
282 | endif
|
---|
283 |
|
---|
284 |
|
---|
285 | #
|
---|
286 | # VBoxDD2GC (LGPL sysmod)
|
---|
287 | #
|
---|
288 | VBoxDD2GC_TEMPLATE = VBOXGC
|
---|
289 | VBoxDD2GC_DEFS =
|
---|
290 | VBoxDD2GC_SYSSUFF = .gc
|
---|
291 | VBoxDD2GC_INCS = \
|
---|
292 | $(PATH_CURRENT)
|
---|
293 | VBoxDD2GC_SOURCES = \
|
---|
294 | PC/apic.c
|
---|
295 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
296 | VBoxDD2GC_LDFLAGS = -Entry:apicMMIOWrite
|
---|
297 | endif
|
---|
298 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
299 | VBoxDD2GC_LIBS = \
|
---|
300 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
301 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
302 | endif
|
---|
303 |
|
---|
304 |
|
---|
305 | #
|
---|
306 | # VBoxDD2R0 (LGPL sysmod)
|
---|
307 | #
|
---|
308 | VBoxDD2R0_TEMPLATE = VBOXR0
|
---|
309 | VBoxDD2R0_DEFS = IN_RT_R0
|
---|
310 | VBoxDD2R0_SYSSUFF = .r0
|
---|
311 | VBoxDD2R0_INCS = \
|
---|
312 | $(PATH_CURRENT)
|
---|
313 | VBoxDD2R0_SOURCES = \
|
---|
314 | PC/apic.c
|
---|
315 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
316 | VBoxDD2R0_LDFLAGS = -Entry:apicMMIOWrite
|
---|
317 | endif
|
---|
318 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
319 | VBoxDD2R0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
320 | endif
|
---|
321 | VBoxDD2R0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
322 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
323 | VBoxDD2R0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
324 | endif
|
---|
325 |
|
---|
326 |
|
---|
327 | #
|
---|
328 | # Drivers (library)
|
---|
329 | #
|
---|
330 | ifeq ($(BUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
|
---|
331 | Drivers_TEMPLATE = VBOXR3NP
|
---|
332 | else
|
---|
333 | Drivers_TEMPLATE = VBOXR3
|
---|
334 | endif
|
---|
335 | Drivers_SDKS.win = WINPSDK W2K3DDK
|
---|
336 | Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
|
---|
337 | Drivers_DEFS = IN_IDE_R3
|
---|
338 | Drivers_INCS = \
|
---|
339 | Network/slirp
|
---|
340 | Drivers_SOURCES = \
|
---|
341 | Input/DrvMouseQueue.cpp \
|
---|
342 | Input/DrvKeyboardQueue.cpp \
|
---|
343 | Storage/VBoxHDD.cpp \
|
---|
344 | Storage/DrvBlock.cpp \
|
---|
345 | Storage/VmdkHDD.cpp \
|
---|
346 | Storage/DrvMediaISO.cpp \
|
---|
347 | Storage/DrvRawImage.cpp \
|
---|
348 | Storage/DrvHostBase.cpp \
|
---|
349 | Storage/DrvHostDVD.cpp \
|
---|
350 | Storage/DrvHostFloppy.cpp \
|
---|
351 | Storage/DrvHostRawDisk.cpp \
|
---|
352 | PC/DrvACPI.cpp \
|
---|
353 | Network/DrvIntNet.cpp \
|
---|
354 | Network/DrvNetSniffer.cpp \
|
---|
355 | Network/DrvNAT.cpp \
|
---|
356 | Network/slirp/cksum.c \
|
---|
357 | Network/slirp/if.c \
|
---|
358 | Network/slirp/ip_icmp.c \
|
---|
359 | Network/slirp/ip_input.c \
|
---|
360 | Network/slirp/ip_output.c \
|
---|
361 | Network/slirp/slirp.c \
|
---|
362 | Network/slirp/mbuf.c \
|
---|
363 | Network/slirp/misc.c \
|
---|
364 | Network/slirp/sbuf.c \
|
---|
365 | Network/slirp/socket.c \
|
---|
366 | Network/slirp/tcp_input.c \
|
---|
367 | Network/slirp/tcp_output.c \
|
---|
368 | Network/slirp/tcp_subr.c \
|
---|
369 | Network/slirp/tcp_timer.c \
|
---|
370 | Network/slirp/tftp.c \
|
---|
371 | Network/slirp/udp.c \
|
---|
372 | Network/slirp/bootp.c \
|
---|
373 | Network/slirp/debug.c \
|
---|
374 | Audio/audio.c \
|
---|
375 | Audio/mixeng.c \
|
---|
376 | Audio/noaudio.c \
|
---|
377 | Audio/audiosniffer.c \
|
---|
378 | Serial/DrvChar.cpp \
|
---|
379 | Serial/DrvNamedPipe.cpp
|
---|
380 |
|
---|
381 | # -- OS specific --
|
---|
382 |
|
---|
383 | ifeq ($(BUILD_TARGET),darwin)
|
---|
384 | Drivers_SOURCES := $(filter-out \
|
---|
385 | Storage/DrvHost% \
|
---|
386 | , $(Drivers_SOURCES)) \
|
---|
387 | Audio/coreaudio.c
|
---|
388 | Drivers_SOURCES.darwin =
|
---|
389 | endif # darwin
|
---|
390 |
|
---|
391 | ifeq ($(BUILD_TARGET),freebsd)
|
---|
392 | Drivers_SOURCES := $(filter-out \
|
---|
393 | Storage/DrvHost% \
|
---|
394 | , $(Drivers_SOURCES))
|
---|
395 | Drivers_SOURCES.freebsd =
|
---|
396 | endif # freebsd
|
---|
397 |
|
---|
398 |
|
---|
399 | ifeq ($(BUILD_TARGET),l4)
|
---|
400 | Drivers_SOURCES = \
|
---|
401 | Input/DrvMouseQueue.cpp \
|
---|
402 | Input/DrvKeyboardQueue.cpp \
|
---|
403 | Storage/VBoxHDD.cpp \
|
---|
404 | Storage/DrvBlock.cpp \
|
---|
405 | Storage/VmdkHDD.cpp \
|
---|
406 | Storage/DrvMediaISO.cpp \
|
---|
407 | Storage/DrvRawImage.cpp \
|
---|
408 | Storage/DrvHostBase.cpp \
|
---|
409 | Storage/DrvHostDVD.cpp \
|
---|
410 | PC/DrvACPI.cpp \
|
---|
411 | Network/DrvIntNet.cpp \
|
---|
412 | Network/DrvNetSniffer.cpp \
|
---|
413 | Audio/audio.c \
|
---|
414 | Audio/mixeng.c \
|
---|
415 | Audio/noaudio.c \
|
---|
416 | Audio/audiosniffer.c
|
---|
417 |
|
---|
418 | Drivers_SOURCES.l4 = \
|
---|
419 | Network/DrvTAP.cpp \
|
---|
420 | Audio/ossaudio.c
|
---|
421 | endif # l4
|
---|
422 |
|
---|
423 | Drivers_SOURCES.linux = \
|
---|
424 | Network/DrvTAP.cpp \
|
---|
425 | Audio/ossaudio.c
|
---|
426 |
|
---|
427 | ifeq ($(BUILD_TARGET),os2)
|
---|
428 | Drivers_SOURCES := $(filter-out \
|
---|
429 | Storage/DrvHost% \
|
---|
430 | , $(Drivers_SOURCES))
|
---|
431 | Drivers_SOURCES.os2 =
|
---|
432 | endif
|
---|
433 |
|
---|
434 | Drivers_SOURCES.win = \
|
---|
435 | Network/DrvTAPWin32.cpp \
|
---|
436 | Audio/dsoundaudio.c
|
---|
437 |
|
---|
438 |
|
---|
439 | # -- features --
|
---|
440 |
|
---|
441 | ifdef VBOX_WITH_ISCSI
|
---|
442 | Drivers_SOURCES += \
|
---|
443 | Storage/DrvISCSI.cpp \
|
---|
444 | Storage/DrvISCSITransportTCP.cpp
|
---|
445 | Drivers_DEFS += VBOX_WITH_ISCSI
|
---|
446 | endif # VBOX_WITH_ISCSI
|
---|
447 |
|
---|
448 | ifdef VBOX_WITH_ALSA
|
---|
449 | Drivers_DEFS.linux += VBOX_WITH_ALSA
|
---|
450 | Drivers_SOURCES.linux+= \
|
---|
451 | Audio/alsaaudio.c
|
---|
452 | VBoxDD_LIBS.linux += asound
|
---|
453 | endif
|
---|
454 |
|
---|
455 | ifdef VBOX_WITH_USB
|
---|
456 | Drivers_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
457 | Drivers_SOURCES += \
|
---|
458 | USB/DrvVUSBRootHub.cpp \
|
---|
459 | USB/VUSBDevice.cpp \
|
---|
460 | USB/VUSBUrb.cpp
|
---|
461 | ifdef VBOX_WITH_VRDP
|
---|
462 | Drivers_SOURCES += \
|
---|
463 | USB/vrdp/USBProxyDevice-vrdp.cpp
|
---|
464 | endif
|
---|
465 |
|
---|
466 | Drivers_DEFS.linux += VUSB_HAVE_USBPROXY_DEVICE
|
---|
467 | ifdef VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
468 | Drivers_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
469 | endif
|
---|
470 | Drivers_SOURCES.linux+= \
|
---|
471 | USB/USBProxyDevice.cpp \
|
---|
472 | USB/linux/USBProxyDevice-linux.cpp
|
---|
473 |
|
---|
474 | Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
475 | Drivers_SOURCES.l4 += \
|
---|
476 | USB/USBProxyDevice.cpp \
|
---|
477 | USB/linux/USBProxyDevice-linux.cpp
|
---|
478 |
|
---|
479 | Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
480 | Drivers_SOURCES.win += \
|
---|
481 | USB/USBProxyDevice.cpp \
|
---|
482 | USB/win32/USBProxyDevice-win32.cpp
|
---|
483 | endif # VBOX_WITH_USB
|
---|
484 |
|
---|
485 |
|
---|
486 |
|
---|
487 | #
|
---|
488 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
489 | #
|
---|
490 | ServicesR0_TEMPLATE = VBOXR0
|
---|
491 | ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
|
---|
492 | ServicesR0_SOURCES = \
|
---|
493 | Network/SrvIntNetR0.cpp
|
---|
494 |
|
---|
495 | #
|
---|
496 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
497 | #
|
---|
498 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
499 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
500 | tstIntNetR0_SOURCES = \
|
---|
501 | Network/testcase/tstIntNetR0.cpp
|
---|
502 | tstIntNetR0_LIBS = \
|
---|
503 | $(LIB_RUNTIME)
|
---|
504 |
|
---|
505 |
|
---|
506 | include $(PATH_KBUILD)/footer.kmk
|
---|
507 |
|
---|
508 |
|
---|
509 | # ACPI DSL generation
|
---|
510 | $(PATH_TARGET)/vboxaml.hex: PC/vbox.dsl
|
---|
511 | $(call MSG_L1,iasl $<,=> $@)
|
---|
512 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
513 |
|
---|