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