1 | # $Id: Makefile.kmk 99050 2023-03-19 16:31:43Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the basic frontend.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2023 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | #
|
---|
32 | # Hardened VBoxBFE.
|
---|
33 | #
|
---|
34 | ifdef VBOX_WITH_HARDENING
|
---|
35 | PROGRAMS += VBoxBFEHardened
|
---|
36 | VBoxBFEHardened_TEMPLATE = VBoxR3HardenedExe
|
---|
37 | VBoxBFEHardened_DEFS += $(if $(VBOX_WITH_DRIVERLESS_NEM_FALLBACK),VBOX_WITH_DRIVERLESS_NEM_FALLBACK,)
|
---|
38 | VBoxBFEHardened_SOURCES = VBoxBFEHardened.cpp
|
---|
39 | VBoxBFEHardened_NAME = VBoxBFE
|
---|
40 | $(call VBOX_SET_VER_INFO_DLL,VBoxBFEHardened,VirtualBox Basic Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
|
---|
41 | endif
|
---|
42 |
|
---|
43 |
|
---|
44 | #
|
---|
45 | # VBoxBFE
|
---|
46 | #
|
---|
47 | ifdef VBOX_WITH_HARDENING
|
---|
48 | DLLS += VBoxBFE
|
---|
49 | else
|
---|
50 | PROGRAMS += VBoxBFE
|
---|
51 | endif
|
---|
52 | VBoxBFE_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBoxMainClientDll,VBoxMainClientExe)
|
---|
53 | VBoxHeadless_INCS = \
|
---|
54 | $(VBOX_GRAPHICS_INCS) \
|
---|
55 | ../Common
|
---|
56 | VBoxBFE_SOURCES = \
|
---|
57 | VBoxBFE.cpp
|
---|
58 | ifdef VBOX_WITH_HARDENING
|
---|
59 | VBoxBFE_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxBFE.dylib
|
---|
60 | endif
|
---|
61 | ifdef VBOX_WITH_HARDENING
|
---|
62 | $(call VBOX_SET_VER_INFO_DLL,VBoxBFE,VirtualBox Basic Frontend (dll),$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
|
---|
63 | else
|
---|
64 | $(call VBOX_SET_VER_INFO_EXE,VBoxBFE,VirtualBox Basic Frontend,$(VBOX_WINDOWS_ICON_FILE)) # Version info / description.
|
---|
65 | endif
|
---|
66 |
|
---|
67 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
68 |
|
---|