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