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