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