1 | # $Id: Makefile.kmk 98103 2023-01-17 14:15:46Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VBox debugger.
|
---|
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 | #
|
---|
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 | DBGCIoProvUdp.cpp \
|
---|
66 | DBGCIoProvIpc.cpp \
|
---|
67 | DBGCScreenAscii.cpp
|
---|
68 |
|
---|
69 | #
|
---|
70 | # The diggers plug-in.
|
---|
71 | #
|
---|
72 | DLLS += DbgPlugInDiggers
|
---|
73 | DbgPlugInDiggers_TEMPLATE = VBOXR3
|
---|
74 | DbgPlugInDiggers_DEFS = IN_DIS
|
---|
75 | DbgPlugInDiggers_SOURCES = \
|
---|
76 | DBGPlugInDiggers.cpp \
|
---|
77 | DBGPlugInDarwin.cpp \
|
---|
78 | DBGPlugInLinux.cpp \
|
---|
79 | DBGPlugInSolaris.cpp \
|
---|
80 | DBGPlugInWinNt.cpp \
|
---|
81 | DBGPlugInOS2.cpp \
|
---|
82 | DBGPlugInFreeBsd.cpp \
|
---|
83 | DBGPlugInCommonELF.cpp
|
---|
84 | DbgPlugInDiggers_LIBS = \
|
---|
85 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
86 | $(LIB_RUNTIME)
|
---|
87 | $(call VBOX_SET_VER_INFO_DLL,DbgPlugInDiggers,VirtualBox Debugger Guest OS Digger Plug-in)
|
---|
88 |
|
---|
89 |
|
---|
90 | #
|
---|
91 | # The DBGC parser testcase.
|
---|
92 | # This stubs all the VBoxVMM APIs.
|
---|
93 | #
|
---|
94 | tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
|
---|
95 | tstDBGCParser_DEFS = IN_VMM_R3
|
---|
96 | tstDBGCParser_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS)
|
---|
97 | tstDBGCParser_SOURCES = \
|
---|
98 | testcase/tstDBGCParser.cpp \
|
---|
99 | testcase/tstDBGCStubs.cpp
|
---|
100 | tstDBGCParser_LIBS = \
|
---|
101 | $(Debugger_1_TARGET) \
|
---|
102 | $(LIB_RUNTIME)
|
---|
103 |
|
---|
104 |
|
---|
105 | if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
|
---|
106 | #
|
---|
107 | # Debugger GUI component (Qt).
|
---|
108 | #
|
---|
109 | ifndef VBOX_WITH_QT6
|
---|
110 | USES += qt5
|
---|
111 | else
|
---|
112 | USES += qt6
|
---|
113 | endif
|
---|
114 | DLLS += VBoxDbg
|
---|
115 | VBoxDbg_TEMPLATE = VBOXQTGUI
|
---|
116 | VBoxDbg_DEFS = IN_DBG_R3
|
---|
117 | VBoxDbg_INCS = .
|
---|
118 | VBoxDbg_QT_MODULES = Core Gui Widgets
|
---|
119 | VBoxDbg_QT_MOCHDRS = \
|
---|
120 | VBoxDbgGui.h \
|
---|
121 | VBoxDbgConsole.h \
|
---|
122 | VBoxDbgStatsQt.h
|
---|
123 | VBoxDbg_SOURCES = \
|
---|
124 | VBoxDbg.cpp \
|
---|
125 | VBoxDbgGui.cpp \
|
---|
126 | VBoxDbgBase.cpp \
|
---|
127 | VBoxDbgConsole.cpp \
|
---|
128 | VBoxDbgStatsQt.cpp
|
---|
129 | VBoxDbg_LDFLAGS.darwin = \
|
---|
130 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
|
---|
131 | $(call VBOX_SET_VER_INFO_DLL,VBoxDbg,VirtualBox Debugger GUI)
|
---|
132 | endif # Qt
|
---|
133 |
|
---|
134 |
|
---|
135 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
136 |
|
---|