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