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