VirtualBox

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

Last change on this file since 35346 was 35335, checked in by vboxsync, 14 years ago

VMM source reorg: VMMGC -> VMMRC.

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