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