1 | # $Id: Makefile.kmk 86105 2020-09-13 08:28:59Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VBox debugger.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2020 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # The targets.
|
---|
23 | #
|
---|
24 | ifdef VBOX_WITH_DEBUGGER
|
---|
25 | LIBRARIES += Debugger
|
---|
26 | ifdef VBOX_WITH_TESTCASES
|
---|
27 | PROGRAMS += tstDBGCParser
|
---|
28 | endif
|
---|
29 | endif # VBOX_WITH_DEBUGGER
|
---|
30 |
|
---|
31 |
|
---|
32 | #
|
---|
33 | # Debugger library - linked into VBoxVMM.
|
---|
34 | #
|
---|
35 | Debugger_TEMPLATE = VBOXR3
|
---|
36 | Debugger_DEFS = IN_VMM_R3 IN_DBG_R3 IN_DIS
|
---|
37 | ifneq ($(KBUILD_TYPE),release)
|
---|
38 | Debugger_DEFS += VBOX_WITH_DEBUGGER_TCP_BY_DEFAULT
|
---|
39 | endif
|
---|
40 | Debugger_SOURCES = \
|
---|
41 | DBGConsole.cpp \
|
---|
42 | DBGCEval.cpp \
|
---|
43 | DBGCBuiltInSymbols.cpp \
|
---|
44 | DBGCCmdHlp.cpp \
|
---|
45 | DBGCCmdWorkers.cpp \
|
---|
46 | DBGCCommands.cpp \
|
---|
47 | DBGCDumpImage.cpp \
|
---|
48 | DBGCFunctions.cpp \
|
---|
49 | DBGCEmulateCodeView.cpp \
|
---|
50 | DBGCOps.cpp \
|
---|
51 | DBGCGdbRemoteStub.cpp \
|
---|
52 | DBGCRemoteKd.cpp \
|
---|
53 | DBGCTcp.cpp \
|
---|
54 | DBGCScreenAscii.cpp
|
---|
55 |
|
---|
56 | #
|
---|
57 | # The diggers plug-in.
|
---|
58 | #
|
---|
59 | DLLS += DbgPlugInDiggers
|
---|
60 | DbgPlugInDiggers_TEMPLATE = VBOXR3
|
---|
61 | DbgPlugInDiggers_DEFS = IN_DIS
|
---|
62 | DbgPlugInDiggers_SOURCES = \
|
---|
63 | DBGPlugInDiggers.cpp \
|
---|
64 | DBGPlugInDarwin.cpp \
|
---|
65 | DBGPlugInLinux.cpp \
|
---|
66 | DBGPlugInSolaris.cpp \
|
---|
67 | DBGPlugInWinNt.cpp \
|
---|
68 | DBGPlugInOS2.cpp \
|
---|
69 | DBGPlugInFreeBsd.cpp \
|
---|
70 | DBGPlugInCommonELF.cpp
|
---|
71 | DbgPlugInDiggers_LIBS = \
|
---|
72 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
73 | $(if-expr "$(LIB_VMM)" == "$(VBOX_LIB_VMM_LAZY)",$(LIB_REM),) \
|
---|
74 | $(VBOX_LIB_VMM_LAZY) \
|
---|
75 | $(LIB_RUNTIME)
|
---|
76 | $(call VBOX_SET_VER_INFO_DLL,DbgPlugInDiggers,VirtualBox Debugger Guest OS Digger Plug-in)
|
---|
77 |
|
---|
78 |
|
---|
79 | #
|
---|
80 | # The DBGC parser testcase.
|
---|
81 | # This stubs all the VBoxVMM APIs.
|
---|
82 | #
|
---|
83 | tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
|
---|
84 | tstDBGCParser_DEFS = IN_VMM_R3
|
---|
85 | tstDBGCParser_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS)
|
---|
86 | tstDBGCParser_SOURCES = \
|
---|
87 | testcase/tstDBGCParser.cpp \
|
---|
88 | testcase/tstDBGCStubs.cpp
|
---|
89 | tstDBGCParser_LIBS = \
|
---|
90 | $(Debugger_1_TARGET) \
|
---|
91 | $(LIB_RUNTIME)
|
---|
92 |
|
---|
93 |
|
---|
94 | if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
|
---|
95 | #
|
---|
96 | # Debugger GUI component (Qt).
|
---|
97 | #
|
---|
98 | USES += qt5
|
---|
99 | DLLS += VBoxDbg
|
---|
100 | VBoxDbg_TEMPLATE = VBOXQTGUI
|
---|
101 | VBoxDbg_DEFS = IN_DBG_R3
|
---|
102 | VBoxDbg_INCS = .
|
---|
103 | VBoxDbg_QT_MODULES = Core Gui Widgets
|
---|
104 | VBoxDbg_QT_MOCHDRS = \
|
---|
105 | VBoxDbgGui.h \
|
---|
106 | VBoxDbgConsole.h \
|
---|
107 | VBoxDbgStatsQt.h
|
---|
108 | VBoxDbg_SOURCES = \
|
---|
109 | VBoxDbg.cpp \
|
---|
110 | VBoxDbgGui.cpp \
|
---|
111 | VBoxDbgBase.cpp \
|
---|
112 | VBoxDbgConsole.cpp \
|
---|
113 | VBoxDbgStatsQt.cpp
|
---|
114 | VBoxDbg_LIBS = \
|
---|
115 | $(VBOX_LIB_VMM_LAZY)
|
---|
116 | VBoxDbg_LDFLAGS.darwin = \
|
---|
117 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
|
---|
118 | $(call VBOX_SET_VER_INFO_DLL,VBoxDbg,VirtualBox Debugger GUI)
|
---|
119 |
|
---|
120 | ifdef VBOX_WITH_TESTCASES
|
---|
121 | #
|
---|
122 | # The VBoxDbg testcase (Qt).
|
---|
123 | #
|
---|
124 | PROGRAMS += tstVBoxDbg
|
---|
125 | tstVBoxDbg_TEMPLATE = VBOXQTGUIEXE
|
---|
126 | tstVBoxDbg_USES = qt5
|
---|
127 | tstVBoxDbg_QTTOOL = QT5
|
---|
128 | tstVBoxDbg_QT_MODULES = Core Gui Widgets
|
---|
129 | tstVBoxDbg_LIBS.linux += xcb
|
---|
130 | tstVBoxDbg_LIBS.solaris += xcb
|
---|
131 | tstVBoxDbg_LIBS.freebsd += xcb
|
---|
132 | tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp
|
---|
133 | tstVBoxDbg_LIBS = \
|
---|
134 | $(LIB_VMM) \
|
---|
135 | $(LIB_REM) \
|
---|
136 | $(LIB_RUNTIME)
|
---|
137 | ifeq ($(KBUILD_TARGET),win)
|
---|
138 | tstVBoxDbg_LIBS += \
|
---|
139 | $(PATH_STAGE_LIB)/VBoxDbg.lib
|
---|
140 | else
|
---|
141 | tstVBoxDbg_LIBS += \
|
---|
142 | $(PATH_STAGE_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
|
---|
143 | endif
|
---|
144 | endif # TESTCASES
|
---|
145 | endif # Qt
|
---|
146 |
|
---|
147 |
|
---|
148 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
149 |
|
---|