VirtualBox

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

Last change on this file since 95085 was 94931, checked in by vboxsync, 3 years ago

VMM/CPUM: Introduced a global variable g_CpumHostFeatures for keeping the host CPU features. This is safer than keeping this info in the shared part of the VM structure. bugref:10093

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1# $Id: Makefile.kmk 94931 2022-05-09 08:24:47Z vboxsync $
2## @file
3# Sub-Makefile for VMM tools.
4#
5
6#
7# Copyright (C) 2006-2022 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
22#
23# Targets.
24#
25ifdef VBOX_WITH_HARDENING
26PROGRAMS += VBoxVMMPreloadHardened
27DLLS += VBoxVMMPreload
28else
29PROGRAMS += VBoxVMMPreload
30endif
31
32
33#
34# Hardened stub.
35#
36VBoxVMMPreloadHardened_TEMPLATE = VBOXR3HARDENEDEXE
37VBoxVMMPreloadHardened_SOURCES = VBoxVMMPreloadHardened.cpp
38VBoxVMMPreloadHardened_NAME = VBoxVMMPreload
39
40
41#
42# The real thing
43#
44VBoxVMMPreload_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBoxR3Dll,VBOXR3EXE)
45VBoxVMMPreload_SOURCES = VBoxVMMPreload.cpp
46VBoxVMMPreload_LIBS = $(LIB_RUNTIME)
47ifdef VBOX_WITH_HARDENING
48VBoxVMMPreload_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxVMMPreload.dylib
49endif
50
51
52#
53# CPU report program (CPUM DB).
54#
55if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
56PROGRAMS += VBoxCpuReport
57endif
58VBoxCpuReport_TEMPLATE := VBoxR3Static
59VBoxCpuReport_DEFS = VBOX_IN_VMM IN_VMM_R3 IN_VBOX_CPU_REPORT $(VMM_COMMON_DEFS)
60VBoxCpuReport_INCS = ../include
61VBoxCpuReport_SOURCES = \
62 VBoxCpuReport.cpp \
63 VBoxCpuReportMsrSup.cpp \
64 ../VMMR3/CPUMR3CpuId.cpp \
65 ../VMMAll/CPUMAllCpuId.cpp
66VBoxCpuReport_SOURCES.linux = \
67 VBoxCpuReportMsrLinux.cpp
68VBoxCpuReport_DEFS.linux = VBCR_HAVE_PLATFORM_MSR_PROBER
69VBoxCpuReport_LIBS = \
70 $(PATH_STAGE_LIB)/SUPR3Static$(VBOX_SUFF_LIB) \
71 $(VBOX_LIB_RUNTIME_STATIC)
72VBoxCpuReport_LIBS.solaris = kstat contract
73
74VBoxCpuReport_LDFLAGS.darwin = \
75 -framework IOKit -framework CoreFoundation -framework CoreServices
76
77
78include $(FILE_KBUILD_SUB_FOOTER)
79
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