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