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