1 | # $Id: Makefile.kmk 99319 2023-04-06 19:28:23Z 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 |
|
---|
28 | SUB_DEPTH = ../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | # include the sub-makefile first.
|
---|
32 | if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_VALIDATIONKIT)
|
---|
33 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
34 | endif
|
---|
35 |
|
---|
36 |
|
---|
37 | LIBRARIES += DisasmR3
|
---|
38 | DisasmR3_TEMPLATE = VBoxR3Dll
|
---|
39 | DisasmR3_DEFS = IN_DIS VBOX_DIS_WITH_X86_AMD64
|
---|
40 | DisasmR3_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 |
|
---|
49 | LIBRARIES += DisasmR3Static
|
---|
50 | DisasmR3Static_TEMPLATE = VBoxR3Static
|
---|
51 | DisasmR3Static_EXTENDS = DisasmR3
|
---|
52 |
|
---|
53 | ifdef 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 | DisasmTables-armv8.cpp \
|
---|
61 | DisasmFormatBytes.cpp \
|
---|
62 | DisasmFormatArmV8.cpp
|
---|
63 | endif
|
---|
64 |
|
---|
65 | ifndef VBOX_ONLY_VALIDATIONKIT
|
---|
66 |
|
---|
67 | LIBRARIES += DisasmBldProg
|
---|
68 | DisasmBldProg_TEMPLATE = VBoxAdvBldProg
|
---|
69 | DisasmBldProg_EXTENDS = DisasmR3
|
---|
70 |
|
---|
71 | LIBRARIES += DisasmCoreR3
|
---|
72 | DisasmCoreR3_TEMPLATE = VBoxR3Dll
|
---|
73 | DisasmCoreR3_DEFS = IN_DIS DIS_CORE_ONLY VBOX_DIS_WITH_X86_AMD64
|
---|
74 | DisasmCoreR3_SOURCES = \
|
---|
75 | Disasm.cpp \
|
---|
76 | DisasmCore-x86-amd64.cpp \
|
---|
77 | DisasmTables-x86-amd64.cpp \
|
---|
78 | DisasmTablesX64.cpp \
|
---|
79 | DisasmMisc.cpp
|
---|
80 |
|
---|
81 | ifdef VBOX_WITH_RAW_MODE
|
---|
82 | LIBRARIES += DisasmRC
|
---|
83 | DisasmRC_TEMPLATE = VBoxRc
|
---|
84 | DisasmRC_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY VBOX_DIS_WITH_X86_AMD64
|
---|
85 | DisasmRC_SOURCES = \
|
---|
86 | Disasm.cpp \
|
---|
87 | DisasmCore-x86-amd64.cpp \
|
---|
88 | DisasmTables-x86-amd64.cpp \
|
---|
89 | DisasmTablesX64.cpp \
|
---|
90 | DisasmMisc.cpp
|
---|
91 | endif # VBOX_WITH_RAW_MODE
|
---|
92 |
|
---|
93 | LIBRARIES += DisasmR0
|
---|
94 | DisasmR0_TEMPLATE = VBoxR0
|
---|
95 | DisasmR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY VBOX_DIS_WITH_X86_AMD64
|
---|
96 | DisasmR0_SOURCES = \
|
---|
97 | Disasm.cpp \
|
---|
98 | DisasmCore-x86-amd64.cpp \
|
---|
99 | DisasmTables-x86-amd64.cpp \
|
---|
100 | DisasmTablesX64.cpp \
|
---|
101 | DisasmMisc.cpp
|
---|
102 |
|
---|
103 | endif # !VBOX_ONLY_VALIDATIONKIT
|
---|
104 |
|
---|
105 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
106 |
|
---|