VirtualBox

source: vbox/trunk/src/VBox/Disassembler/Makefile.kmk@ 99241

Last change on this file since 99241 was 99241, checked in by vboxsync, 20 months ago

Disassembler: ARMv8 skeleton, bugref:10394

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1# $Id: Makefile.kmk 99241 2023-03-30 16:11:16Z vboxsync $
2## @file
3# Sub-Makefile for the VBox Disassembler.
4#
5
6#
7# Copyright (C) 2006-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
28SUB_DEPTH = ../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31# include the sub-makefile first.
32if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_VALIDATIONKIT)
33 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
34endif
35
36
37LIBRARIES += DisasmR3
38DisasmR3_TEMPLATE = VBoxR3Dll
39DisasmR3_DEFS = IN_DIS VBOX_DIS_WITH_X86_AMD64
40DisasmR3_SOURCES = \
41 Disasm.cpp \
42 DisasmCore-x86-amd64.cpp \
43 DisasmTables-x86-amd64.cpp \
44 DisasmTablesX64.cpp \
45 DisasmMisc.cpp \
46 DisasmFormatBytes.cpp \
47 DisasmFormatYasm.cpp
48
49LIBRARIES += DisasmR3Static
50DisasmR3Static_TEMPLATE = VBoxR3Static
51DisasmR3Static_EXTENDS = DisasmR3
52
53ifdef VBOX_WITH_VIRT_ARMV8
54 LIBRARIES += DisasmR3-armv8
55 DisasmR3-armv8_TEMPLATE = VBoxR3Dll
56 DisasmR3-armv8_DEFS = IN_DIS VBOX_DIS_WITH_ARMV8
57 DisasmR3-armv8_SOURCES = \
58 Disasm.cpp \
59 DisasmCore-armv8.cpp \
60 DisasmFormatBytes.cpp
61endif
62
63ifndef VBOX_ONLY_VALIDATIONKIT
64
65 LIBRARIES += DisasmBldProg
66 DisasmBldProg_TEMPLATE = VBoxAdvBldProg
67 DisasmBldProg_EXTENDS = DisasmR3
68
69 LIBRARIES += DisasmCoreR3
70 DisasmCoreR3_TEMPLATE = VBoxR3Dll
71 DisasmCoreR3_DEFS = IN_DIS DIS_CORE_ONLY VBOX_DIS_WITH_X86_AMD64
72 DisasmCoreR3_SOURCES = \
73 Disasm.cpp \
74 DisasmCore-x86-amd64.cpp \
75 DisasmTables-x86-amd64.cpp \
76 DisasmTablesX64.cpp \
77 DisasmMisc.cpp
78
79 ifdef VBOX_WITH_RAW_MODE
80 LIBRARIES += DisasmRC
81 DisasmRC_TEMPLATE = VBoxRc
82 DisasmRC_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY VBOX_DIS_WITH_X86_AMD64
83 DisasmRC_SOURCES = \
84 Disasm.cpp \
85 DisasmCore-x86-amd64.cpp \
86 DisasmTables-x86-amd64.cpp \
87 DisasmTablesX64.cpp \
88 DisasmMisc.cpp
89 endif # VBOX_WITH_RAW_MODE
90
91 LIBRARIES += DisasmR0
92 DisasmR0_TEMPLATE = VBoxR0
93 DisasmR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY VBOX_DIS_WITH_X86_AMD64
94 DisasmR0_SOURCES = \
95 Disasm.cpp \
96 DisasmCore-x86-amd64.cpp \
97 DisasmTables-x86-amd64.cpp \
98 DisasmTablesX64.cpp \
99 DisasmMisc.cpp
100
101endif # !VBOX_ONLY_VALIDATIONKIT
102
103include $(FILE_KBUILD_SUB_FOOTER)
104
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