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