VirtualBox

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

Last change on this file since 94332 was 93725, checked in by vboxsync, 3 years ago

VMM: More arm64 adjustments. bugref:9898

  • 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 93725 2022-02-14 13:46:16Z 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
65VBoxCpuReport_SOURCES.linux = \
66 VBoxCpuReportMsrLinux.cpp
67VBoxCpuReport_DEFS.linux = VBCR_HAVE_PLATFORM_MSR_PROBER
68VBoxCpuReport_LIBS = \
69 $(PATH_STAGE_LIB)/SUPR3Static$(VBOX_SUFF_LIB) \
70 $(VBOX_LIB_RUNTIME_STATIC)
71VBoxCpuReport_LIBS.solaris = kstat contract
72
73VBoxCpuReport_LDFLAGS.darwin = \
74 -framework IOKit -framework CoreFoundation -framework CoreServices
75
76
77include $(FILE_KBUILD_SUB_FOOTER)
78
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