1 | # $Id: Makefile.kmk 11805 2008-08-29 10:17:27Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the devices, drivers and services.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
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 (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | ifdef VBOX_KBUILD_HACKING
|
---|
23 | SUB_DEPTH = ../../..
|
---|
24 | else
|
---|
25 | DEPTH = ../../..
|
---|
26 | endif
|
---|
27 | include $(KBUILD_PATH)/subheader.kmk
|
---|
28 |
|
---|
29 | # Include sub-makefiles.
|
---|
30 | include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
|
---|
31 | ifndef VBOX_OSE # not yet
|
---|
32 | include $(PATH_SUB_CURRENT)/PC/VMI/Makefile.kmk
|
---|
33 | endif
|
---|
34 | include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
|
---|
35 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
36 | include $(PATH_SUB_CURRENT)/Storage/testcase/Makefile.kmk
|
---|
37 | ifndef VBOX_OSE
|
---|
38 | include $(PATH_SUB_CURRENT)/Storage/VBoxHDDFormats/Makefile.kmk
|
---|
39 | endif
|
---|
40 | ifdef VBOX_WITH_INTEL_PXE
|
---|
41 | include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
|
---|
42 | else
|
---|
43 | # Subdir with complex makefile.
|
---|
44 | SUBDIRS_LIBRARIES += PC/Etherboot-src
|
---|
45 | SUBDIRS_CLEAN += PC/Etherboot-src
|
---|
46 | endif
|
---|
47 |
|
---|
48 | #
|
---|
49 | # Main targets.
|
---|
50 | #
|
---|
51 | LIBRARIES += DevicesR3 Drivers ServicesR0
|
---|
52 | ifdef VBOX_USE_NAT
|
---|
53 | LIBRARIES += NatAlias
|
---|
54 | endif
|
---|
55 | DLLS += VBoxDDU VBoxDD VBoxDD2
|
---|
56 | SYSMODS += VBoxDDGC VBoxDD2GC VBoxDDR0 VBoxDD2R0
|
---|
57 |
|
---|
58 |
|
---|
59 | #
|
---|
60 | # VBoxDDU (shared object)
|
---|
61 | #
|
---|
62 | VBoxDDU_TEMPLATE = VBOXR3
|
---|
63 | VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
|
---|
64 | VBoxDDU_DEFS = IN_VBOXDDU
|
---|
65 | ifdef VBOX_WITH_USB
|
---|
66 | VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
|
---|
67 | VBoxDDU_SDKS.win = WINPSDK W2K3DDK
|
---|
68 | ifdef VBOX_WITH_EHCI
|
---|
69 | VBoxDDU_DEFS += VBOX_WITH_EHCI
|
---|
70 | endif
|
---|
71 | ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
72 | VBoxDDU_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
73 | endif
|
---|
74 | else
|
---|
75 | VBoxDDU_SDKS.win = WINPSDK
|
---|
76 | endif
|
---|
77 | VBoxDDU_SOURCES = \
|
---|
78 | Storage/VBoxHDD-new.cpp \
|
---|
79 | Storage/VDICore.cpp \
|
---|
80 | Storage/VDIHDDCore.cpp \
|
---|
81 | Storage/VmdkHDDCore.cpp \
|
---|
82 | Storage/RawHDDCore.cpp \
|
---|
83 | VBoxDDUDeps.cpp
|
---|
84 | ifndef VBOX_OSE
|
---|
85 | VBoxDDU_SOURCES += \
|
---|
86 | Storage/VHDHDDCore.cpp
|
---|
87 | endif
|
---|
88 | ifdef VBOX_WITH_USB
|
---|
89 | VBoxDDU_INCS.os2 += \
|
---|
90 | $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
91 | endif
|
---|
92 | VBoxDDU_LIBS = \
|
---|
93 | $(LIB_RUNTIME)
|
---|
94 | ifdef VBOX_WITH_USB
|
---|
95 | VBoxDDU_LIBS += \
|
---|
96 | $(PATH_LIB)/USBLib$(VBOX_SUFF_LIB)
|
---|
97 | endif
|
---|
98 | ifeq ($(KBUILD_TARGET),l4)
|
---|
99 | VBoxDDU_LIBS += \
|
---|
100 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
101 | endif
|
---|
102 | VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
|
---|
103 | ifdef VBOX_WITH_USB
|
---|
104 | ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
105 | VBoxDDU_LDFLAGS.darwin += -framework IOKit
|
---|
106 | endif
|
---|
107 | endif
|
---|
108 |
|
---|
109 | VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
|
---|
110 | VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
111 |
|
---|
112 | #
|
---|
113 | # VBoxDDULnxHostR3 (Only needed for l4, currently for executing vditool on L4Linux.)
|
---|
114 | #
|
---|
115 | ifeq ($(KBUILD_TARGET),l4)
|
---|
116 | LIBRARIES += VBoxDDULnxHostR3
|
---|
117 | VBoxDDULnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
|
---|
118 | VBoxDDULnxHostR3_DEFS = IN_VBOXDDU
|
---|
119 | VBoxDDULnxHostR3_SOURCES = $(VBoxDDU_SOURCES)
|
---|
120 | endif
|
---|
121 |
|
---|
122 | #
|
---|
123 | # VBoxDD (shared object)
|
---|
124 | #
|
---|
125 | VBoxDD_TEMPLATE = VBOXR3
|
---|
126 | VBoxDD_SDKS.win = WINPSDK DXSDK W2K3DDK VBOX_NTDLL
|
---|
127 | VBoxDD_SOURCES = \
|
---|
128 | Builtins.cpp
|
---|
129 | VBoxDD_DEFS = VBOX_ACPI
|
---|
130 | ifdef VBOX_WITH_USB
|
---|
131 | VBoxDD_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
132 | ifdef VBOX_WITH_EHCI
|
---|
133 | VBoxDD_DEFS += VBOX_WITH_EHCI
|
---|
134 | endif
|
---|
135 | endif
|
---|
136 | ifdef VBOX_WITH_AHCI
|
---|
137 | VBoxDD_DEFS += VBOX_WITH_AHCI
|
---|
138 | endif
|
---|
139 | ifdef VBOX_WITH_ISCSI
|
---|
140 | VBoxDD_DEFS += VBOX_WITH_ISCSI
|
---|
141 | endif
|
---|
142 | ifdef VBOX_WITH_E1000
|
---|
143 | VBoxDD_DEFS += VBOX_WITH_E1000
|
---|
144 | endif
|
---|
145 | ifdef VBOX_WITH_BUSLOGIC
|
---|
146 | VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
|
---|
147 | endif
|
---|
148 | ifndef VBOX_OSE
|
---|
149 | VBoxDD_DEFS += VBOX_WITH_INIP
|
---|
150 | endif
|
---|
151 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
152 | VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
153 | endif
|
---|
154 | VBoxDD_LIBS = \
|
---|
155 | $(PATH_LIB)/DevicesR3$(VBOX_SUFF_LIB) \
|
---|
156 | $(PATH_LIB)/Drivers$(VBOX_SUFF_LIB) \
|
---|
157 | $(PATH_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
|
---|
158 | $(LIB_VMM) \
|
---|
159 | $(LIB_RUNTIME)
|
---|
160 | ifeq ($(KBUILD_TARGET),win)
|
---|
161 | VBoxDD_LIBS += \
|
---|
162 | $(LIB_DDU) \
|
---|
163 | $(PATH_LIB)/VBoxDD2.lib \
|
---|
164 | $(PATH_SDK_DXSDK_LIB)/dxguid.lib
|
---|
165 | else
|
---|
166 | VBoxDD_LIBS += \
|
---|
167 | $(INSTARGET_VBoxDDU) \
|
---|
168 | $(INSTARGET_VBoxDD2)
|
---|
169 | endif
|
---|
170 | ifeq ($(KBUILD_TARGET),l4)
|
---|
171 | VBoxDD_LIBS += \
|
---|
172 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
173 | endif
|
---|
174 |
|
---|
175 | ifdef VBOX_USE_NAT
|
---|
176 | VBoxDD_LIBS += $(PATH_LIB)/NatAlias$(VBOX_SUFF_LIB)
|
---|
177 | endif
|
---|
178 |
|
---|
179 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
180 | VBoxDD_LIBS += adm
|
---|
181 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
182 | VBoxDD_LIBS += secdb
|
---|
183 | endif
|
---|
184 | ifdef VBOX_WITH_USB
|
---|
185 | VBoxDD_LIBS += aio
|
---|
186 | endif
|
---|
187 | endif
|
---|
188 | VBoxDD_LIBS.darwin += \
|
---|
189 | $(LIB_REM)
|
---|
190 | VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
|
---|
191 | -framework CoreAudio \
|
---|
192 | -framework IOKit \
|
---|
193 | -framework Carbon \
|
---|
194 | -framework DiskArbitration
|
---|
195 | VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
|
---|
196 | VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
197 |
|
---|
198 |
|
---|
199 | ifndef VBOX_SINGLE_MAKEFILE
|
---|
200 | # damn, fix this.
|
---|
201 | ifeq ($(KBUILD_TARGET),win)
|
---|
202 | $(PATH_LIB)/VBoxDD2.lib: $(PATH_BIN)/VBoxDD2.dll
|
---|
203 | $(PATH_LIB)/VBoxDDU.lib: $(PATH_BIN)/VBoxDDU.dll
|
---|
204 | endif
|
---|
205 | endif
|
---|
206 |
|
---|
207 |
|
---|
208 | #
|
---|
209 | # VBoxDD2 (shared object)
|
---|
210 | #
|
---|
211 | VBoxDD2_TEMPLATE = VBOXR3
|
---|
212 | VBoxDD2_DEFS = IN_VBOXDD2
|
---|
213 | VBoxDD2_INCS := \
|
---|
214 | $(PATH_SUB_CURRENT)
|
---|
215 | VBoxDD2_SOURCES = \
|
---|
216 | Builtins2.cpp \
|
---|
217 | PC/DevAPIC.cpp
|
---|
218 | VBoxDD2_LIBS = \
|
---|
219 | $(PATH_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
220 | $(PATH_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
221 | $(PATH_LIB)/NetBiosBin$(VBOX_SUFF_LIB) \
|
---|
222 | $(if $(VBOX_OSE),,$(PATH_LIB)/VmiBiosBin$(VBOX_SUFF_LIB)) \
|
---|
223 | $(LIB_VMM) \
|
---|
224 | $(LIB_RUNTIME)
|
---|
225 | ifeq ($(KBUILD_TARGET),l4)
|
---|
226 | VBoxDD2_LIBS += \
|
---|
227 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
228 | endif
|
---|
229 | VBoxDD2_LIBS.darwin += $(LIB_REM)
|
---|
230 | VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
|
---|
231 | VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
|
---|
232 | VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
233 |
|
---|
234 |
|
---|
235 | #
|
---|
236 | # DevicesR3 (library)
|
---|
237 | #
|
---|
238 | DevicesR3_TEMPLATE = VBOXR3
|
---|
239 | DevicesR3_SDKS.win = WINPSDK W2K3DDK
|
---|
240 | DevicesR3_DEFS += VBOX_HGCM_HOST_CODE
|
---|
241 | DevicesR3_INCS := \
|
---|
242 | $(PATH_SUB_CURRENT)
|
---|
243 | DevicesR3_SOURCES = \
|
---|
244 | Input/DevPS2.cpp \
|
---|
245 | Bus/DevPCI.cpp \
|
---|
246 | Graphics/DevVGA.cpp \
|
---|
247 | Storage/DevATA.cpp \
|
---|
248 | PC/DevPit-i8254.cpp \
|
---|
249 | PC/DevPIC.cpp \
|
---|
250 | PC/DevACPI.cpp \
|
---|
251 | PC/DevRTC.cpp \
|
---|
252 | PC/DevPcBios.cpp \
|
---|
253 | PC/DevPcArch.c \
|
---|
254 | VMMDev/VBoxDev.cpp \
|
---|
255 | VMMDev/VMMDevHGCM.cpp \
|
---|
256 | Network/DevPCNet.cpp \
|
---|
257 | Audio/DevIchAc97.cpp \
|
---|
258 | Audio/DevSB16.cpp \
|
---|
259 | PC/DevDMA.cpp \
|
---|
260 | Storage/fdc.c \
|
---|
261 | Serial/DevSerial.cpp \
|
---|
262 | Parallel/DevParallel.cpp
|
---|
263 |
|
---|
264 | ifdef VBOX_WITH_E1000
|
---|
265 | DevicesR3_DEFS += VBOX_WITH_E1000
|
---|
266 | DevicesR3_SOURCES += \
|
---|
267 | Network/DevE1000.cpp \
|
---|
268 | Network/DevE1000Phy.cpp \
|
---|
269 | Network/DevEEPROM.cpp
|
---|
270 | endif
|
---|
271 |
|
---|
272 | ifndef VBOX_OSE
|
---|
273 | DevicesR3_INCS += \
|
---|
274 | Network/lwip/src/include \
|
---|
275 | Network/lwip/src/include/ipv4 \
|
---|
276 | Network/lwip/vbox/include
|
---|
277 | DevicesR3_SOURCES += \
|
---|
278 | Network/lwip/src/api/api_lib.c \
|
---|
279 | Network/lwip/src/api/api_msg.c \
|
---|
280 | Network/lwip/src/api/err.c \
|
---|
281 | Network/lwip/src/api/sockets.c \
|
---|
282 | Network/lwip/src/api/tcpip.c \
|
---|
283 | Network/lwip/src/core/tcp_in.c \
|
---|
284 | Network/lwip/src/core/dhcp.c \
|
---|
285 | Network/lwip/src/core/inet.c \
|
---|
286 | Network/lwip/src/core/mem.c \
|
---|
287 | Network/lwip/src/core/memp.c \
|
---|
288 | Network/lwip/src/core/netif.c \
|
---|
289 | Network/lwip/src/core/pbuf.c \
|
---|
290 | Network/lwip/src/core/raw.c \
|
---|
291 | Network/lwip/src/core/stats.c \
|
---|
292 | Network/lwip/src/core/sys.c \
|
---|
293 | Network/lwip/src/core/tcp.c \
|
---|
294 | Network/lwip/src/core/ipv4/ip_addr.c \
|
---|
295 | Network/lwip/src/core/ipv4/icmp.c \
|
---|
296 | Network/lwip/src/core/ipv4/ip.c \
|
---|
297 | Network/lwip/src/core/ipv4/ip_frag.c \
|
---|
298 | Network/lwip/src/core/tcp_out.c \
|
---|
299 | Network/lwip/src/core/udp.c \
|
---|
300 | Network/lwip/src/netif/etharp.c \
|
---|
301 | Network/lwip/vbox/sys_arch.c \
|
---|
302 | Network/DevINIP.cpp
|
---|
303 | DevicesR3_DEFS += VBOX_WITH_INIP
|
---|
304 | endif
|
---|
305 |
|
---|
306 | ifdef VBOX_WITH_AHCI
|
---|
307 | DevicesR3_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
|
---|
308 | DevicesR3_SOURCES += \
|
---|
309 | Storage/DevAHCI.cpp \
|
---|
310 | Storage/ATAController.cpp
|
---|
311 | endif
|
---|
312 |
|
---|
313 | ifdef VBOX_WITH_BUSLOGIC
|
---|
314 | DevicesR3_DEFS += VBOX_WITH_BUSLOGIC
|
---|
315 | DevicesR3_SOURCES += \
|
---|
316 | Storage/DevBusLogic.cpp
|
---|
317 | endif
|
---|
318 |
|
---|
319 | ifdef VBOX_WITH_USB
|
---|
320 | DevicesR3_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
321 |
|
---|
322 | DevicesR3_SOURCES += \
|
---|
323 | USB/DevOHCI.cpp
|
---|
324 |
|
---|
325 | ifdef VBOX_WITH_EHCI
|
---|
326 | DevicesR3_DEFS += VBOX_WITH_EHCI
|
---|
327 | DevicesR3_SOURCES += \
|
---|
328 | USB/DevEHCI.cpp
|
---|
329 | endif
|
---|
330 |
|
---|
331 | endif
|
---|
332 |
|
---|
333 | DevicesR3_DEFS += VBOX_HGCM
|
---|
334 | DevicesR3_DEFS.linux += _GNU_SOURCE
|
---|
335 | DevicesR3_DEFS.l4 += _GNU_SOURCE
|
---|
336 |
|
---|
337 | # DevACPI.cpp needs vboxaml.hex which we generate from PC/vbox.dsl.
|
---|
338 | DevicesR3_CLEAN += $(PATH_TARGET)/vboxaml.hex $(PATH_TARGET)/vboxaml.aml
|
---|
339 | PC/DevACPI.cpp_DEPS = $(PATH_TARGET)/vboxaml.hex
|
---|
340 | PC/DevACPI.cpp_INCS = $(PATH_TARGET)
|
---|
341 |
|
---|
342 | $(PATH_TARGET)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl
|
---|
343 | $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
|
---|
344 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
345 |
|
---|
346 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
347 | Bus/DevPCI.cpp_INCS = Bus
|
---|
348 |
|
---|
349 | # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
|
---|
350 | Graphics/DevVGA.cpp_INCS = $(PATH_TARGET)
|
---|
351 | Graphics/DevVGA.cpp_DEPS = $(PATH_TARGET)/vbetables.h
|
---|
352 |
|
---|
353 |
|
---|
354 |
|
---|
355 | #
|
---|
356 | # VBoxDDGC (sysmod)
|
---|
357 | #
|
---|
358 | VBoxDDGC_TEMPLATE = VBOXGC
|
---|
359 | VBoxDDGC_DEFS =
|
---|
360 | VBoxDDGC_SYSSUFF = .gc
|
---|
361 | VBoxDDGC_INCS := \
|
---|
362 | $(PATH_SUB_CURRENT)
|
---|
363 | VBoxDDGC_SOURCES = \
|
---|
364 | Bus/DevPCI.cpp \
|
---|
365 | Graphics/DevVGA.cpp \
|
---|
366 | Input/DevPS2.cpp \
|
---|
367 | PC/DevACPI.cpp \
|
---|
368 | PC/DevPit-i8254.cpp \
|
---|
369 | PC/DevPIC.cpp \
|
---|
370 | PC/DevRTC.cpp \
|
---|
371 | Storage/DevATA.cpp \
|
---|
372 | Network/DevPCNet.cpp \
|
---|
373 | Serial/DevSerial.cpp \
|
---|
374 | Parallel/DevParallel.cpp
|
---|
375 |
|
---|
376 | ifdef VBOX_WITH_E1000
|
---|
377 | VBoxDDGC_DEFS += VBOX_WITH_E1000
|
---|
378 | VBoxDDGC_SOURCES += \
|
---|
379 | Network/DevE1000.cpp \
|
---|
380 | Network/DevE1000Phy.cpp
|
---|
381 | endif
|
---|
382 |
|
---|
383 | ifdef VBOX_WITH_USB
|
---|
384 | VBoxDDGC_DEFS += VBOX_WITH_USB IN_USB_GC
|
---|
385 | VBoxDDGC_SOURCES += \
|
---|
386 | USB/DevOHCI.cpp
|
---|
387 |
|
---|
388 | ifdef VBOX_WITH_EHCI
|
---|
389 | VBoxDDGC_DEFS += VBOX_WITH_EHCI
|
---|
390 | VBoxDDGC_SOURCES += \
|
---|
391 | USB/DevEHCI.cpp
|
---|
392 | endif
|
---|
393 |
|
---|
394 | endif
|
---|
395 |
|
---|
396 | ifdef VBOX_WITH_AHCI
|
---|
397 | VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
|
---|
398 | VBoxDDGC_SOURCES += \
|
---|
399 | Storage/DevAHCI.cpp \
|
---|
400 | Storage/ATAController.cpp
|
---|
401 | endif
|
---|
402 |
|
---|
403 | ifdef VBOX_WITH_BUSLOGIC
|
---|
404 | VBoxDDGC_DEFS += VBOX_WITH_BUSLOGIC
|
---|
405 | VBoxDDGC_SOURCES += \
|
---|
406 | Storage/DevBusLogic.cpp
|
---|
407 | endif
|
---|
408 |
|
---|
409 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
410 | VBoxDDGC_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
411 | endif
|
---|
412 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
413 | VBoxDDGC_LIBS = \
|
---|
414 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
415 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
416 | endif
|
---|
417 |
|
---|
418 |
|
---|
419 | #
|
---|
420 | # VBoxDDR0 (sysmod)
|
---|
421 | #
|
---|
422 | VBoxDDR0_TEMPLATE = VBOXR0
|
---|
423 | VBoxDDR0_SYSSUFF = .r0
|
---|
424 | VBoxDDR0_DEFS = IN_RT_R0
|
---|
425 | VBoxDDR0_INCS := \
|
---|
426 | $(PATH_SUB_CURRENT)
|
---|
427 | VBoxDDR0_SOURCES = \
|
---|
428 | Bus/DevPCI.cpp \
|
---|
429 | Graphics/DevVGA.cpp \
|
---|
430 | Input/DevPS2.cpp \
|
---|
431 | PC/DevACPI.cpp \
|
---|
432 | PC/DevPit-i8254.cpp \
|
---|
433 | PC/DevPIC.cpp \
|
---|
434 | PC/DevRTC.cpp \
|
---|
435 | Storage/DevATA.cpp \
|
---|
436 | Network/DevPCNet.cpp \
|
---|
437 | Serial/DevSerial.cpp \
|
---|
438 | Parallel/DevParallel.cpp
|
---|
439 |
|
---|
440 | ifdef VBOX_WITH_E1000
|
---|
441 | VBoxDDR0_DEFS += VBOX_WITH_E1000
|
---|
442 | VBoxDDR0_SOURCES += \
|
---|
443 | Network/DevE1000.cpp \
|
---|
444 | Network/DevE1000Phy.cpp
|
---|
445 | endif
|
---|
446 |
|
---|
447 | ifdef VBOX_WITH_USB
|
---|
448 | VBoxDDR0_DEFS += VBOX_WITH_USB IN_USB_R0
|
---|
449 | VBoxDDR0_SOURCES += \
|
---|
450 | USB/DevOHCI.cpp
|
---|
451 |
|
---|
452 | ifdef VBOX_WITH_EHCI
|
---|
453 | VBoxDDR0_DEFS += VBOX_WITH_EHCI
|
---|
454 | VBoxDDR0_SOURCES += \
|
---|
455 | USB/DevEHCI.cpp
|
---|
456 | endif
|
---|
457 | endif
|
---|
458 |
|
---|
459 | ifdef VBOX_WITH_AHCI
|
---|
460 | VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
|
---|
461 | VBoxDDR0_SOURCES += \
|
---|
462 | Storage/DevAHCI.cpp \
|
---|
463 | Storage/ATAController.cpp
|
---|
464 | endif
|
---|
465 |
|
---|
466 | ifdef VBOX_WITH_BUSLOGIC
|
---|
467 | VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
|
---|
468 | VBoxDDR0_SOURCES += \
|
---|
469 | Storage/DevBusLogic.cpp
|
---|
470 | endif
|
---|
471 |
|
---|
472 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
473 | VBoxDDR0_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
474 | endif
|
---|
475 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
476 | VBoxDDR0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
477 | endif
|
---|
478 | VBoxDDR0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
479 | ifeq ($(VBOX_LDR_FMT32),elf) # this is template stuff!
|
---|
480 | VBoxDDR0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
481 | endif
|
---|
482 |
|
---|
483 |
|
---|
484 | #
|
---|
485 | # VBoxDD2GC (LGPL sysmod)
|
---|
486 | #
|
---|
487 | VBoxDD2GC_TEMPLATE = VBOXGC
|
---|
488 | VBoxDD2GC_DEFS =
|
---|
489 | VBoxDD2GC_SYSSUFF = .gc
|
---|
490 | VBoxDD2GC_INCS := \
|
---|
491 | $(PATH_SUB_CURRENT)
|
---|
492 | VBoxDD2GC_SOURCES = \
|
---|
493 | PC/DevAPIC.cpp
|
---|
494 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
495 | VBoxDD2GC_LDFLAGS = -Entry:apicMMIOWrite
|
---|
496 | endif
|
---|
497 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
498 | VBoxDD2GC_LIBS = \
|
---|
499 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
500 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
501 | endif
|
---|
502 |
|
---|
503 |
|
---|
504 | #
|
---|
505 | # VBoxDD2R0 (LGPL sysmod)
|
---|
506 | #
|
---|
507 | VBoxDD2R0_TEMPLATE = VBOXR0
|
---|
508 | VBoxDD2R0_DEFS = IN_RT_R0
|
---|
509 | VBoxDD2R0_SYSSUFF = .r0
|
---|
510 | VBoxDD2R0_INCS := \
|
---|
511 | $(PATH_SUB_CURRENT)
|
---|
512 | VBoxDD2R0_SOURCES = \
|
---|
513 | PC/DevAPIC.cpp
|
---|
514 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
515 | VBoxDD2R0_LDFLAGS = -Entry:apicMMIOWrite
|
---|
516 | endif
|
---|
517 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
518 | VBoxDD2R0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
519 | endif
|
---|
520 | VBoxDD2R0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
521 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
522 | VBoxDD2R0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
523 | endif
|
---|
524 |
|
---|
525 |
|
---|
526 | #
|
---|
527 | # Drivers (library)
|
---|
528 | #
|
---|
529 | ifeq ($(KBUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
|
---|
530 | Drivers_TEMPLATE = VBOXR3NP
|
---|
531 | else
|
---|
532 | Drivers_TEMPLATE = VBOXR3
|
---|
533 | endif
|
---|
534 | Drivers_SDKS.win = WINPSDK W2K3DDK
|
---|
535 | Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
|
---|
536 | Drivers_DEFS = IN_IDE_R3
|
---|
537 | Drivers_DEFS.win += _WIN32_WINNT=0x0510
|
---|
538 | Drivers_INCS := \
|
---|
539 | $(PATH_SUB_CURRENT) \
|
---|
540 | Network/slirp
|
---|
541 | Drivers_SOURCES = \
|
---|
542 | Audio/audio.c \
|
---|
543 | Audio/audiosniffer.c \
|
---|
544 | Audio/mixeng.c \
|
---|
545 | Audio/noaudio.c \
|
---|
546 | Input/DrvKeyboardQueue.cpp \
|
---|
547 | Input/DrvMouseQueue.cpp \
|
---|
548 | Network/DrvIntNet.cpp \
|
---|
549 | PC/DrvACPI.cpp \
|
---|
550 | Serial/DrvChar.cpp \
|
---|
551 | Serial/DrvNamedPipe.cpp \
|
---|
552 | Storage/DrvBlock.cpp \
|
---|
553 | Storage/DrvHostBase.cpp \
|
---|
554 | Storage/DrvHostDVD.cpp \
|
---|
555 | Storage/DrvHostFloppy.cpp \
|
---|
556 | Storage/DrvMediaISO.cpp \
|
---|
557 | Storage/DrvRawImage.cpp \
|
---|
558 | Storage/DrvVD.cpp \
|
---|
559 | Storage/VBoxHDD.cpp \
|
---|
560 | Network/DrvNetSniffer.cpp \
|
---|
561 | Network/Pcap.cpp
|
---|
562 | ifndef VBOX_USE_NAT
|
---|
563 | Drivers_SOURCES += \
|
---|
564 | Network/DrvNAT.cpp \
|
---|
565 | Network/slirp/bootp.c \
|
---|
566 | Network/slirp/cksum.c \
|
---|
567 | Network/slirp/debug.c \
|
---|
568 | Network/slirp/if.c \
|
---|
569 | Network/slirp/ip_icmp.c \
|
---|
570 | Network/slirp/ip_input.c \
|
---|
571 | Network/slirp/ip_output.c \
|
---|
572 | Network/slirp/mbuf.c \
|
---|
573 | Network/slirp/misc.c \
|
---|
574 | Network/slirp/sbuf.c \
|
---|
575 | Network/slirp/slirp.c \
|
---|
576 | Network/slirp/socket.c \
|
---|
577 | Network/slirp/tcp_input.c \
|
---|
578 | Network/slirp/tcp_output.c \
|
---|
579 | Network/slirp/tcp_subr.c \
|
---|
580 | Network/slirp/tcp_timer.c \
|
---|
581 | Network/slirp/tftp.c \
|
---|
582 | Network/slirp/udp.c
|
---|
583 | else
|
---|
584 | NatAlias_TEMPLATE = VBOXR3NP
|
---|
585 |
|
---|
586 |
|
---|
587 | Drivers_SOURCES += Network/DrvNAT.cpp
|
---|
588 |
|
---|
589 | Network/DrvNAT.cpp_DEFS += VBOX_NAT_SOURCES
|
---|
590 |
|
---|
591 | Drivers_SOURCES += Network/nat/nat_socket.c
|
---|
592 |
|
---|
593 | NatAlias_CFLAGS += -include Network/nat/bsd.h
|
---|
594 | NatAlias_DEFS += VBOX_NAT_SOURCES
|
---|
595 | NatAlias_DEFS += __BSD_VISIBLE=1
|
---|
596 | NatAlias_DEFS += INET
|
---|
597 | NatAlias_DEFS += IPFIREWALL_NAT
|
---|
598 | NatAlias_DEFS += RWLOCK_NOINLINE
|
---|
599 | NatAlias_DEFS += MUTEX_NOINLINE
|
---|
600 |
|
---|
601 | NatAlias_DEFS += IN_NAT # used in Network/nat/nat.h (which glues VBox and *BSD sources)
|
---|
602 |
|
---|
603 | NatAlias_DEFS.linux += _GNU_SOURCE
|
---|
604 |
|
---|
605 | NatAlias_SOURCES += Network/nat/nat_utils.c
|
---|
606 | NatAlias_SOURCES += Network/nat/src/sys/netinet/ip_fw_nat.c
|
---|
607 | NatAlias_SOURCES += Network/nat/src/sys/netinet/in_cksum.c
|
---|
608 | NatAlias_SOURCES += Network/nat/src/sys/net/if.c
|
---|
609 | NatAlias_SOURCES += Network/nat/src/sys/net/if_ef.c
|
---|
610 | NatAlias_SOURCES += Network/nat/src/sys/net/if_ethersubr.c
|
---|
611 | NatAlias_SOURCES += Network/nat/src/sys/net/route.c
|
---|
612 | NatAlias_SOURCES += Network/nat/src/sys/net/pfil.c
|
---|
613 | NatAlias_SOURCES += Network/nat/src/sys/net/netisr.c
|
---|
614 | NatAlias_SOURCES += Network/nat/src/sys/net/radix.c
|
---|
615 | NatAlias_SOURCES += Network/nat/src/sys/netinet/ip_options.c
|
---|
616 | NatAlias_SOURCES += Network/nat/src/sys/netinet/tcp_timewait.c
|
---|
617 | NatAlias_SOURCES += Network/nat/src/sys/netinet/tcp_timer.c
|
---|
618 | NatAlias_SOURCES += Network/nat/src/sys/netinet/if_ether.c
|
---|
619 | NatAlias_SOURCES += Network/nat/src/sys/netinet/in.c
|
---|
620 | NatAlias_SOURCES += Network/nat/src/sys/netinet/in_pcb.c
|
---|
621 | NatAlias_SOURCES += Network/nat/src/sys/netinet/in_proto.c
|
---|
622 | NatAlias_SOURCES += Network/nat/src/sys/netinet/in_rmx.c
|
---|
623 | NatAlias_SOURCES += Network/nat/src/sys/netinet/in_mcast.c
|
---|
624 | NatAlias_SOURCES += Network/nat/src/sys/netinet/ip_icmp.c
|
---|
625 | NatAlias_SOURCES += Network/nat/src/sys/netinet/ip_fastfwd.c
|
---|
626 | NatAlias_SOURCES += Network/nat/src/sys/netinet/ip_output.c
|
---|
627 | NatAlias_SOURCES += Network/nat/src/sys/netinet/ip_input.c
|
---|
628 | NatAlias_SOURCES += Network/nat/src/sys/netinet/ip_mroute.c
|
---|
629 | NatAlias_SOURCES += Network/nat/src/sys/netinet/ip_id.c
|
---|
630 | NatAlias_SOURCES += Network/nat/src/sys/netinet/raw_ip.c
|
---|
631 | NatAlias_SOURCES += Network/nat/src/sys/netinet/tcp_syncache.c
|
---|
632 | NatAlias_SOURCES += Network/nat/src/sys/netinet/tcp_sack.c
|
---|
633 | NatAlias_SOURCES += Network/nat/src/sys/netinet/tcp_subr.c
|
---|
634 | NatAlias_SOURCES += Network/nat/src/sys/netinet/tcp_input.c
|
---|
635 | NatAlias_SOURCES += Network/nat/src/sys/netinet/tcp_output.c
|
---|
636 | NatAlias_SOURCES += Network/nat/src/sys/netinet/tcp_reass.c
|
---|
637 | NatAlias_SOURCES += Network/nat/src/sys/netinet/tcp_hostcache.c
|
---|
638 | NatAlias_SOURCES += Network/nat/src/sys/netinet/tcp_usrreq.c
|
---|
639 | NatAlias_SOURCES += Network/nat/src/sys/netinet/udp_usrreq.c
|
---|
640 | NatAlias_SOURCES += Network/nat/src/sys/kern/subr_eventhandler.c
|
---|
641 | NatAlias_SOURCES += Network/nat/src/sys/kern/kern_mbuf.c
|
---|
642 | NatAlias_SOURCES += Network/nat/src/sys/kern/kern_subr.c
|
---|
643 | NatAlias_SOURCES += Network/nat/src/sys/kern/kern_resource.c
|
---|
644 | NatAlias_SOURCES += Network/nat/src/sys/kern/kern_time.c
|
---|
645 | NatAlias_SOURCES += Network/nat/src/sys/kern/kern_clock.c
|
---|
646 | #NatAlias_SOURCES += Network/nat/src/sys/kern/kern_timeout.c
|
---|
647 | NatAlias_SOURCES += Network/nat/src/sys/kern/subr_sbuf.c
|
---|
648 | NatAlias_SOURCES += Network/nat/src/sys/kern/uipc_mbuf.c
|
---|
649 | NatAlias_SOURCES += Network/nat/src/sys/kern/uipc_mbuf2.c
|
---|
650 | NatAlias_SOURCES += Network/nat/src/sys/kern/uipc_sockbuf.c
|
---|
651 | NatAlias_SOURCES += Network/nat/src/sys/kern/uipc_socket.c
|
---|
652 | NatAlias_SOURCES += Network/nat/src/sys/kern/uipc_domain.c
|
---|
653 | NatAlias_SOURCES += Network/nat/src/sys/vm/uma_core.c
|
---|
654 | NatAlias_SOURCES += Network/nat/src/sys/netinet/ip_fw2.c
|
---|
655 | NatAlias_SOURCES += Network/nat/src/sys/netinet/libalias/alias.c
|
---|
656 | #NatAlias_SOURCES += Network/nat/src/sys/netinet/libalias/alias_cuseeme.c
|
---|
657 | NatAlias_SOURCES += Network/nat/src/sys/netinet/libalias/alias_db.c
|
---|
658 | NatAlias_SOURCES += Network/nat/src/sys/netinet/libalias/alias_dummy.c
|
---|
659 | #NatAlias_SOURCES += Network/nat/src/sys/libalias/alias_ftp.c
|
---|
660 | #NatAlias_SOURCES += Network/nat/src/sys/libalias/alias_irc.c
|
---|
661 | NatAlias_SOURCES += Network/nat/src/sys/netinet/libalias/alias_mod.c
|
---|
662 | #NatAlias_SOURCES += Network/nat/src/sys/libalias/alias_nbt.c
|
---|
663 | #NatAlias_SOURCES += Network/nat/src/sys/libalias/alias_pptp.c
|
---|
664 | NatAlias_SOURCES += Network/nat/src/sys/netinet/libalias/alias_proxy.c
|
---|
665 | #NatAlias_SOURCES += Network/nat/src/sys/libalias/alias_skinny.c
|
---|
666 | #NatAlias_SOURCES += Network/nat/src/sys/libalias/alias_smedia.c
|
---|
667 | NatAlias_SOURCES += Network/nat/src/sys/netinet/libalias/alias_util.c
|
---|
668 |
|
---|
669 | NatAlias_SOURCES.amd64 += Network/nat/src/sys/amd64/amd64/in_cksum.c
|
---|
670 |
|
---|
671 | NatAlias_INCS += Network/nat/src/sys
|
---|
672 | NatAlias_INCS += Network/nat/src/sys/contrib/altq
|
---|
673 | NatAlias_INCS.amd64 += Network/nat/src/sys/amd64/include
|
---|
674 | endif
|
---|
675 |
|
---|
676 | # -- OS specific --
|
---|
677 |
|
---|
678 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
679 | Drivers_SOURCES := $(filter-out \
|
---|
680 | Storage/DrvHostRaw% \
|
---|
681 | Storage/DrvHostFloppy% \
|
---|
682 | , $(Drivers_SOURCES)) \
|
---|
683 | Audio/coreaudio.c
|
---|
684 | Drivers_SOURCES.darwin =
|
---|
685 | endif # darwin
|
---|
686 |
|
---|
687 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
688 | Drivers_SOURCES := $(filter-out \
|
---|
689 | Storage/DrvHost% \
|
---|
690 | , $(Drivers_SOURCES))
|
---|
691 | Drivers_SOURCES.freebsd =
|
---|
692 | endif # freebsd
|
---|
693 |
|
---|
694 |
|
---|
695 | ifeq ($(KBUILD_TARGET),l4)
|
---|
696 | Drivers_SOURCES = \
|
---|
697 | Input/DrvMouseQueue.cpp \
|
---|
698 | Input/DrvKeyboardQueue.cpp \
|
---|
699 | Storage/VBoxHDD.cpp \
|
---|
700 | Storage/DrvBlock.cpp \
|
---|
701 | Storage/DrvMediaISO.cpp \
|
---|
702 | Storage/DrvRawImage.cpp \
|
---|
703 | Storage/DrvHostBase.cpp \
|
---|
704 | Storage/DrvHostDVD.cpp \
|
---|
705 | Storage/DrvVD.cpp \
|
---|
706 | PC/DrvACPI.cpp \
|
---|
707 | Network/DrvIntNet.cpp \
|
---|
708 | Network/DrvNetSniffer.cpp \
|
---|
709 | Network/Pcap.cpp \
|
---|
710 | Audio/audio.c \
|
---|
711 | Audio/mixeng.c \
|
---|
712 | Audio/noaudio.c \
|
---|
713 | Audio/audiosniffer.c
|
---|
714 |
|
---|
715 | Drivers_SOURCES.l4 = \
|
---|
716 | Network/DrvTAP.cpp \
|
---|
717 | Audio/ossaudio.c
|
---|
718 | endif # l4
|
---|
719 |
|
---|
720 | Drivers_SOURCES.linux = \
|
---|
721 | Network/DrvTAP.cpp \
|
---|
722 | Audio/ossaudio.c \
|
---|
723 | Parallel/DrvHostParallel.cpp \
|
---|
724 | Serial/DrvHostSerial.cpp
|
---|
725 |
|
---|
726 | ifeq ($(KBUILD_TARGET),os2)
|
---|
727 | Drivers_SOURCES := $(filter-out \
|
---|
728 | Storage/DrvHost% \
|
---|
729 | , $(Drivers_SOURCES))
|
---|
730 | Drivers_SOURCES.os2 = \
|
---|
731 | Network/DrvTAPOs2.cpp
|
---|
732 | endif
|
---|
733 |
|
---|
734 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
735 | Drivers_SOURCES := $(filter-out \
|
---|
736 | Storage/DrvHost% \
|
---|
737 | , $(Drivers_SOURCES))
|
---|
738 | Drivers_SOURCES.solaris = \
|
---|
739 | Audio/solaudio.c \
|
---|
740 | $(if $(VBOX_SOLARIS_10),,Network/DrvTAP.cpp) \
|
---|
741 | Storage/DrvHostBase.cpp \
|
---|
742 | Storage/DrvHostDVD.cpp
|
---|
743 | ifdef VBOX_WITH_CROSSBOW
|
---|
744 | Drivers_SOURCES += Network/solaris/vbox-libdlpi.cpp
|
---|
745 | Drivers_DEFS += VBOX_WITH_CROSSBOW
|
---|
746 | endif
|
---|
747 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
748 | Drivers_DEFS += VBOX_WITH_SUID_WRAPPER
|
---|
749 | endif
|
---|
750 | endif
|
---|
751 |
|
---|
752 | Drivers_SOURCES.win = \
|
---|
753 | Network/DrvTAPWin.cpp \
|
---|
754 | Audio/dsoundaudio.c \
|
---|
755 | Serial/DrvHostSerial.cpp
|
---|
756 |
|
---|
757 |
|
---|
758 | # -- features --
|
---|
759 |
|
---|
760 | ifdef VBOX_WITH_ISCSI
|
---|
761 | Drivers_SOURCES += \
|
---|
762 | Storage/DrvISCSI.cpp \
|
---|
763 | Storage/DrvISCSITransportTCP.cpp
|
---|
764 | Drivers_DEFS += VBOX_WITH_ISCSI
|
---|
765 | Storage/DrvISCSITransportTCP.cpp_INCS = \
|
---|
766 | Network/lwip/src/include \
|
---|
767 | Network/lwip/src/include/ipv4 \
|
---|
768 | Network/lwip/vbox/include
|
---|
769 | VBoxDDU_SOURCES += \
|
---|
770 | Storage/ISCSIHDDCore.cpp
|
---|
771 | VBoxDDU_DEFS += VBOX_WITH_ISCSI
|
---|
772 | endif # VBOX_WITH_ISCSI
|
---|
773 |
|
---|
774 | ifdef VBOX_WITH_ALSA
|
---|
775 | Drivers_DEFS.linux += VBOX_WITH_ALSA
|
---|
776 | Drivers_SOURCES.linux+= \
|
---|
777 | Audio/alsaaudio.c \
|
---|
778 | Audio/alsa_stubs.c
|
---|
779 | # VBoxDD_LIBS.linux += asound
|
---|
780 | endif
|
---|
781 |
|
---|
782 | ifdef VBOX_WITH_PULSE
|
---|
783 | Drivers_DEFS.linux += VBOX_WITH_PULSE
|
---|
784 | Drivers_SOURCES.linux+= \
|
---|
785 | Audio/pulseaudio.c \
|
---|
786 | Audio/pulse_stubs.c
|
---|
787 | # VBoxDD_LIBS.linux += pulse
|
---|
788 | endif
|
---|
789 |
|
---|
790 | ifdef VBOX_WITH_USB
|
---|
791 | Drivers_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
792 | Drivers_SOURCES += \
|
---|
793 | USB/DrvVUSBRootHub.cpp \
|
---|
794 | USB/VUSBDevice.cpp \
|
---|
795 | USB/VUSBUrb.cpp
|
---|
796 | ifdef VBOX_WITH_VRDP
|
---|
797 | Drivers_DEFS += VBOX_VRDP
|
---|
798 | Drivers_SOURCES += \
|
---|
799 | USB/vrdp/USBProxyDevice-vrdp.cpp
|
---|
800 | endif
|
---|
801 |
|
---|
802 | Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
803 | ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
804 | Drivers_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
805 | endif
|
---|
806 | Drivers_SOURCES.darwin += \
|
---|
807 | USB/USBProxyDevice.cpp \
|
---|
808 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
809 |
|
---|
810 | Drivers_DEFS.linux += VUSB_HAVE_USBPROXY_DEVICE
|
---|
811 | ifdef VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
812 | Drivers_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
813 | endif
|
---|
814 | Drivers_SOURCES.linux+= \
|
---|
815 | USB/USBProxyDevice.cpp \
|
---|
816 | USB/linux/USBProxyDevice-linux.cpp
|
---|
817 |
|
---|
818 | Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
819 | Drivers_SOURCES.l4 += \
|
---|
820 | USB/USBProxyDevice.cpp \
|
---|
821 | USB/linux/USBProxyDevice-linux.cpp
|
---|
822 |
|
---|
823 | Drivers_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
824 | Drivers_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
825 | Drivers_SOURCES.os2 += \
|
---|
826 | USB/USBProxyDevice.cpp \
|
---|
827 | USB/os2/USBProxyDevice-os2.cpp
|
---|
828 |
|
---|
829 | Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
830 | Drivers_SOURCES.win += \
|
---|
831 | USB/USBProxyDevice.cpp \
|
---|
832 | USB/win/USBProxyDevice-win.cpp
|
---|
833 |
|
---|
834 | Drivers_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
|
---|
835 | Drivers_SOURCES.solaris += \
|
---|
836 | USB/USBProxyDevice.cpp \
|
---|
837 | USB/solaris/USBProxyDevice-solaris.cpp
|
---|
838 | endif # VBOX_WITH_USB
|
---|
839 |
|
---|
840 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
841 | Drivers_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
842 | Drivers_SOURCES += \
|
---|
843 | Storage/DrvRawImageAsync.cpp \
|
---|
844 | Storage/DrvTransportAsync.cpp
|
---|
845 | endif #VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
846 |
|
---|
847 | ifdef VBOX_WITH_BUSLOGIC
|
---|
848 | Drivers_DEFS += VBOX_WITH_BUSLOGIC
|
---|
849 | Drivers_SOURCES += \
|
---|
850 | Storage/DrvSCSI.cpp
|
---|
851 | endif # VBOX_WITH_BUSLOGIC
|
---|
852 |
|
---|
853 | #
|
---|
854 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
855 | #
|
---|
856 | ServicesR0_TEMPLATE = VBOXR0
|
---|
857 | ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
|
---|
858 | ServicesR0_SOURCES = \
|
---|
859 | Network/SrvIntNetR0.cpp
|
---|
860 |
|
---|
861 | #
|
---|
862 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
863 | #
|
---|
864 | ifdef VBOX_WITH_TESTCASES
|
---|
865 | PROGRAMS += tstIntNetR0
|
---|
866 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
867 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
868 | tstIntNetR0_SOURCES = \
|
---|
869 | Network/testcase/tstIntNetR0.cpp
|
---|
870 | endif
|
---|
871 |
|
---|
872 | #
|
---|
873 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
874 | #
|
---|
875 | ifdef VBOX_WITH_TESTCASES
|
---|
876 | PROGRAMS += tstIntNet-1
|
---|
877 | tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
|
---|
878 | tstIntNet-1_SOURCES = \
|
---|
879 | Network/testcase/tstIntNet-1.cpp \
|
---|
880 | Network/Pcap.cpp
|
---|
881 | endif
|
---|
882 |
|
---|
883 |
|
---|
884 | #
|
---|
885 | # EEPROM device unit test requires cppunit
|
---|
886 | #
|
---|
887 | ifdef VBOX_WITH_CPPUNIT_TESTCASES
|
---|
888 | ifdef VBOX_WITH_E1000
|
---|
889 | PROGRAMS += tstDevEEPROM
|
---|
890 | tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
|
---|
891 | tstDevEEPROM_SOURCES = \
|
---|
892 | Network/testcase/tstDevEEPROM.cpp
|
---|
893 | tstDevEEPROM_LIBS = \
|
---|
894 | $(TARGET_DevicesR3)
|
---|
895 | PROGRAMS += tstDevPhy
|
---|
896 | tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
|
---|
897 | tstDevPhy_SOURCES = \
|
---|
898 | Network/testcase/tstDevPhy.cpp \
|
---|
899 | Network/DevE1000Phy.cpp
|
---|
900 | tstDevPhy_DEFS = PHY_UNIT_TEST
|
---|
901 | endif
|
---|
902 | endif
|
---|
903 |
|
---|
904 | include $(KBUILD_PATH)/subfooter.kmk
|
---|