VirtualBox

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

Last change on this file since 41076 was 41076, checked in by vboxsync, 13 years ago

ExtPack build fix.

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