1 | # $Id: Makefile.kmk 7159 2008-02-26 18:20:08Z 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_SOURCES += \
|
---|
244 | Network/DevE1000.cpp \
|
---|
245 | Network/DevE1000Phy.cpp \
|
---|
246 | Network/DevEEPROM.cpp
|
---|
247 | DevicesR3_DEFS += VBOX_WITH_E1000
|
---|
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_USB
|
---|
348 | VBoxDDGC_DEFS += VBOX_WITH_USB IN_USB_GC
|
---|
349 | VBoxDDGC_SOURCES += \
|
---|
350 | USB/DevOHCI.cpp
|
---|
351 |
|
---|
352 | ifdef VBOX_WITH_EHCI
|
---|
353 | VBoxDDGC_DEFS += VBOX_WITH_EHCI
|
---|
354 | VBoxDDGC_SOURCES += \
|
---|
355 | USB/DevEHCI.cpp
|
---|
356 | endif
|
---|
357 |
|
---|
358 | endif
|
---|
359 |
|
---|
360 | ifdef VBOX_WITH_AHCI
|
---|
361 | VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
|
---|
362 | VBoxDDGC_SOURCES += \
|
---|
363 | Storage/DevAHCI.cpp \
|
---|
364 | Storage/ATAController.cpp
|
---|
365 | endif
|
---|
366 |
|
---|
367 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
368 | VBoxDDGC_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
369 | endif
|
---|
370 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
371 | VBoxDDGC_LIBS = \
|
---|
372 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
373 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
374 | endif
|
---|
375 |
|
---|
376 |
|
---|
377 | #
|
---|
378 | # VBoxDDR0 (sysmod)
|
---|
379 | #
|
---|
380 | VBoxDDR0_TEMPLATE = VBOXR0
|
---|
381 | VBoxDDR0_SYSSUFF = .r0
|
---|
382 | VBoxDDR0_DEFS = IN_RT_R0
|
---|
383 | VBoxDDR0_INCS := \
|
---|
384 | $(PATH_SUB_CURRENT)
|
---|
385 | VBoxDDR0_SOURCES = \
|
---|
386 | Bus/DevPCI.cpp \
|
---|
387 | Graphics/DevVGA.cpp \
|
---|
388 | Input/DevPS2.cpp \
|
---|
389 | PC/DevACPI.cpp \
|
---|
390 | PC/DevPit-i8254.cpp \
|
---|
391 | PC/DevPIC.cpp \
|
---|
392 | PC/DevRTC.cpp \
|
---|
393 | Storage/DevATA.cpp \
|
---|
394 | Network/DevPCNet.cpp \
|
---|
395 | Serial/DevSerial.cpp \
|
---|
396 | Parallel/DevParallel.cpp
|
---|
397 |
|
---|
398 | ifdef VBOX_WITH_USB
|
---|
399 | VBoxDDR0_DEFS += VBOX_WITH_USB IN_USB_R0
|
---|
400 | VBoxDDR0_SOURCES += \
|
---|
401 | USB/DevOHCI.cpp
|
---|
402 |
|
---|
403 | ifdef VBOX_WITH_EHCI
|
---|
404 | VBoxDDR0_DEFS += VBOX_WITH_EHCI
|
---|
405 | VBoxDDR0_SOURCES += \
|
---|
406 | USB/DevEHCI.cpp
|
---|
407 | endif
|
---|
408 | endif
|
---|
409 |
|
---|
410 | ifdef VBOX_WITH_AHCI
|
---|
411 | VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
|
---|
412 | VBoxDDR0_SOURCES += \
|
---|
413 | Storage/DevAHCI.cpp \
|
---|
414 | Storage/ATAController.cpp
|
---|
415 | endif
|
---|
416 |
|
---|
417 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
418 | VBoxDDR0_LDFLAGS = -Entry:vgaMMIOWrite
|
---|
419 | endif
|
---|
420 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
421 | VBoxDDR0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
422 | endif
|
---|
423 | VBoxDDR0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
424 | ifeq ($(VBOX_LDR_FMT32),elf) # this is template stuff!
|
---|
425 | VBoxDDR0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
426 | endif
|
---|
427 |
|
---|
428 |
|
---|
429 | #
|
---|
430 | # VBoxDD2GC (LGPL sysmod)
|
---|
431 | #
|
---|
432 | VBoxDD2GC_TEMPLATE = VBOXGC
|
---|
433 | VBoxDD2GC_DEFS =
|
---|
434 | VBoxDD2GC_SYSSUFF = .gc
|
---|
435 | VBoxDD2GC_INCS := \
|
---|
436 | $(PATH_SUB_CURRENT)
|
---|
437 | VBoxDD2GC_SOURCES = \
|
---|
438 | PC/DevAPIC.cpp
|
---|
439 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
440 | VBoxDD2GC_LDFLAGS = -Entry:apicMMIOWrite
|
---|
441 | endif
|
---|
442 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
|
---|
443 | VBoxDD2GC_LIBS = \
|
---|
444 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB) \
|
---|
445 | $(PATH_LIB)/VMMGCImp$(VBOX_SUFF_LIB)
|
---|
446 | endif
|
---|
447 |
|
---|
448 |
|
---|
449 | #
|
---|
450 | # VBoxDD2R0 (LGPL sysmod)
|
---|
451 | #
|
---|
452 | VBoxDD2R0_TEMPLATE = VBOXR0
|
---|
453 | VBoxDD2R0_DEFS = IN_RT_R0
|
---|
454 | VBoxDD2R0_SYSSUFF = .r0
|
---|
455 | VBoxDD2R0_INCS := \
|
---|
456 | $(PATH_SUB_CURRENT)
|
---|
457 | VBoxDD2R0_SOURCES = \
|
---|
458 | PC/DevAPIC.cpp
|
---|
459 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
460 | VBoxDD2R0_LDFLAGS = -Entry:apicMMIOWrite
|
---|
461 | endif
|
---|
462 | ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
|
---|
463 | VBoxDD2R0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
464 | endif
|
---|
465 | VBoxDD2R0_LIBS += $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
466 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
467 | VBoxDD2R0_LIBS += $(VBOX_GCC_LIBGCC)
|
---|
468 | endif
|
---|
469 |
|
---|
470 |
|
---|
471 | #
|
---|
472 | # Drivers (library)
|
---|
473 | #
|
---|
474 | ifeq ($(BUILD_TARGET),l4) # We are using real Linux headers, not the cleaned up user space ones
|
---|
475 | Drivers_TEMPLATE = VBOXR3NP
|
---|
476 | else
|
---|
477 | Drivers_TEMPLATE = VBOXR3
|
---|
478 | endif
|
---|
479 | Drivers_SDKS.win = WINPSDK W2K3DDK
|
---|
480 | Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
|
---|
481 | Drivers_DEFS = IN_IDE_R3
|
---|
482 | Drivers_DEFS.win += _WIN32_WINNT=0x0510
|
---|
483 | Drivers_INCS := \
|
---|
484 | $(PATH_SUB_CURRENT) \
|
---|
485 | Network/slirp
|
---|
486 | Drivers_SOURCES = \
|
---|
487 | Audio/audio.c \
|
---|
488 | Audio/audiosniffer.c \
|
---|
489 | Audio/mixeng.c \
|
---|
490 | Audio/noaudio.c \
|
---|
491 | Input/DrvKeyboardQueue.cpp \
|
---|
492 | Input/DrvMouseQueue.cpp \
|
---|
493 | Network/DrvIntNet.cpp \
|
---|
494 | Network/DrvNAT.cpp \
|
---|
495 | Network/DrvNetSniffer.cpp \
|
---|
496 | Network/slirp/bootp.c \
|
---|
497 | Network/slirp/cksum.c \
|
---|
498 | Network/slirp/debug.c \
|
---|
499 | Network/slirp/if.c \
|
---|
500 | Network/slirp/ip_icmp.c \
|
---|
501 | Network/slirp/ip_input.c \
|
---|
502 | Network/slirp/ip_output.c \
|
---|
503 | Network/slirp/mbuf.c \
|
---|
504 | Network/slirp/misc.c \
|
---|
505 | Network/slirp/sbuf.c \
|
---|
506 | Network/slirp/slirp.c \
|
---|
507 | Network/slirp/socket.c \
|
---|
508 | Network/slirp/tcp_input.c \
|
---|
509 | Network/slirp/tcp_output.c \
|
---|
510 | Network/slirp/tcp_subr.c \
|
---|
511 | Network/slirp/tcp_timer.c \
|
---|
512 | Network/slirp/tftp.c \
|
---|
513 | Network/slirp/udp.c \
|
---|
514 | PC/DrvACPI.cpp \
|
---|
515 | Serial/DrvChar.cpp \
|
---|
516 | Serial/DrvNamedPipe.cpp \
|
---|
517 | Storage/DrvBlock.cpp \
|
---|
518 | Storage/DrvHostBase.cpp \
|
---|
519 | Storage/DrvHostDVD.cpp \
|
---|
520 | Storage/DrvHostFloppy.cpp \
|
---|
521 | Storage/DrvMediaISO.cpp \
|
---|
522 | Storage/DrvRawImage.cpp \
|
---|
523 | Storage/DrvVD.cpp \
|
---|
524 | Storage/VBoxHDD.cpp
|
---|
525 |
|
---|
526 | # -- OS specific --
|
---|
527 |
|
---|
528 | ifeq ($(BUILD_TARGET),darwin)
|
---|
529 | Drivers_SOURCES := $(filter-out \
|
---|
530 | Storage/DrvHostRaw% \
|
---|
531 | Storage/DrvHostFloppy% \
|
---|
532 | , $(Drivers_SOURCES)) \
|
---|
533 | Audio/coreaudio.c
|
---|
534 | Drivers_SOURCES.darwin =
|
---|
535 | endif # darwin
|
---|
536 |
|
---|
537 | ifeq ($(BUILD_TARGET),freebsd)
|
---|
538 | Drivers_SOURCES := $(filter-out \
|
---|
539 | Storage/DrvHost% \
|
---|
540 | , $(Drivers_SOURCES))
|
---|
541 | Drivers_SOURCES.freebsd =
|
---|
542 | endif # freebsd
|
---|
543 |
|
---|
544 |
|
---|
545 | ifeq ($(BUILD_TARGET),l4)
|
---|
546 | Drivers_SOURCES = \
|
---|
547 | Input/DrvMouseQueue.cpp \
|
---|
548 | Input/DrvKeyboardQueue.cpp \
|
---|
549 | Storage/VBoxHDD.cpp \
|
---|
550 | Storage/DrvBlock.cpp \
|
---|
551 | Storage/DrvMediaISO.cpp \
|
---|
552 | Storage/DrvRawImage.cpp \
|
---|
553 | Storage/DrvHostBase.cpp \
|
---|
554 | Storage/DrvHostDVD.cpp \
|
---|
555 | Storage/DrvVD.cpp \
|
---|
556 | PC/DrvACPI.cpp \
|
---|
557 | Network/DrvIntNet.cpp \
|
---|
558 | Network/DrvNetSniffer.cpp \
|
---|
559 | Audio/audio.c \
|
---|
560 | Audio/mixeng.c \
|
---|
561 | Audio/noaudio.c \
|
---|
562 | Audio/audiosniffer.c
|
---|
563 |
|
---|
564 | Drivers_SOURCES.l4 = \
|
---|
565 | Network/DrvTAP.cpp \
|
---|
566 | Audio/ossaudio.c
|
---|
567 | endif # l4
|
---|
568 |
|
---|
569 | Drivers_SOURCES.linux = \
|
---|
570 | Network/DrvTAP.cpp \
|
---|
571 | Audio/ossaudio.c \
|
---|
572 | Parallel/DrvHostParallel.cpp \
|
---|
573 | Serial/DrvHostSerial.cpp
|
---|
574 |
|
---|
575 | ifeq ($(BUILD_TARGET),os2)
|
---|
576 | Drivers_SOURCES := $(filter-out \
|
---|
577 | Storage/DrvHost% \
|
---|
578 | , $(Drivers_SOURCES))
|
---|
579 | Drivers_SOURCES.os2 = \
|
---|
580 | Network/DrvTAPOs2.cpp
|
---|
581 | endif
|
---|
582 |
|
---|
583 | ifeq ($(BUILD_TARGET),solaris)
|
---|
584 | Drivers_SOURCES := $(filter-out \
|
---|
585 | Storage/DrvHost% \
|
---|
586 | , $(Drivers_SOURCES))
|
---|
587 | Drivers_SOURCES.solaris = \
|
---|
588 | Audio/solaudio.c \
|
---|
589 | Network/DrvTAP.cpp \
|
---|
590 | Storage/DrvHostBase.cpp \
|
---|
591 | Storage/DrvHostDVD.cpp
|
---|
592 | ifdef VBOX_WITH_CROSSBOW
|
---|
593 | Drivers_DEFS += VBOX_WITH_CROSSBOW
|
---|
594 | endif
|
---|
595 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
596 | Drivers_DEFS += VBOX_WITH_SUID_WRAPPER
|
---|
597 | endif
|
---|
598 | endif
|
---|
599 |
|
---|
600 | Drivers_SOURCES.win = \
|
---|
601 | Network/DrvTAPWin32.cpp \
|
---|
602 | Audio/dsoundaudio.c \
|
---|
603 | Serial/DrvHostSerial.cpp
|
---|
604 |
|
---|
605 |
|
---|
606 | # -- features --
|
---|
607 |
|
---|
608 | ifdef VBOX_WITH_ISCSI
|
---|
609 | Drivers_SOURCES += \
|
---|
610 | Storage/DrvISCSI.cpp \
|
---|
611 | Storage/DrvISCSITransportTCP.cpp
|
---|
612 | Drivers_DEFS += VBOX_WITH_ISCSI
|
---|
613 | Storage/DrvISCSITransportTCP.cpp_INCS = \
|
---|
614 | Network/lwip/src/include \
|
---|
615 | Network/lwip/src/include/ipv4 \
|
---|
616 | Network/lwip/vbox/include
|
---|
617 | endif # VBOX_WITH_ISCSI
|
---|
618 |
|
---|
619 | ifdef VBOX_WITH_ALSA
|
---|
620 | Drivers_DEFS.linux += VBOX_WITH_ALSA
|
---|
621 | Drivers_SOURCES.linux+= \
|
---|
622 | Audio/alsaaudio.c \
|
---|
623 | Audio/alsa_stubs.c
|
---|
624 | # VBoxDD_LIBS.linux += asound
|
---|
625 | endif
|
---|
626 |
|
---|
627 | ifdef VBOX_WITH_PULSE
|
---|
628 | Drivers_DEFS.linux += VBOX_WITH_PULSE
|
---|
629 | Drivers_SOURCES.linux+= \
|
---|
630 | Audio/pulseaudio.c \
|
---|
631 | Audio/pulse_stubs.c
|
---|
632 | # VBoxDD_LIBS.linux += pulse
|
---|
633 | endif
|
---|
634 |
|
---|
635 | ifdef VBOX_WITH_USB
|
---|
636 | Drivers_DEFS += VBOX_WITH_USB IN_USB_R3
|
---|
637 | Drivers_SOURCES += \
|
---|
638 | USB/DrvVUSBRootHub.cpp \
|
---|
639 | USB/VUSBDevice.cpp \
|
---|
640 | USB/VUSBUrb.cpp
|
---|
641 | ifdef VBOX_WITH_VRDP
|
---|
642 | Drivers_DEFS += VBOX_VRDP
|
---|
643 | Drivers_SOURCES += \
|
---|
644 | USB/vrdp/USBProxyDevice-vrdp.cpp
|
---|
645 | endif
|
---|
646 |
|
---|
647 | Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
648 | #Drivers_DEFS.darwin += VBOX_WITH_USBFILTER
|
---|
649 | Drivers_SOURCES.darwin += \
|
---|
650 | USB/USBProxyDevice.cpp \
|
---|
651 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
652 |
|
---|
653 | Drivers_DEFS.linux += VUSB_HAVE_USBPROXY_DEVICE
|
---|
654 | ifdef VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
655 | Drivers_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
656 | endif
|
---|
657 | Drivers_SOURCES.linux+= \
|
---|
658 | USB/USBProxyDevice.cpp \
|
---|
659 | USB/linux/USBProxyDevice-linux.cpp
|
---|
660 |
|
---|
661 | Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
662 | Drivers_SOURCES.l4 += \
|
---|
663 | USB/USBProxyDevice.cpp \
|
---|
664 | USB/linux/USBProxyDevice-linux.cpp
|
---|
665 |
|
---|
666 | Drivers_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
667 | Drivers_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
668 | Drivers_SOURCES.os2 += \
|
---|
669 | USB/USBProxyDevice.cpp \
|
---|
670 | USB/os2/USBProxyDevice-os2.cpp
|
---|
671 |
|
---|
672 | Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
673 | Drivers_SOURCES.win += \
|
---|
674 | USB/USBProxyDevice.cpp \
|
---|
675 | USB/win32/USBProxyDevice-win32.cpp
|
---|
676 |
|
---|
677 | Drivers_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
|
---|
678 | Drivers_SOURCES.solaris += \
|
---|
679 | USB/USBProxyDevice.cpp \
|
---|
680 | USB/USBProxyDevice-stub.cpp
|
---|
681 | endif # VBOX_WITH_USB
|
---|
682 |
|
---|
683 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
684 | Drivers_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
685 | Drivers_SOURCES.linux += \
|
---|
686 | Storage/DrvRawImageAsync.cpp \
|
---|
687 | Storage/DrvTransportAsync.cpp
|
---|
688 |
|
---|
689 | Drivers_SOURCES.win += \
|
---|
690 | Storage/DrvRawImageAsync.cpp \
|
---|
691 | Storage/DrvTransportAsync.cpp
|
---|
692 | endif #VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
693 |
|
---|
694 | #
|
---|
695 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
696 | #
|
---|
697 | ServicesR0_TEMPLATE = VBOXR0
|
---|
698 | ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0
|
---|
699 | ServicesR0_SOURCES = \
|
---|
700 | Network/SrvIntNetR0.cpp
|
---|
701 |
|
---|
702 | #
|
---|
703 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
704 | #
|
---|
705 | ifdef VBOX_WITH_TESTCASES
|
---|
706 | PROGRAMS += tstIntNetR0
|
---|
707 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
708 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
709 | tstIntNetR0_SOURCES = \
|
---|
710 | Network/testcase/tstIntNetR0.cpp
|
---|
711 | endif
|
---|
712 |
|
---|
713 | #
|
---|
714 | # EEPROM device unit test requires cppunit
|
---|
715 | #
|
---|
716 | ifdef VBOX_WITH_CPPUNIT_TESTCASES
|
---|
717 | ifndef VBOX_OSE
|
---|
718 | PROGRAMS += tstDevEEPROM
|
---|
719 | tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
|
---|
720 | tstDevEEPROM_SOURCES = \
|
---|
721 | Network/testcase/tstDevEEPROM.cpp
|
---|
722 | tstDevEEPROM_LIBS = \
|
---|
723 | $(TARGET_DevicesR3)
|
---|
724 | endif
|
---|
725 | endif
|
---|
726 |
|
---|
727 | include $(PATH_KBUILD)/subfooter.kmk
|
---|