VirtualBox

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

Last change on this file since 101545 was 101545, checked in by vboxsync, 13 months ago

DIS: scm fix.

  • 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 101545 2023-10-22 12:44:08Z 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
40DisasmR3_SOURCES = \
41 Disasm.cpp \
42 DisasmMisc.cpp \
43 DisasmFormatBytes.cpp
44if 1
45 DisasmR3_DEFS += VBOX_DIS_WITH_X86_AMD64
46 DisasmR3_SOURCES += \
47 DisasmCore-x86-amd64.cpp \
48 DisasmTables-x86-amd64.cpp \
49 DisasmTablesX64.cpp \
50 DisasmFormatYasm.cpp
51endif
52if 1
53 DisasmR3_DEFS += VBOX_DIS_WITH_ARMV8
54 DisasmR3_SOURCES += \
55 DisasmCore-armv8.cpp \
56 DisasmTables-armv8-a64.cpp \
57 DisasmFormatArmV8.cpp
58endif
59
60LIBRARIES += DisasmR3Static
61DisasmR3Static_TEMPLATE = VBoxR3Static
62DisasmR3Static_EXTENDS = DisasmR3
63
64ifndef VBOX_ONLY_VALIDATIONKIT
65
66 LIBRARIES += DisasmBldProg
67 DisasmBldProg_TEMPLATE = VBoxAdvBldProg
68 DisasmBldProg_EXTENDS = DisasmR3
69
70 LIBRARIES += DisasmCoreR3
71 DisasmCoreR3_TEMPLATE = VBoxR3Dll
72 DisasmCoreR3_DEFS = IN_DIS DIS_CORE_ONLY VBOX_DIS_WITH_X86_AMD64
73 DisasmCoreR3_SOURCES = \
74 Disasm.cpp \
75 DisasmCore-x86-amd64.cpp \
76 DisasmTables-x86-amd64.cpp \
77 DisasmTablesX64.cpp \
78 DisasmMisc.cpp
79
80 ifdef VBOX_WITH_RAW_MODE
81 LIBRARIES += DisasmRC
82 DisasmRC_TEMPLATE = VBoxRc
83 DisasmRC_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY VBOX_DIS_WITH_X86_AMD64
84 DisasmRC_SOURCES = \
85 Disasm.cpp \
86 DisasmCore-x86-amd64.cpp \
87 DisasmTables-x86-amd64.cpp \
88 DisasmTablesX64.cpp \
89 DisasmMisc.cpp
90 endif # VBOX_WITH_RAW_MODE
91
92 ifdef VBOX_WITH_R0_MODULES
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 endif
103
104endif # !VBOX_ONLY_VALIDATIONKIT
105
106include $(FILE_KBUILD_SUB_FOOTER)
107
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