VirtualBox

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

Last change on this file since 37424 was 37411, checked in by vboxsync, 14 years ago

VMM,SUPDrv: Created DBGFTrace.

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