1 | # $Id: Makefile.kmk 7654 2008-03-31 12:13:35Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the devices, drivers and services.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
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 |
|
---|
18 | DEPTH = ../../..
|
---|
19 | include $(PATH_KBUILD)/subheader.kmk
|
---|
20 |
|
---|
21 | # Include sub-makefiles.
|
---|
22 | include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
|
---|
23 | include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
|
---|
24 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
25 | include $(PATH_SUB_CURRENT)/Storage/testcase/Makefile.kmk
|
---|
26 |
|
---|
27 | # Subdirs with complex makefiles.
|
---|
28 | ifdef VBOX_WITH_INTEL_PXE
|
---|
29 | SUBDIRS_LIBRARIES = PC/PXE
|
---|
30 | SUBDIRS_CLEAN = PC/PXE
|
---|
31 | else
|
---|
32 | SUBDIRS_LIBRARIES = PC/Etherboot-src
|
---|
33 | SUBDIRS_CLEAN = PC/Etherboot-src
|
---|
34 | endif
|
---|
35 |
|
---|
36 | ifndef VBOX_OSE
|
---|
37 | SUBDIRS_LIBRARIES += Storage/VBoxHDDFormats
|
---|
38 | SUBDIRS_CLEAN += Storage/VBoxHDDFormats
|
---|
39 | endif
|
---|
40 |
|
---|
41 | #
|
---|
42 | # Main targets.
|
---|
43 | #
|
---|
44 | LIBRARIES += DevicesR3 Drivers ServicesR0
|
---|
45 | DLLS += VBoxDDU VBoxDD VBoxDD2
|
---|
46 | SYSMODS += VBoxDDGC VBoxDD2GC VBoxDDR0 VBoxDD2R0
|
---|
47 |
|
---|
48 |
|
---|
49 | #
|
---|
50 | # Enable the pdm lock (experimental).
|
---|
51 | #
|
---|
52 | ifdef VBOX_WITH_PDM_LOCK
|
---|
53 | DEFS += VBOX_WITH_PDM_LOCK
|
---|
54 | endif
|
---|
55 |
|
---|
56 |
|
---|
57 | #
|
---|
58 | # VBoxDDU (shared object)
|
---|
59 | #
|
---|
60 | VBoxDDU_TEMPLATE = VBOXR3
|
---|
61 | VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
|
---|
62 | VBoxDDU_DEFS = IN_VBOXDDU
|
---|
63 | ifdef VBOX_WITH_USB
|
---|
64 | VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
|
---|
65 | VBoxDDU_SDKS.win = WINPSDK W2K3DDK
|
---|
66 | ifdef VBOX_WITH_EHCI
|
---|
67 | VBoxDDU_DEFS += VBOX_WITH_EHCI
|
---|
68 | endif
|
---|
69 | else
|
---|
70 | VBoxDDU_SDKS.win = WINPSDK
|
---|
71 | endif
|
---|
72 | VBoxDDU_SOURCES = \
|
---|
73 | Storage/VBoxHDD-new.cpp \
|
---|
74 | Storage/VDICore.cpp \
|
---|
75 | Storage/VDIHDDCore.cpp \
|
---|
76 | Storage/VmdkHDDCore.cpp \
|
---|
77 | Storage/RawHDDCore.cpp \
|
---|
78 | VBoxDDUDeps.cpp
|
---|
79 | ifndef VBOX_OSE
|
---|
80 | VBoxDDU_SOURCES += \
|
---|
81 | Storage/VHDHDDCore.cpp
|
---|
82 | endif
|
---|
83 | ifdef VBOX_WITH_USB
|
---|
84 | VBoxDDU_SOURCES.win = \
|
---|
85 | USB/win32/USBLib-win32.cpp
|
---|
86 | VBoxDDU_INCS.os2 += \
|
---|
87 | $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
88 | endif
|
---|
89 | VBoxDDU_LIBS = \
|
---|
90 | $(LIB_RUNTIME)
|
---|
91 | ifdef VBOX_WITH_USB
|
---|
92 | VBoxDDU_LIBS += \
|
---|
93 | $(PATH_LIB)/USBLib$(VBOX_SUFF_LIB)
|
---|
94 | endif
|
---|
95 | ifeq ($(BUILD_TARGET),l4)
|
---|
96 | VBoxDDU_LIBS += \
|
---|
97 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
98 | endif
|
---|
99 | VBoxDDU_LDFLAGS.darwin = -install_name @executable_path/VBoxDDU.dylib
|
---|
100 | VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
|
---|
101 | VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
102 |
|
---|
103 | #
|
---|
104 | # VBoxDDULnxHostR3 (Only needed for l4, currently for executing vditool on L4Linux.)
|
---|
105 | #
|
---|
106 | ifeq ($(BUILD_TARGET),l4)
|
---|
107 | LIBRARIES += VBoxDDULnxHostR3
|
---|
108 | VBoxDDULnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
|
---|
109 | VBoxDDULnxHostR3_DEFS = IN_VBOXDDU
|
---|
110 | VBoxDDULnxHostR3_SOURCES = $(VBoxDDU_SOURCES)
|
---|
111 | endif
|
---|
112 |
|
---|
113 | #
|
---|
114 | # VBoxDD (shared object)
|
---|
115 | #
|
---|
116 | VBoxDD_TEMPLATE = VBOXR3
|
---|
117 | VBoxDD_SDKS.win = WINPSDK DXSDK W2K3DDK VBOX_NTDLL
|
---|
118 | VBoxDD_SOURCES = \
|
---|
119 | Builtins.cpp
|
---|
120 | VBoxDD_DEFS = VBOX_ACPI
|
---|
121 | ifdef VBOX_WITH_USB
|
---|
122 | VBoxDD_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
123 | ifdef VBOX_WITH_EHCI
|
---|
124 | VBoxDD_DEFS += VBOX_WITH_EHCI
|
---|
125 | endif
|
---|
126 | endif
|
---|
127 | ifdef VBOX_WITH_AHCI
|
---|
128 | VBoxDD_DEFS += VBOX_WITH_AHCI
|
---|
129 | endif
|
---|
130 | ifdef VBOX_WITH_ISCSI
|
---|
131 | VBoxDD_DEFS += VBOX_WITH_ISCSI
|
---|
132 | endif
|
---|
133 | ifdef VBOX_WITH_E1000
|
---|
134 | VBoxDD_DEFS += VBOX_WITH_E1000
|
---|
135 | endif
|
---|
136 | ifndef VBOX_OSE
|
---|
137 | VBoxDD_DEFS += VBOX_WITH_INIP
|
---|
138 | endif
|
---|
139 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
140 | VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
141 | endif
|
---|
142 | VBoxDD_LIBS = \
|
---|
143 | $(PATH_LIB)/DevicesR3$(VBOX_SUFF_LIB) \
|
---|
144 | $(PATH_LIB)/Drivers$(VBOX_SUFF_LIB) \
|
---|
145 | $(PATH_LIB)/PcDefBiosLogo$(VBOX_SUFF_LIB) \
|
---|
146 | $(LIB_VMM) \
|
---|
147 | $(LIB_RUNTIME)
|
---|
148 | ifeq ($(BUILD_TARGET),win)
|
---|
149 | VBoxDD_LIBS += \
|
---|
150 | $(LIB_DDU) \
|
---|
151 | $(PATH_LIB)/VBoxDD2.lib \
|
---|
152 | $(PATH_SDK_DXSDK_LIB)/dxguid.lib
|
---|
153 | else
|
---|
154 | VBoxDD_LIBS += \
|
---|
155 | $(INSTARGET_VBoxDDU) \
|
---|
156 | $(INSTARGET_VBoxDD2)
|
---|
157 | endif
|
---|
158 | ifeq ($(BUILD_TARGET),l4)
|
---|
159 | VBoxDD_LIBS += \
|
---|
160 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
161 | endif
|
---|
162 | ifeq ($(BUILD_TARGET),solaris)
|
---|
163 | VBoxDD_LIBS += adm
|
---|
164 | ifdef VBOX_WITH_CROSSBOW
|
---|
165 | VBoxDD_LIBS += dlpi
|
---|
166 | endif
|
---|
167 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
168 | VBoxDD_LIBS += secdb
|
---|
169 | endif
|
---|
170 | endif
|
---|
171 | VBoxDD_LIBS.darwin += \
|
---|
172 | $(LIB_REM)
|
---|
173 | VBoxDD_LDFLAGS.darwin = -install_name @executable_path/VBoxDD.dylib \
|
---|
174 | -framework CoreAudio \
|
---|
175 | -framework IOKit \
|
---|
176 | -framework Carbon \
|
---|
177 | -framework DiskArbitration
|
---|
178 | VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
|
---|
179 | VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
180 |
|
---|
181 |
|
---|
182 | # damn, fix this.
|
---|
183 | ifeq ($(BUILD_TARGET),win)
|
---|
184 | $(PATH_LIB)/VBoxDD2.lib: $(PATH_BIN)/VBoxDD2.dll
|
---|
185 | $(PATH_LIB)/VBoxDDU.lib: $(PATH_BIN)/VBoxDDU.dll
|
---|
186 | endif
|
---|
187 |
|
---|
188 |
|
---|
189 | #
|
---|
190 | # VBoxDD2 (shared object)
|
---|
191 | #
|
---|
192 | VBoxDD2_TEMPLATE = VBOXR3
|
---|
193 | VBoxDD2_DEFS = IN_VBOXDD2
|
---|
194 | VBoxDD2_INCS := \
|
---|
195 | $(PATH_SUB_CURRENT)
|
---|
196 | VBoxDD2_SOURCES = \
|
---|
197 | Builtins2.cpp \
|
---|
198 | PC/DevAPIC.cpp
|
---|
199 | VBoxDD2_LIBS = \
|
---|
200 | $(PATH_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
201 | $(PATH_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
202 | $(PATH_LIB)/NetBiosBin$(VBOX_SUFF_LIB) \
|
---|
203 | $(LIB_VMM) \
|
---|
204 | $(LIB_RUNTIME)
|
---|
205 | ifeq ($(BUILD_TARGET),l4)
|
---|
206 | VBoxDD2_LIBS += \
|
---|
207 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
208 | endif
|
---|
209 | VBoxDD2_LIBS.darwin += $(LIB_REM)
|
---|
210 | VBoxDD2_LDFLAGS.darwin = -install_name @executable_path/VBoxDD2.dylib
|
---|
211 | VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
|
---|
212 | VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
|
---|
213 |
|
---|
214 |
|
---|
215 | #
|
---|
216 | # DevicesR3 (library)
|
---|
217 | #
|
---|
218 | DevicesR3_TEMPLATE = VBOXR3
|
---|
219 | DevicesR3_SDKS.win = WINPSDK W2K3DDK
|
---|
220 | DevicesR3_INCS := \
|
---|
221 | $(PATH_SUB_CURRENT)
|
---|
222 | DevicesR3_SOURCES = \
|
---|
223 | Input/DevPS2.cpp \
|
---|
224 | Bus/DevPCI.cpp \
|
---|
225 | Graphics/DevVGA.cpp \
|
---|
226 | Storage/DevATA.cpp \
|
---|
227 | PC/DevPit-i8254.cpp \
|
---|
228 | PC/DevPIC.cpp \
|
---|
229 | PC/DevACPI.cpp \
|
---|
230 | PC/DevRTC.cpp \
|
---|
231 | PC/DevPcBios.cpp \
|
---|
232 | PC/DevPcArch.c \
|
---|
233 | VMMDev/VBoxDev.cpp \
|
---|
234 | VMMDev/VMMDevHGCM.cpp \
|
---|
235 | Network/DevPCNet.cpp \
|
---|
236 | Audio/DevIchAc97.cpp \
|
---|
237 | Audio/DevSB16.cpp \
|
---|
238 | PC/DevDMA.cpp \
|
---|
239 | Storage/fdc.c \
|
---|
240 | Serial/DevSerial.cpp \
|
---|
241 | Parallel/DevParallel.cpp
|
---|
242 |
|
---|
243 | ifdef VBOX_WITH_E1000
|
---|
244 | DevicesR3_DEFS += VBOX_WITH_E1000
|
---|
245 | DevicesR3_SOURCES += \
|
---|
246 | Network/DevE1000.cpp \
|
---|
247 | Network/DevE1000Phy.cpp \
|
---|
248 | Network/DevEEPROM.cpp
|
---|
249 | endif
|
---|
250 |
|
---|
251 | ifndef VBOX_OSE
|
---|
252 | DevicesR3_INCS += \
|
---|
253 | Network/lwip/src/include \
|
---|
254 | Network/lwip/src/include/ipv4 \
|
---|
255 | Network/lwip/vbox/include
|
---|
256 | DevicesR3_SOURCES += \
|
---|
257 | Network/lwip/src/api/api_lib.c \
|
---|
258 | Network/lwip/src/api/api_msg.c \
|
---|
259 | Network/lwip/src/api/err.c \
|
---|
260 | Network/lwip/src/api/sockets.c \
|
---|
261 | Network/lwip/src/api/tcpip.c \
|
---|
262 | Network/lwip/src/core/tcp_in.c \
|
---|
263 | Network/lwip/src/core/dhcp.c \
|
---|
264 | Network/lwip/src/core/inet.c \
|
---|
265 | Network/lwip/src/core/mem.c \
|
---|
266 | Network/lwip/src/core/memp.c \
|
---|
267 | Network/lwip/src/core/netif.c \
|
---|
268 | Network/lwip/src/core/pbuf.c \
|
---|
269 | Network/lwip/src/core/raw.c \
|
---|
270 | Network/lwip/src/core/stats.c \
|
---|
271 | Network/lwip/src/core/sys.c \
|
---|
272 | Network/lwip/src/core/tcp.c \
|
---|
273 | Network/lwip/src/core/ipv4/ip_addr.c \
|
---|
274 | Network/lwip/src/core/ipv4/icmp.c \
|
---|
275 | Network/lwip/src/core/ipv4/ip.c \
|
---|
276 | Network/lwip/src/core/ipv4/ip_frag.c \
|
---|
277 | Network/lwip/src/core/tcp_out.c \
|
---|
278 | Network/lwip/src/core/udp.c \
|
---|
279 | Network/lwip/src/netif/etharp.c \
|
---|
280 | Network/lwip/vbox/sys_arch.c \
|
---|
281 | Network/DevINIP.cpp
|
---|
282 | DevicesR3_DEFS += VBOX_WITH_INIP
|
---|
283 | endif
|
---|
284 |
|
---|
285 | ifdef VBOX_WITH_AHCI
|
---|
286 | DevicesR3_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
|
---|
287 | DevicesR3_SOURCES += \
|
---|
288 | Storage/DevAHCI.cpp \
|
---|
289 | Storage/ATAController.cpp
|
---|
290 | endif
|
---|
291 |
|
---|
292 | ifdef VBOX_WITH_USB
|
---|
293 | DevicesR3_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
294 |
|
---|
295 | DevicesR3_SOURCES += \
|
---|
296 | USB/DevOHCI.cpp
|
---|
297 |
|
---|
298 | ifdef VBOX_WITH_EHCI
|
---|
299 | DevicesR3_DEFS += VBOX_WITH_EHCI
|
---|
300 | DevicesR3_SOURCES += \
|
---|
301 | USB/DevEHCI.cpp
|
---|
302 | endif
|
---|
303 |
|
---|
304 | endif
|
---|
305 |
|
---|
306 | DevicesR3_DEFS += VBOX_HGCM
|
---|
307 | DevicesR3_DEFS.linux += _GNU_SOURCE
|
---|
308 | DevicesR3_DEFS.l4 += _GNU_SOURCE
|
---|
309 |
|
---|
310 | # DevACPI.cpp needs vboxaml.hex which we generate from PC/vbox.dsl.
|
---|
311 | DevicesR3_CLEAN += $(PATH_TARGET)/vboxaml.hex $(PATH_TARGET)/vboxaml.aml
|
---|
312 | PC/DevACPI.cpp_DEPS = $(PATH_TARGET)/vboxaml.hex
|
---|
313 | PC/DevACPI.cpp_INCS = $(PATH_TARGET)
|
---|
314 |
|
---|
315 | $(PATH_TARGET)/vboxaml.hex: PC/vbox.dsl
|
---|
316 | $(call MSG_TOOL,iasl,DevicesR3,$<,$@)
|
---|
317 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
318 |
|
---|
319 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
320 | Bus/DevPCI.cpp_INCS = Bus
|
---|
321 |
|
---|
322 | # for finding vbetables.h
|
---|
323 | Graphics/DevVGA.cpp_INCS = $(PATH_TARGET)
|
---|
324 |
|
---|
325 |
|
---|
326 |
|
---|
327 | #
|
---|
328 | # VBoxDDGC (sysmod)
|
---|
329 | #
|
---|
330 | VBoxDDGC_TEMPLATE = VBOXGC
|
---|
331 | VBoxDDGC_DEFS =
|
---|
332 | VBoxDDGC_SYSSUFF = .gc
|
---|
333 | VBoxDDGC_INCS := \
|
---|
334 | $(PATH_SUB_CURRENT)
|
---|
335 | VBoxDDGC_SOURCES = \
|
---|
336 | Bus/DevPCI.cpp \
|
---|
337 | Graphics/DevVGA.cpp \
|
---|
338 | Input/DevPS2.cpp \
|
---|
339 | PC/DevACPI.cpp \
|
---|
340 | PC/DevPit-i8254.cpp \
|
---|
341 | PC/DevPIC.cpp \
|
---|
342 | PC/DevRTC.cpp \
|
---|
343 | Storage/DevATA.cpp \
|
---|
344 | Network/DevPCNet.cpp \
|
---|
345 | Serial/DevSerial.cpp \
|
---|
346 | Parallel/DevParallel.cpp
|
---|
347 |
|
---|
348 | ifdef VBOX_WITH_E1000
|
---|
349 | VBoxDDGC_DEFS += VBOX_WITH_E1000
|
---|
350 | VBoxDDGC_SOURCES += \
|
---|
351 | Network/DevE1000.cpp \
|
---|
352 | Network/DevE1000Phy.cpp \
|
---|
353 | Network/DevEEPROM.cpp
|
---|
354 | endif
|
---|
355 |
|
---|
356 | ifdef VBOX_WITH_USB
|
---|
357 | VBoxDDGC_DEFS += VBOX_WITH_USB IN_USB_GC
|
---|
358 | VBoxDDGC_SOURCES += \
|
---|
359 | USB/DevOHCI.cpp
|
---|
360 |
|
---|
361 | ifdef VBOX_WITH_EHCI
|
---|
362 | VBoxDDGC_DEFS += VBOX_WITH_EHCI
|
---|
363 | VBoxDDGC_SOURCES += \
|
---|
364 | USB/DevEHCI.cpp
|
---|
365 | endif
|
---|
366 |
|
---|
367 | endif
|
---|
368 |
|
---|
369 | ifdef VBOX_WITH_AHCI
|
---|
370 | VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
|
---|
371 | VBoxDDGC_SOURCES += \
|
---|
372 | Storage/DevAHCI.cpp \
|
---|
373 | Storage/ATAController.cpp
|
---|
374 | endif
|
---|
375 |
|
---|
376 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
377 | VBoxDDGC_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
378 | endif
|
---|
379 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
380 | VBoxDDGC_LIBS = \
|
---|
381 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
382 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
383 | endif
|
---|
384 |
|
---|
385 |
|
---|
386 | #
|
---|
387 | # VBoxDDR0 (sysmod)
|
---|
388 | #
|
---|
389 | VBoxDDR0_TEMPLATE = VBOXR0
|
---|
390 | VBoxDDR0_SYSSUFF = .r0
|
---|
391 | VBoxDDR0_DEFS = IN_RT_R0
|
---|
392 | VBoxDDR0_INCS := \
|
---|
393 | $(PATH_SUB_CURRENT)
|
---|
394 | VBoxDDR0_SOURCES = \
|
---|
395 | Bus/DevPCI.cpp \
|
---|
396 | Graphics/DevVGA.cpp \
|
---|
397 | Input/DevPS2.cpp \
|
---|
398 | PC/DevACPI.cpp \
|
---|
399 | PC/DevPit-i8254.cpp \
|
---|
400 | PC/DevPIC.cpp \
|
---|
401 | PC/DevRTC.cpp \
|
---|
402 | Storage/DevATA.cpp \
|
---|
403 | Network/DevPCNet.cpp \
|
---|
404 | Serial/DevSerial.cpp \
|
---|
405 | Parallel/DevParallel.cpp
|
---|
406 |
|
---|
407 | ifdef VBOX_WITH_E1000
|
---|
408 | VBoxDDR0_DEFS += VBOX_WITH_E1000
|
---|
409 | VBoxDDR0_SOURCES += \
|
---|
410 | Network/DevE1000.cpp \
|
---|
411 | Network/DevE1000Phy.cpp \
|
---|
412 | Network/DevEEPROM.cpp
|
---|
413 | endif
|
---|
414 |
|
---|
415 | ifdef VBOX_WITH_USB
|
---|
416 | VBoxDDR0_DEFS += VBOX_WITH_USB IN_USB_R0
|
---|
417 | VBoxDDR0_SOURCES += \
|
---|
418 | USB/DevOHCI.cpp
|
---|
419 |
|
---|
420 | ifdef VBOX_WITH_EHCI
|
---|
421 | VBoxDDR0_DEFS += VBOX_WITH_EHCI
|
---|
422 | VBoxDDR0_SOURCES += \
|
---|
423 | USB/DevEHCI.cpp
|
---|
424 | endif
|
---|
425 | endif
|
---|
426 |
|
---|
427 | ifdef VBOX_WITH_AHCI
|
---|
428 | VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
|
---|
429 | VBoxDDR0_SOURCES += \
|
---|
430 | Storage/DevAHCI.cpp \
|
---|
431 | Storage/ATAController.cpp
|
---|
432 | endif
|
---|
433 |
|
---|
434 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
435 | VBoxDDR0_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
436 | endif
|
---|
437 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
438 | VBoxDDR0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
439 | endif
|
---|
440 | VBoxDDR0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
441 | ifeq ($(VBOX_LDR_FMT32),elf) # this is template stuff!
|
---|
442 | VBoxDDR0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
443 | endif
|
---|
444 |
|
---|
445 |
|
---|
446 | #
|
---|
447 | # VBoxDD2GC (LGPL sysmod)
|
---|
448 | #
|
---|
449 | VBoxDD2GC_TEMPLATE = VBOXGC
|
---|
450 | VBoxDD2GC_DEFS =
|
---|
451 | VBoxDD2GC_SYSSUFF = .gc
|
---|
452 | VBoxDD2GC_INCS := \
|
---|
453 | $(PATH_SUB_CURRENT)
|
---|
454 | VBoxDD2GC_SOURCES = \
|
---|
455 | PC/DevAPIC.cpp
|
---|
456 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
457 | VBoxDD2GC_LDFLAGS = -Entry:apicMMIOWrite
|
---|
458 | endif
|
---|
459 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
460 | VBoxDD2GC_LIBS = \
|
---|
461 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
462 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
463 | endif
|
---|
464 |
|
---|
465 |
|
---|
466 | #
|
---|
467 | # VBoxDD2R0 (LGPL sysmod)
|
---|
468 | #
|
---|
469 | VBoxDD2R0_TEMPLATE = VBOXR0
|
---|
470 | VBoxDD2R0_DEFS = IN_RT_R0
|
---|
471 | VBoxDD2R0_SYSSUFF = .r0
|
---|
472 | VBoxDD2R0_INCS := \
|
---|
473 | $(PATH_SUB_CURRENT)
|
---|
474 | VBoxDD2R0_SOURCES = \
|
---|
475 | PC/DevAPIC.cpp
|
---|
476 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
477 | VBoxDD2R0_LDFLAGS = -Entry:apicMMIOWrite
|
---|
478 | endif
|
---|
479 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
480 | VBoxDD2R0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
481 | endif
|
---|
482 | VBoxDD2R0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
483 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
484 | VBoxDD2R0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
485 | endif
|
---|
486 |
|
---|
487 |
|
---|
488 | #
|
---|
489 | # Drivers (library)
|
---|
490 | #
|
---|
491 | ifeq ($(BUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
|
---|
492 | Drivers_TEMPLATE = VBOXR3NP
|
---|
493 | else
|
---|
494 | Drivers_TEMPLATE = VBOXR3
|
---|
495 | endif
|
---|
496 | Drivers_SDKS.win = WINPSDK W2K3DDK
|
---|
497 | Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
|
---|
498 | Drivers_DEFS = IN_IDE_R3
|
---|
499 | Drivers_DEFS.win += _WIN32_WINNT=0x0510
|
---|
500 | Drivers_INCS := \
|
---|
501 | $(PATH_SUB_CURRENT) \
|
---|
502 | Network/slirp
|
---|
503 | Drivers_SOURCES = \
|
---|
504 | Audio/audio.c \
|
---|
505 | Audio/audiosniffer.c \
|
---|
506 | Audio/mixeng.c \
|
---|
507 | Audio/noaudio.c \
|
---|
508 | Input/DrvKeyboardQueue.cpp \
|
---|
509 | Input/DrvMouseQueue.cpp \
|
---|
510 | Network/DrvIntNet.cpp \
|
---|
511 | Network/DrvNAT.cpp \
|
---|
512 | Network/DrvNetSniffer.cpp \
|
---|
513 | Network/slirp/bootp.c \
|
---|
514 | Network/slirp/cksum.c \
|
---|
515 | Network/slirp/debug.c \
|
---|
516 | Network/slirp/if.c \
|
---|
517 | Network/slirp/ip_icmp.c \
|
---|
518 | Network/slirp/ip_input.c \
|
---|
519 | Network/slirp/ip_output.c \
|
---|
520 | Network/slirp/mbuf.c \
|
---|
521 | Network/slirp/misc.c \
|
---|
522 | Network/slirp/sbuf.c \
|
---|
523 | Network/slirp/slirp.c \
|
---|
524 | Network/slirp/socket.c \
|
---|
525 | Network/slirp/tcp_input.c \
|
---|
526 | Network/slirp/tcp_output.c \
|
---|
527 | Network/slirp/tcp_subr.c \
|
---|
528 | Network/slirp/tcp_timer.c \
|
---|
529 | Network/slirp/tftp.c \
|
---|
530 | Network/slirp/udp.c \
|
---|
531 | PC/DrvACPI.cpp \
|
---|
532 | Serial/DrvChar.cpp \
|
---|
533 | Serial/DrvNamedPipe.cpp \
|
---|
534 | Storage/DrvBlock.cpp \
|
---|
535 | Storage/DrvHostBase.cpp \
|
---|
536 | Storage/DrvHostDVD.cpp \
|
---|
537 | Storage/DrvHostFloppy.cpp \
|
---|
538 | Storage/DrvMediaISO.cpp \
|
---|
539 | Storage/DrvRawImage.cpp \
|
---|
540 | Storage/DrvVD.cpp \
|
---|
541 | Storage/VBoxHDD.cpp
|
---|
542 |
|
---|
543 | # -- OS specific --
|
---|
544 |
|
---|
545 | ifeq ($(BUILD_TARGET),darwin)
|
---|
546 | Drivers_SOURCES := $(filter-out \
|
---|
547 | Storage/DrvHostRaw% \
|
---|
548 | Storage/DrvHostFloppy% \
|
---|
549 | , $(Drivers_SOURCES)) \
|
---|
550 | Audio/coreaudio.c
|
---|
551 | Drivers_SOURCES.darwin =
|
---|
552 | endif # darwin
|
---|
553 |
|
---|
554 | ifeq ($(BUILD_TARGET),freebsd)
|
---|
555 | Drivers_SOURCES := $(filter-out \
|
---|
556 | Storage/DrvHost% \
|
---|
557 | , $(Drivers_SOURCES))
|
---|
558 | Drivers_SOURCES.freebsd =
|
---|
559 | endif # freebsd
|
---|
560 |
|
---|
561 |
|
---|
562 | ifeq ($(BUILD_TARGET),l4)
|
---|
563 | Drivers_SOURCES = \
|
---|
564 | Input/DrvMouseQueue.cpp \
|
---|
565 | Input/DrvKeyboardQueue.cpp \
|
---|
566 | Storage/VBoxHDD.cpp \
|
---|
567 | Storage/DrvBlock.cpp \
|
---|
568 | Storage/DrvMediaISO.cpp \
|
---|
569 | Storage/DrvRawImage.cpp \
|
---|
570 | Storage/DrvHostBase.cpp \
|
---|
571 | Storage/DrvHostDVD.cpp \
|
---|
572 | Storage/DrvVD.cpp \
|
---|
573 | PC/DrvACPI.cpp \
|
---|
574 | Network/DrvIntNet.cpp \
|
---|
575 | Network/DrvNetSniffer.cpp \
|
---|
576 | Audio/audio.c \
|
---|
577 | Audio/mixeng.c \
|
---|
578 | Audio/noaudio.c \
|
---|
579 | Audio/audiosniffer.c
|
---|
580 |
|
---|
581 | Drivers_SOURCES.l4 = \
|
---|
582 | Network/DrvTAP.cpp \
|
---|
583 | Audio/ossaudio.c
|
---|
584 | endif # l4
|
---|
585 |
|
---|
586 | Drivers_SOURCES.linux = \
|
---|
587 | Network/DrvTAP.cpp \
|
---|
588 | Audio/ossaudio.c \
|
---|
589 | Parallel/DrvHostParallel.cpp \
|
---|
590 | Serial/DrvHostSerial.cpp
|
---|
591 |
|
---|
592 | ifeq ($(BUILD_TARGET),os2)
|
---|
593 | Drivers_SOURCES := $(filter-out \
|
---|
594 | Storage/DrvHost% \
|
---|
595 | , $(Drivers_SOURCES))
|
---|
596 | Drivers_SOURCES.os2 = \
|
---|
597 | Network/DrvTAPOs2.cpp
|
---|
598 | endif
|
---|
599 |
|
---|
600 | ifeq ($(BUILD_TARGET),solaris)
|
---|
601 | Drivers_SOURCES := $(filter-out \
|
---|
602 | Storage/DrvHost% \
|
---|
603 | , $(Drivers_SOURCES))
|
---|
604 | Drivers_SOURCES.solaris = \
|
---|
605 | Audio/solaudio.c \
|
---|
606 | Network/DrvTAP.cpp \
|
---|
607 | Storage/DrvHostBase.cpp \
|
---|
608 | Storage/DrvHostDVD.cpp
|
---|
609 | ifdef VBOX_WITH_CROSSBOW
|
---|
610 | Drivers_DEFS += VBOX_WITH_CROSSBOW
|
---|
611 | endif
|
---|
612 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
613 | Drivers_DEFS += VBOX_WITH_SUID_WRAPPER
|
---|
614 | endif
|
---|
615 | endif
|
---|
616 |
|
---|
617 | Drivers_SOURCES.win = \
|
---|
618 | Network/DrvTAPWin32.cpp \
|
---|
619 | Audio/dsoundaudio.c \
|
---|
620 | Serial/DrvHostSerial.cpp
|
---|
621 |
|
---|
622 |
|
---|
623 | # -- features --
|
---|
624 |
|
---|
625 | ifdef VBOX_WITH_ISCSI
|
---|
626 | Drivers_SOURCES += \
|
---|
627 | Storage/DrvISCSI.cpp \
|
---|
628 | Storage/DrvISCSITransportTCP.cpp
|
---|
629 | Drivers_DEFS += VBOX_WITH_ISCSI
|
---|
630 | Storage/DrvISCSITransportTCP.cpp_INCS = \
|
---|
631 | Network/lwip/src/include \
|
---|
632 | Network/lwip/src/include/ipv4 \
|
---|
633 | Network/lwip/vbox/include
|
---|
634 | endif # VBOX_WITH_ISCSI
|
---|
635 |
|
---|
636 | ifdef VBOX_WITH_ALSA
|
---|
637 | Drivers_DEFS.linux += VBOX_WITH_ALSA
|
---|
638 | Drivers_SOURCES.linux+= \
|
---|
639 | Audio/alsaaudio.c \
|
---|
640 | Audio/alsa_stubs.c
|
---|
641 | # VBoxDD_LIBS.linux += asound
|
---|
642 | endif
|
---|
643 |
|
---|
644 | ifdef VBOX_WITH_PULSE
|
---|
645 | Drivers_DEFS.linux += VBOX_WITH_PULSE
|
---|
646 | Drivers_SOURCES.linux+= \
|
---|
647 | Audio/pulseaudio.c \
|
---|
648 | Audio/pulse_stubs.c
|
---|
649 | # VBoxDD_LIBS.linux += pulse
|
---|
650 | endif
|
---|
651 |
|
---|
652 | ifdef VBOX_WITH_USB
|
---|
653 | Drivers_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
654 | Drivers_SOURCES += \
|
---|
655 | USB/DrvVUSBRootHub.cpp \
|
---|
656 | USB/VUSBDevice.cpp \
|
---|
657 | USB/VUSBUrb.cpp
|
---|
658 | ifdef VBOX_WITH_VRDP
|
---|
659 | Drivers_DEFS += VBOX_VRDP
|
---|
660 | Drivers_SOURCES += \
|
---|
661 | USB/vrdp/USBProxyDevice-vrdp.cpp
|
---|
662 | endif
|
---|
663 |
|
---|
664 | Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
665 | #Drivers_DEFS.darwin += VBOX_WITH_USBFILTER
|
---|
666 | Drivers_SOURCES.darwin += \
|
---|
667 | USB/USBProxyDevice.cpp \
|
---|
668 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
669 |
|
---|
670 | Drivers_DEFS.linux += VUSB_HAVE_USBPROXY_DEVICE
|
---|
671 | ifdef VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
672 | Drivers_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
673 | endif
|
---|
674 | Drivers_SOURCES.linux+= \
|
---|
675 | USB/USBProxyDevice.cpp \
|
---|
676 | USB/linux/USBProxyDevice-linux.cpp
|
---|
677 |
|
---|
678 | Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
679 | Drivers_SOURCES.l4 += \
|
---|
680 | USB/USBProxyDevice.cpp \
|
---|
681 | USB/linux/USBProxyDevice-linux.cpp
|
---|
682 |
|
---|
683 | Drivers_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
684 | Drivers_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
685 | Drivers_SOURCES.os2 += \
|
---|
686 | USB/USBProxyDevice.cpp \
|
---|
687 | USB/os2/USBProxyDevice-os2.cpp
|
---|
688 |
|
---|
689 | Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
690 | Drivers_SOURCES.win += \
|
---|
691 | USB/USBProxyDevice.cpp \
|
---|
692 | USB/win32/USBProxyDevice-win32.cpp
|
---|
693 |
|
---|
694 | Drivers_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
|
---|
695 | Drivers_SOURCES.solaris += \
|
---|
696 | USB/USBProxyDevice.cpp \
|
---|
697 | USB/USBProxyDevice-stub.cpp
|
---|
698 | endif # VBOX_WITH_USB
|
---|
699 |
|
---|
700 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
701 | Drivers_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
702 | Drivers_SOURCES.linux += \
|
---|
703 | Storage/DrvRawImageAsync.cpp \
|
---|
704 | Storage/DrvTransportAsync.cpp
|
---|
705 |
|
---|
706 | Drivers_SOURCES.win += \
|
---|
707 | Storage/DrvRawImageAsync.cpp \
|
---|
708 | Storage/DrvTransportAsync.cpp
|
---|
709 | endif #VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
710 |
|
---|
711 | #
|
---|
712 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
713 | #
|
---|
714 | ServicesR0_TEMPLATE = VBOXR0
|
---|
715 | ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
|
---|
716 | ServicesR0_SOURCES = \
|
---|
717 | Network/SrvIntNetR0.cpp
|
---|
718 |
|
---|
719 | #
|
---|
720 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
721 | #
|
---|
722 | ifdef VBOX_WITH_TESTCASES
|
---|
723 | PROGRAMS += tstIntNetR0
|
---|
724 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
725 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
726 | tstIntNetR0_SOURCES = \
|
---|
727 | Network/testcase/tstIntNetR0.cpp
|
---|
728 | endif
|
---|
729 |
|
---|
730 | #
|
---|
731 | # EEPROM device unit test requires cppunit
|
---|
732 | #
|
---|
733 | ifdef VBOX_WITH_CPPUNIT_TESTCASES
|
---|
734 | ifndef VBOX_OSE
|
---|
735 | PROGRAMS += tstDevEEPROM
|
---|
736 | tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
|
---|
737 | tstDevEEPROM_SOURCES = \
|
---|
738 | Network/testcase/tstDevEEPROM.cpp
|
---|
739 | tstDevEEPROM_LIBS = \
|
---|
740 | $(TARGET_DevicesR3)
|
---|
741 | endif
|
---|
742 | endif
|
---|
743 |
|
---|
744 | include $(PATH_KBUILD)/subfooter.kmk
|
---|