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