VirtualBox

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

Last change on this file since 77844 was 76553, checked in by vboxsync, 6 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1# $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z vboxsync $
2## @file
3# Sub-Makefile for VMM tools.
4#
5
6#
7# Copyright (C) 2006-2019 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#
55PROGRAMS += VBoxCpuReport
56VBoxCpuReport_TEMPLATE := VBoxR3Static
57VBoxCpuReport_DEFS = IN_VMM_R3 IN_VBOX_CPU_REPORT
58VBoxCpuReport_INCS = ../include
59VBoxCpuReport_SOURCES = \
60 VBoxCpuReport.cpp \
61 VBoxCpuReportMsrSup.cpp \
62 ../VMMR3/CPUMR3CpuId.cpp
63VBoxCpuReport_SOURCES.linux = \
64 VBoxCpuReportMsrLinux.cpp
65VBoxCpuReport_DEFS.linux = VBCR_HAVE_PLATFORM_MSR_PROBER
66VBoxCpuReport_LIBS = \
67 $(PATH_STAGE_LIB)/SUPR3Static$(VBOX_SUFF_LIB) \
68 $(VBOX_LIB_RUNTIME_STATIC)
69VBoxCpuReport_LIBS.solaris = kstat contract
70
71VBoxCpuReport_LDFLAGS.darwin = \
72 -framework IOKit -framework CoreFoundation -framework CoreServices
73
74
75include $(FILE_KBUILD_SUB_FOOTER)
76
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