1 | # $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VBox debugger.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 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 | # The targets.
|
---|
33 | #
|
---|
34 | ifdef VBOX_WITH_DEBUGGER
|
---|
35 | LIBRARIES += Debugger
|
---|
36 | ifdef VBOX_WITH_TESTCASES
|
---|
37 | PROGRAMS += tstDBGCParser
|
---|
38 | endif
|
---|
39 | endif # VBOX_WITH_DEBUGGER
|
---|
40 |
|
---|
41 |
|
---|
42 | #
|
---|
43 | # Debugger library - linked into VBoxVMM.
|
---|
44 | #
|
---|
45 | Debugger_TEMPLATE = VBOXR3
|
---|
46 | Debugger_DEFS = IN_VMM_R3 IN_DBG_R3 IN_DIS
|
---|
47 | ifneq ($(KBUILD_TYPE),release)
|
---|
48 | Debugger_DEFS += VBOX_WITH_DEBUGGER_TCP_BY_DEFAULT
|
---|
49 | endif
|
---|
50 | Debugger_SOURCES = \
|
---|
51 | DBGConsole.cpp \
|
---|
52 | DBGCEval.cpp \
|
---|
53 | DBGCBuiltInSymbols.cpp \
|
---|
54 | DBGCCmdHlp.cpp \
|
---|
55 | DBGCCmdWorkers.cpp \
|
---|
56 | DBGCCommands.cpp \
|
---|
57 | DBGCDumpImage.cpp \
|
---|
58 | DBGCFunctions.cpp \
|
---|
59 | DBGCEmulateCodeView.cpp \
|
---|
60 | DBGCOps.cpp \
|
---|
61 | DBGCGdbRemoteStub.cpp \
|
---|
62 | DBGCRemoteKd.cpp \
|
---|
63 | DBGCIo.cpp \
|
---|
64 | DBGCIoProvTcp.cpp \
|
---|
65 | DBGCIoProvIpc.cpp \
|
---|
66 | DBGCScreenAscii.cpp
|
---|
67 |
|
---|
68 | #
|
---|
69 | # The diggers plug-in.
|
---|
70 | #
|
---|
71 | DLLS += DbgPlugInDiggers
|
---|
72 | DbgPlugInDiggers_TEMPLATE = VBOXR3
|
---|
73 | DbgPlugInDiggers_DEFS = IN_DIS
|
---|
74 | DbgPlugInDiggers_SOURCES = \
|
---|
75 | DBGPlugInDiggers.cpp \
|
---|
76 | DBGPlugInDarwin.cpp \
|
---|
77 | DBGPlugInLinux.cpp \
|
---|
78 | DBGPlugInSolaris.cpp \
|
---|
79 | DBGPlugInWinNt.cpp \
|
---|
80 | DBGPlugInOS2.cpp \
|
---|
81 | DBGPlugInFreeBsd.cpp \
|
---|
82 | DBGPlugInCommonELF.cpp
|
---|
83 | DbgPlugInDiggers_LIBS = \
|
---|
84 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
85 | $(LIB_RUNTIME)
|
---|
86 | $(call VBOX_SET_VER_INFO_DLL,DbgPlugInDiggers,VirtualBox Debugger Guest OS Digger Plug-in)
|
---|
87 |
|
---|
88 |
|
---|
89 | #
|
---|
90 | # The DBGC parser testcase.
|
---|
91 | # This stubs all the VBoxVMM APIs.
|
---|
92 | #
|
---|
93 | tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
|
---|
94 | tstDBGCParser_DEFS = IN_VMM_R3
|
---|
95 | tstDBGCParser_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS)
|
---|
96 | tstDBGCParser_SOURCES = \
|
---|
97 | testcase/tstDBGCParser.cpp \
|
---|
98 | testcase/tstDBGCStubs.cpp
|
---|
99 | tstDBGCParser_LIBS = \
|
---|
100 | $(Debugger_1_TARGET) \
|
---|
101 | $(LIB_RUNTIME)
|
---|
102 |
|
---|
103 |
|
---|
104 | if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
|
---|
105 | #
|
---|
106 | # Debugger GUI component (Qt).
|
---|
107 | #
|
---|
108 | ifndef VBOX_WITH_QT6
|
---|
109 | USES += qt5
|
---|
110 | else
|
---|
111 | USES += qt6
|
---|
112 | endif
|
---|
113 | DLLS += VBoxDbg
|
---|
114 | VBoxDbg_TEMPLATE = VBOXQTGUI
|
---|
115 | VBoxDbg_DEFS = IN_DBG_R3
|
---|
116 | VBoxDbg_INCS = .
|
---|
117 | VBoxDbg_QT_MODULES = Core Gui Widgets
|
---|
118 | VBoxDbg_QT_MOCHDRS = \
|
---|
119 | VBoxDbgGui.h \
|
---|
120 | VBoxDbgConsole.h \
|
---|
121 | VBoxDbgStatsQt.h
|
---|
122 | VBoxDbg_SOURCES = \
|
---|
123 | VBoxDbg.cpp \
|
---|
124 | VBoxDbgGui.cpp \
|
---|
125 | VBoxDbgBase.cpp \
|
---|
126 | VBoxDbgConsole.cpp \
|
---|
127 | VBoxDbgStatsQt.cpp
|
---|
128 | VBoxDbg_LDFLAGS.darwin = \
|
---|
129 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
|
---|
130 | $(call VBOX_SET_VER_INFO_DLL,VBoxDbg,VirtualBox Debugger GUI)
|
---|
131 | endif # Qt
|
---|
132 |
|
---|
133 |
|
---|
134 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
135 |
|
---|