VirtualBox

source: vbox/trunk/src/VBox/VMM/Makefile.kmk@ 36219

Last change on this file since 36219 was 35855, checked in by vboxsync, 14 years ago

PCI: start of driver communication infrastructure

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.8 KB
Line 
1# $Id: Makefile.kmk 35855 2011-02-04 17:02:44Z vboxsync $
2## @file
3# Top-level makefile for the VMM.
4#
5
6#
7# Copyright (C) 2006-2010 Oracle Corporation
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
18SUB_DEPTH = ../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21# Include sub-makefiles.
22include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
23
24
25#
26# Globals
27#
28
29## DEFS variable that is picked up by all three VMM targets.
30# Can be prepended to by setting it in LocalConfig.kmk
31VMM_COMMON_DEFS ?=
32ifdef VBOX_WITH_RAW_MODE
33 VMM_COMMON_DEFS += VBOX_WITH_RAW_MODE
34endif
35ifdef VBOX_WITH_MULTI_CORE
36 VMM_COMMON_DEFS += VBOX_WITH_MULTI_CORE
37endif
38ifdef VBOX_WITH_R0_LOGGING
39 VMM_COMMON_DEFS += VBOX_WITH_R0_LOGGING
40endif
41ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
42 VMM_COMMON_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
43endif
44# VMM_COMMON_DEFS += VBOX_WITH_NS_ACCOUNTING_STATS
45
46
47#
48# VMMR3.dll
49#
50ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
51LIBRARIES += VMMR3
52endif
53
54VMMR3_TEMPLATE = VBoxR3DllNoPic
55
56VMMR3_DEFS = IN_VMM_R3 IN_DIS IN_GMM_R3 IN_DBG $(VMM_COMMON_DEFS) VBOX_SVN_REV=$(VBOX_SVN_REV)
57## @todo eliminate IN_GMM_R3
58ifdef VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
59 VMMR3_DEFS += VBOX_WITH_PREALLOC_RAM_BY_DEFAULT
60endif
61ifdef VBOX_WITH_VUSB
62 VMMR3_DEFS += VBOX_WITH_USB
63endif
64ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
65 VMMR3_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
66endif
67VMMR3_DEFS.darwin = VMM_R0_SWITCH_STACK
68VMMR3_DEFS.darwin.x86 = \
69 VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R3 \
70 VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R3
71
72VMMR3_INCS = \
73 include \
74 PATM
75VMMR3_ASINCS = .
76
77VMMR3_SOURCES = \
78 VMMR3/CFGM.cpp \
79 VMMR3/CPUM.cpp \
80 VMMR3/CPUMDbg.cpp \
81 VMMR3/DBGF.cpp \
82 VMMR3/DBGFAddr.cpp \
83 VMMR3/DBGFAddrSpace.cpp \
84 VMMR3/DBGFBp.cpp \
85 VMMR3/DBGFCoreWrite.cpp \
86 VMMR3/DBGFCpu.cpp \
87 VMMR3/DBGFDisas.cpp \
88 VMMR3/DBGFInfo.cpp \
89 VMMR3/DBGFLog.cpp \
90 VMMR3/DBGFMem.cpp \
91 VMMR3/DBGFOS.cpp \
92 VMMR3/DBGFReg.cpp \
93 VMMR3/DBGFStack.cpp \
94 VMMR3/DBGFSym.cpp \
95 VMMR3/EM.cpp \
96 VMMR3/EMRaw.cpp \
97 VMMR3/EMHwaccm.cpp \
98 VMMR3/FTM.cpp \
99 VMMR3/IOM.cpp \
100 VMMR3/GMM.cpp \
101 VMMR3/MM.cpp \
102 VMMR3/MMHeap.cpp \
103 VMMR3/MMHyper.cpp \
104 VMMR3/MMPagePool.cpp \
105 VMMR3/MMUkHeap.cpp \
106 VMMR3/PDM.cpp \
107 VMMR3/PDMBlkCache.cpp \
108 VMMR3/PDMDevice.cpp \
109 VMMR3/PDMDevHlp.cpp \
110 VMMR3/PDMDevMiscHlp.cpp \
111 VMMR3/PDMDriver.cpp \
112 VMMR3/PDMLdr.cpp \
113 VMMR3/PDMCritSect.cpp \
114 VMMR3/PDMQueue.cpp \
115 VMMR3/PDMThread.cpp \
116 VMMR3/PGM.cpp \
117 VMMR3/PGMDbg.cpp \
118 VMMR3/PGMHandler.cpp \
119 VMMR3/PGMMap.cpp \
120 VMMR3/PGMPhys.cpp \
121 VMMR3/PGMPool.cpp \
122 VMMR3/PGMSavedState.cpp \
123 VMMR3/PGMSharedPage.cpp \
124 VMMR3/SELM.cpp \
125 VMMR3/SSM.cpp \
126 VMMR3/STAM.cpp \
127 VMMR3/TM.cpp \
128 VMMR3/TRPM.cpp \
129 VMMR3/VM.cpp \
130 VMMR3/VMEmt.cpp \
131 VMMR3/VMReq.cpp \
132 VMMR3/VMM.cpp \
133 VMMR3/VMMGuruMeditation.cpp \
134 VMMR3/VMMSwitcher.cpp \
135 VMMR3/VMMTests.cpp \
136 VMMR3/HWACCM.cpp \
137 VMMR3/CSAM.cpp \
138 VMMR3/PATM.cpp \
139 VMMR3/PATMPatch.cpp \
140 VMMR3/PATMGuest.cpp \
141 VMMR3/PATMA.asm \
142 VMMR3/PATMSSM.cpp \
143 VMMAll/CPUMAllRegs.cpp \
144 VMMAll/CPUMStack.cpp \
145 VMMAll/DBGFAll.cpp \
146 VMMAll/HWACCMAll.cpp \
147 VMMAll/IOMAll.cpp \
148 VMMAll/IOMAllMMIO.cpp \
149 VMMAll/MMAll.cpp \
150 VMMAll/MMAllHyper.cpp \
151 VMMAll/MMAllPagePool.cpp \
152 VMMAll/PDMAll.cpp \
153 VMMAll/PDMAllCritSect.cpp \
154 VMMAll/PDMAllQueue.cpp \
155 VMMAll/PGMAll.cpp \
156 VMMAll/PGMAllHandler.cpp \
157 VMMAll/PGMAllMap.cpp \
158 VMMAll/PGMAllPhys.cpp \
159 VMMAll/PGMAllPool.cpp \
160 VMMAll/REMAll.cpp \
161 VMMAll/SELMAll.cpp \
162 VMMAll/EMAll.cpp \
163 VMMAll/EMAllA.asm \
164 VMMAll/FTMAll.cpp \
165 VMMAll/TMAll.cpp \
166 VMMAll/TMAllCpu.cpp \
167 VMMAll/TMAllReal.cpp \
168 VMMAll/TMAllVirtual.cpp \
169 VMMAll/TRPMAll.cpp \
170 VMMAll/VMAll.cpp \
171 VMMAll/VMMAll.cpp \
172 VMMAll/VMMAllA.asm \
173 VMMAll/CSAMAll.cpp \
174 VMMAll/PATMAll.cpp
175ifdef VBOX_WITH_VUSB
176 VMMR3_SOURCES += VMMR3/PDMUsb.cpp
177endif
178ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
179 VMMR3_SOURCES += \
180 VMMR3/PDMAsyncCompletion.cpp \
181 VMMR3/PDMAsyncCompletionFile.cpp \
182 VMMR3/PDMAsyncCompletionFileFailsafe.cpp \
183 VMMR3/PDMAsyncCompletionFileNormal.cpp
184endif
185if defined(VBOX_WITH_WARNINGS_AS_ERRORS) && "$(KBUILD_TARGET)" == "win"
186## @todo Alexander, please fix these warnings.
187VMMR3/PDMBlkCache.cpp_CXXFLAGS = -WX-
188endif
189
190ifdef VBOX_WITH_RAW_MODE
191 VMMR3_SOURCES.x86 += \
192 VMMSwitcher/32BitTo32Bit.asm \
193 VMMSwitcher/32BitToPAE.asm \
194 VMMSwitcher/32BitToAMD64.asm \
195 VMMSwitcher/PAETo32Bit.asm \
196 VMMSwitcher/PAEToAMD64.asm \
197 VMMSwitcher/PAEToPAE.asm
198 VMMR3_SOURCES.amd64 = \
199 VMMSwitcher/AMD64To32Bit.asm \
200 VMMSwitcher/AMD64ToPAE.asm
201 VMMR3_SOURCES.darwin.x86 += \
202 VMMSwitcher/AMD64ToPAE.asm
203endif
204
205
206# SSM wish to know the build type, host os and arch.
207VMMR3/SSM.cpp_DEFS += \
208 KBUILD_TYPE=\"$(KBUILD_TYPE)\" \
209 KBUILD_TARGET=\"$(KBUILD_TARGET)\" \
210 KBUILD_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\"
211
212#
213# The VMM DLL.
214#
215ifndef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
216DLLS += VBoxVMM
217endif
218VBoxVMM_TEMPLATE = VBoxR3DllNoPic
219VBoxVMM_DEFS = $(VMMR3_DEFS)
220VBoxVMM_DEFS.$(KBUILD_TARGET) = $(VMMR3_DEFS.$(KBUILD_TARGET))
221VBoxVMM_SOURCES = VMMR3/VBoxVMMDeps.cpp
222VBoxVMM_SONAME.linux = VBoxVMM.so
223
224VBoxVMM_LIBS = \
225 $(PATH_LIB)/VMMR3$(VBOX_SUFF_LIB) \
226 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
227ifdef VBOX_WITH_DEBUGGER
228 VBoxVMM_LIBS += \
229 $(PATH_LIB)/Debugger$(VBOX_SUFF_LIB)
230endif
231VBoxVMM_LIBS += \
232 $(LIB_REM) \
233 $(LIB_RUNTIME)
234
235VBoxVMM_LIBS.win = $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
236VBoxVMM_LDFLAGS.win = /DELAYLOAD:dbghelp.dll
237VBoxVMM_LDFLAGS.linux = -Wl,--no-undefined
238VBoxVMM_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxVMM.dylib
239VBoxVMM_LDFLAGS.solaris = -mimpure-text
240#ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
241# ifeq ($(KBUILD_HOST), linux)
242#VBoxVMM_LIBS += aio
243# endif
244#endif
245
246
247if defined(VBOX_WITH_RAW_MODE) && $(intersects $(VBOX_LDR_FMT32), pe lx)
248
249 #
250 # VMMRCBuiltin.lib
251 #
252 LIBRARIES += VMMRCBuiltin
253 VMMRCBuiltin_TEMPLATE = VBoxRc
254 ifeq ($(VBOX_LDR_FMT32),pe)
255 VMMRCBuiltin_SOURCES = VMMRC/VMMRCBuiltin.def
256 endif
257 ifeq ($(VBOX_LDR_FMT32),lx)
258 VMMRCBuiltin_SOURCES = $(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def
259 $$(VMMRCBuiltin_0_OUTDIR)/VMMRCBuiltin.def: $(PATH_SUB_CURRENT)/VMMRC/VMMRCBuiltin.def | $$(dir $$@)
260 $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' -e 's/[ \t]DATA[ \t]*/ /' --output $@ $<
261 endif
262
263
264 #
265 # VMMRCImp.lib
266 #
267 LIBRARIES += VMMRCImp
268 VMMRCImp_TEMPLATE = VBoxRc
269 VMMRCImp_SOURCES = $(VMMRCImp_0_OUTDIR)/VMMRC.def
270 VMMRCImp_CLEAN = $(VMMRCImp_0_OUTDIR)/VMMRC.def
271
272 $$(VMMRCImp_0_OUTDIR)/VMMRC.def: $(PATH_SUB_CURRENT)/VMMRC/VMMRC.def | $$(dir $$@)
273 ifeq ($(VBOX_LDR_FMT32),lx)
274 $(SED) \
275 -e '/not-os2/d' \
276 -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
277 -e 's/[ \t]DATA[ \t]*/ /' \
278 --output $@ \
279 $<
280 $(APPEND) "$@" ""
281 $(APPEND) "$@" " ___ehInit"
282 else
283 $(SED) \
284 -e '/not-win/d' \
285 -e '/not-$(KBUILD_TARGET_ARCH)/d' \
286 --output $@ $<
287 endif
288
289endif # RC && (pe || lx)
290
291
292if1of ($(VBOX_LDR_FMT), pe lx)
293 #
294 # VMMR0Imp.lib
295 #
296 LIBRARIES += VMMR0Imp
297 VMMR0Imp_TEMPLATE = VBoxR0
298 VMMR0Imp_SOURCES = $(VMMR0Imp_0_OUTDIR)/VMMR0.def
299 VMMR0Imp_CLEAN = $(VMMR0Imp_0_OUTDIR)/VMMR0.def
300
301 $$(VMMR0Imp_0_OUTDIR)/VMMR0.def: $(PATH_SUB_CURRENT)/VMMR0/VMMR0.def | $$(dir $$@)
302 ifeq ($(VBOX_LDR_FMT),lx)
303 $(SED) \
304 -e '/not-os2/d' \
305 -e '/not-amd64/d' \
306 -e 's/^[ \t][ \t]*\([a-zA-Z]\)/ _\1/' \
307 -e 's/[ \t]DATA[ \t]*/ /' \
308 --output $@ $<
309 $(APPEND) "$@" ""
310 $(APPEND) "$@" " ___ehInit"
311 else
312 $(SED) \
313 -e '/not-win/d' \
314 -e '/not-$(KBUILD_TARGET_ARCH)/d' \
315 --output $@ $<
316 endif
317endif # R0: pe + lx
318
319
320#
321# VMMR3Imp.lib
322#
323IMPORT_LIBS += VMMR3Imp
324$(call VBOX_GENERATE_IMPORT_TARGET_FN,VMMR3Imp,VBoxVMM,VMMR3/VMMR3.def)
325
326
327if defined(VBOX_WITH_RAW_MODE) && !defined(VBOX_ONLY_EXTPACKS)
328 #
329 # VMMRC.gc
330 #
331 SYSMODS += VMMRC
332 VMMRC_TEMPLATE = VBoxRc
333 VMMRC_NAME = VMMGC
334 VMMRC_SYSSUFF = .gc
335
336 VMMRC_DEFS = IN_VMM_RC IN_RT_RC IN_DIS DIS_CORE_ONLY VBOX_WITH_RAW_MODE $(VMM_COMMON_DEFS)
337 ifeq ($(KBUILD_TARGET_ARCH),x86)
338 VMMRC_DEFS.darwin = VMM_R0_SWITCH_STACK
339 VMMRC_DEFS.darwin = \
340 VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_RC \
341 VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_RC
342 endif
343
344 VMMRC_INCS := \
345 include \
346 VMMRC \
347 PATM
348
349 VMMRC_LIBS = \
350 $(PATH_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
351 $(PATH_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
352 ifneq ($(filter pe lx,$(VBOX_LDR_FMT32)),)
353 VMMRC_LIBS += \
354 $(PATH_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
355 endif
356
357 VMMRC_SOURCES = \
358 VMMRC/VMMRC0.asm \
359 VMMRC/VMMRCDeps.cpp \
360 VMMRC/CPUMRC.cpp \
361 VMMRC/CPUMRCA.asm \
362 VMMRC/EMRCA.asm \
363 VMMRC/IOMRC.cpp \
364 VMMRC/MMRamRC.cpp \
365 VMMRC/MMRamRCA.asm \
366 VMMRC/PDMRCDevice.cpp \
367 VMMRC/PGMRC.cpp \
368 VMMRC/SELMRC.cpp \
369 VMMRC/TRPMRC.cpp \
370 VMMRC/TRPMRCHandlers.cpp \
371 VMMRC/TRPMRCHandlersA.asm \
372 VMMRC/VMMRC.cpp \
373 VMMRC/VMMRCA.asm \
374 VMMRC/HWACCMRCA.asm \
375 VMMRC/CSAMRC.cpp \
376 VMMRC/PATMRC.cpp \
377 VMMRZ/DBGFRZ.cpp \
378 VMMRZ/PGMRZDynMap.cpp \
379 VMMRZ/VMMRZ.cpp \
380 VMMAll/CPUMAllRegs.cpp \
381 VMMAll/CPUMAllA.asm \
382 VMMAll/DBGFAll.cpp \
383 VMMAll/IOMAll.cpp \
384 VMMAll/IOMAllMMIO.cpp \
385 VMMAll/EMAll.cpp \
386 VMMAll/EMAllA.asm \
387 VMMAll/FTMAll.cpp \
388 VMMAll/MMAll.cpp \
389 VMMAll/MMAllHyper.cpp \
390 VMMAll/PDMAll.cpp \
391 VMMAll/PDMAllCritSect.cpp \
392 VMMAll/PDMAllQueue.cpp \
393 VMMAll/PGMAll.cpp \
394 VMMAll/PGMAllHandler.cpp \
395 VMMAll/PGMAllMap.cpp \
396 VMMAll/PGMAllPhys.cpp \
397 VMMAll/PGMAllPool.cpp \
398 VMMAll/REMAll.cpp \
399 VMMAll/SELMAll.cpp \
400 VMMAll/TMAll.cpp \
401 VMMAll/TMAllCpu.cpp \
402 VMMAll/TMAllReal.cpp \
403 VMMAll/TMAllVirtual.cpp \
404 VMMAll/TRPMAll.cpp \
405 VMMAll/VMAll.cpp \
406 VMMAll/VMMAll.cpp \
407 VMMAll/VMMAllA.asm \
408 VMMAll/CSAMAll.cpp \
409 VMMAll/PATMAll.cpp
410 ifeq ($(VBOX_LDR_FMT32),pe)
411 VMMRC_SOURCES += VMMRC/VMMRC.def
412 endif
413 ifeq ($(VBOX_LDR_FMT32),lx)
414 VMMRC_SOURCES += $(VMMRCImp_0_OUTDIR)/VMMRC.def
415 endif
416
417
418 # the very last one.
419 VMMRC_SOURCES += VMMRC/VMMRC99.asm
420
421 VMMRC/VMMRCDeps.cpp_CXXFLAGS.win = -Oi- -TC ## @todo rename VMMRCDeps.cpp to .c
422endif # VBOX_WITH_RAW_MODE && !VBOX_ONLY_EXTPACKS
423
424
425ifndef VBOX_ONLY_EXTPACKS
426 #
427 # VMMR0.r0
428 #
429 SYSMODS += VMMR0
430 VMMR0_TEMPLATE = VBoxR0
431 VMMR0_SYSSUFF = .r0
432
433 VMMR0_DEFS = IN_VMM_R0 IN_RT_R0 IN_DIS DIS_CORE_ONLY IN_GVMM_R0 IN_GMM_R0 IN_INTNET_R0 \
434 $(VMM_COMMON_DEFS) RTASSERT_HAVE_SHOULD_PANIC
435 ## @todo eliminate IN_GVMM_R0 IN_GMM_R0
436 ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
437 VMMR0_DEFS += VBOX_WITH_VMMR0_DISABLE_PREEMPTION
438 endif
439 ifdef VBOX_WITH_PCI_PASSTHROUGH
440 VMMR0_DEFS += VBOX_WITH_PCI_PASSTHROUGH IN_PCIRAW_R0
441 endif
442 VMMR0_DEFS.darwin = VMM_R0_SWITCH_STACK
443 VMMR0_DEFS.darwin.x86 = \
444 VBOX_WITH_2X_4GB_ADDR_SPACE VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 \
445 VBOX_WITH_HYBRID_32BIT_KERNEL VBOX_WITH_HYBRID_32BIT_KERNEL_IN_R0
446 VMMR0_DEFS.win.amd64 = VBOX_WITH_KERNEL_USING_XMM
447
448 ifeq ($(VBOX_LDR_FMT),elf)
449 VMMR0_LDFLAGS = -e VMMR0EntryEx
450 endif
451 VMMR0_INCS = \
452 include \
453 PATM
454
455 VMMR0_SOURCES = \
456 VMMR0/CPUMR0.cpp \
457 VMMR0/CPUMR0A.asm \
458 VMMR0/GMMR0.cpp \
459 VMMR0/GVMMR0.cpp \
460 VMMR0/HWACCMR0.cpp \
461 VMMR0/HWACCMR0A.asm \
462 VMMR0/HWSVMR0.cpp \
463 VMMR0/HWVMXR0.cpp \
464 VMMR0/PDMR0Device.cpp \
465 VMMR0/PDMR0Driver.cpp \
466 VMMR0/PGMR0.cpp \
467 VMMR0/PGMR0SharedPage.cpp \
468 VMMR0/TRPMR0.cpp \
469 VMMR0/TRPMR0A.asm \
470 VMMR0/VMMR0.cpp \
471 VMMRZ/DBGFRZ.cpp \
472 VMMRZ/VMMRZ.cpp \
473 VMMAll/CPUMAllA.asm \
474 VMMAll/CPUMAllRegs.cpp \
475 VMMAll/CPUMStack.cpp \
476 VMMAll/DBGFAll.cpp \
477 VMMAll/EMAll.cpp \
478 VMMAll/EMAllA.asm \
479 VMMAll/FTMAll.cpp \
480 VMMAll/HWACCMAll.cpp \
481 VMMAll/IOMAll.cpp \
482 VMMAll/IOMAllMMIO.cpp \
483 VMMAll/MMAll.cpp \
484 VMMAll/MMAllHyper.cpp \
485 VMMAll/MMAllPagePool.cpp \
486 VMMAll/PDMAll.cpp \
487 VMMAll/PDMAllCritSect.cpp \
488 VMMAll/PDMAllQueue.cpp \
489 VMMAll/PGMAll.cpp \
490 VMMAll/PGMAllHandler.cpp \
491 VMMAll/PGMAllMap.cpp \
492 VMMAll/PGMAllPhys.cpp \
493 VMMAll/PGMAllPool.cpp \
494 VMMAll/REMAll.cpp \
495 VMMAll/SELMAll.cpp \
496 VMMAll/TMAll.cpp \
497 VMMAll/TMAllCpu.cpp \
498 VMMAll/TMAllReal.cpp \
499 VMMAll/TMAllVirtual.cpp \
500 VMMAll/TRPMAll.cpp \
501 VMMAll/VMAll.cpp \
502 VMMAll/VMMAll.cpp \
503 VMMAll/VMMAllA.asm
504 ifeq ($(VBOX_LDR_FMT),pe)
505 VMMR0_SOURCES += VMMR0/VMMR0.def
506 endif
507 ifeq ($(VBOX_LDR_FMT),lx)
508 VMMR0_SOURCES += $(VMMR0Imp_0_OUTDIR)/VMMR0.def
509 endif
510 VMMR0_SOURCES.amd64 = \
511 VMMR0/VMMR0JmpA-amd64.asm
512 VMMR0_SOURCES.x86 = \
513 VMMR0/VMMR0JmpA-x86.asm
514 VMMR0_SOURCES.darwin.x86 = \
515 VMMRZ/PGMRZDynMap.cpp
516
517 VMMR0_LIBS = \
518 $(PATH_LIB)/ServicesR0$(VBOX_SUFF_LIB) \
519 $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
520 $(PATH_LIB)/DisasmR0$(VBOX_SUFF_LIB)
521 ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
522 VMMR0_LIBS += \
523 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
524 endif
525endif # !VBOX_ONLY_EXTPACKS
526
527
528ifndef VBOX_ONLY_EXTPACKS
529 #
530 # SSMStandalone.lib/a for linking with VBoxSVC and other executables.
531 #
532 LIBRARIES += SSMStandalone
533 SSMStandalone_TEMPLATE = VBOXR3EXE
534 SSMStandalone_DEFS = IN_VMM_R3 IN_VMM_STATIC SSM_STANDALONE
535 SSMStandalone_INCS = include
536 SSMStandalone_SOURCES = VMMR3/SSM.cpp
537endif # !VBOX_ONLY_EXTPACKS
538
539
540#
541# For vmmGetSvnRev.
542#
543VMMAll/VMMAll.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
544
545#
546# Disable annoying warnings about array subscript above array bounds in aPages[]
547#
548VMMR3/PGMPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
549VMMAll/PGMAllPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
550
551include $(KBUILD_PATH)/subfooter.kmk
552
553
554# Alias the PGM templates to the object in which they are defined.
555PGMInternal.o \
556PGMBth.o PGMGst.o PGMShw.o \
557PGMBth.obj PGMGst.obj PGMShw.obj: PGM.o
558
559PGMAllBth.o PGMAllGst.o PGMAllShw.o \
560PGMAllBth.obj PGMAllGst.obj PGMAllShw.obj: PGMAll.o
561
562PGMRCBth.o PGMRCGst.o PGMRCShw.o \
563PGMRCBth.obj PGMRCGst.obj PGMRCShw.obj: PGMRC.o
564
565PGMPhysRWTmpl.o PGMPhysRWTmpl.obj: PGMPhys.o
566
567PGMInline.o PGMInline.obj: PGMDbg.o
568
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette