1 | # $Id: Makefile.kmk 82968 2020-02-04 10:35:17Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VMM tools.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2020 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 |
|
---|
18 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 |
|
---|
22 | #
|
---|
23 | # Targets.
|
---|
24 | #
|
---|
25 | ifdef VBOX_WITH_HARDENING
|
---|
26 | PROGRAMS += VBoxVMMPreloadHardened
|
---|
27 | DLLS += VBoxVMMPreload
|
---|
28 | else
|
---|
29 | PROGRAMS += VBoxVMMPreload
|
---|
30 | endif
|
---|
31 |
|
---|
32 |
|
---|
33 | #
|
---|
34 | # Hardened stub.
|
---|
35 | #
|
---|
36 | VBoxVMMPreloadHardened_TEMPLATE = VBOXR3HARDENEDEXE
|
---|
37 | VBoxVMMPreloadHardened_SOURCES = VBoxVMMPreloadHardened.cpp
|
---|
38 | VBoxVMMPreloadHardened_NAME = VBoxVMMPreload
|
---|
39 |
|
---|
40 |
|
---|
41 | #
|
---|
42 | # The real thing
|
---|
43 | #
|
---|
44 | VBoxVMMPreload_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBoxR3Dll,VBOXR3EXE)
|
---|
45 | VBoxVMMPreload_SOURCES = VBoxVMMPreload.cpp
|
---|
46 | VBoxVMMPreload_LIBS = $(LIB_RUNTIME)
|
---|
47 | ifdef VBOX_WITH_HARDENING
|
---|
48 | VBoxVMMPreload_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxVMMPreload.dylib
|
---|
49 | endif
|
---|
50 |
|
---|
51 |
|
---|
52 | #
|
---|
53 | # CPU report program (CPUM DB).
|
---|
54 | #
|
---|
55 | PROGRAMS += VBoxCpuReport
|
---|
56 | VBoxCpuReport_TEMPLATE := VBoxR3Static
|
---|
57 | VBoxCpuReport_DEFS = VBOX_IN_VMM IN_VMM_R3 IN_VBOX_CPU_REPORT $(VMM_COMMON_DEFS)
|
---|
58 | VBoxCpuReport_INCS = ../include
|
---|
59 | VBoxCpuReport_SOURCES = \
|
---|
60 | VBoxCpuReport.cpp \
|
---|
61 | VBoxCpuReportMsrSup.cpp \
|
---|
62 | ../VMMR3/CPUMR3CpuId.cpp
|
---|
63 | VBoxCpuReport_SOURCES.linux = \
|
---|
64 | VBoxCpuReportMsrLinux.cpp
|
---|
65 | VBoxCpuReport_DEFS.linux = VBCR_HAVE_PLATFORM_MSR_PROBER
|
---|
66 | VBoxCpuReport_LIBS = \
|
---|
67 | $(PATH_STAGE_LIB)/SUPR3Static$(VBOX_SUFF_LIB) \
|
---|
68 | $(VBOX_LIB_RUNTIME_STATIC)
|
---|
69 | VBoxCpuReport_LIBS.solaris = kstat contract
|
---|
70 |
|
---|
71 | VBoxCpuReport_LDFLAGS.darwin = \
|
---|
72 | -framework IOKit -framework CoreFoundation -framework CoreServices
|
---|
73 |
|
---|
74 |
|
---|
75 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
76 |
|
---|