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