1 | # $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VBox debugger.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2019 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 | DBGCTcp.cpp \
|
---|
53 | DBGCScreenAscii.cpp
|
---|
54 |
|
---|
55 | #
|
---|
56 | # The diggers plug-in.
|
---|
57 | #
|
---|
58 | DLLS += DbgPlugInDiggers
|
---|
59 | DbgPlugInDiggers_TEMPLATE = VBOXR3
|
---|
60 | DbgPlugInDiggers_DEFS = IN_DIS
|
---|
61 | DbgPlugInDiggers_SOURCES = \
|
---|
62 | DBGPlugInDiggers.cpp \
|
---|
63 | DBGPlugInDarwin.cpp \
|
---|
64 | DBGPlugInLinux.cpp \
|
---|
65 | DBGPlugInSolaris.cpp \
|
---|
66 | DBGPlugInWinNt.cpp \
|
---|
67 | DBGPlugInOS2.cpp \
|
---|
68 | DBGPlugInFreeBsd.cpp \
|
---|
69 | DBGPlugInCommonELF.cpp
|
---|
70 | DbgPlugInDiggers_LIBS = \
|
---|
71 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
|
---|
72 | $(if-expr "$(LIB_VMM)" == "$(VBOX_LIB_VMM_LAZY)",$(LIB_REM),) \
|
---|
73 | $(VBOX_LIB_VMM_LAZY) \
|
---|
74 | $(LIB_RUNTIME)
|
---|
75 | $(call VBOX_SET_VER_INFO_DLL,DbgPlugInDiggers,VirtualBox Debugger Guest OS Digger Plug-in)
|
---|
76 |
|
---|
77 |
|
---|
78 | #
|
---|
79 | # The DBGC parser testcase.
|
---|
80 | # This stubs all the VBoxVMM APIs.
|
---|
81 | #
|
---|
82 | tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
|
---|
83 | tstDBGCParser_DEFS = IN_VMM_R3
|
---|
84 | tstDBGCParser_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS)
|
---|
85 | tstDBGCParser_SOURCES = \
|
---|
86 | testcase/tstDBGCParser.cpp \
|
---|
87 | testcase/tstDBGCStubs.cpp
|
---|
88 | tstDBGCParser_LIBS = \
|
---|
89 | $(Debugger_1_TARGET) \
|
---|
90 | $(LIB_RUNTIME)
|
---|
91 |
|
---|
92 |
|
---|
93 | if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
|
---|
94 | #
|
---|
95 | # Debugger GUI component (Qt).
|
---|
96 | #
|
---|
97 | USES += qt5
|
---|
98 | DLLS += VBoxDbg
|
---|
99 | VBoxDbg_TEMPLATE = VBOXQTGUI
|
---|
100 | VBoxDbg_DEFS = IN_DBG_R3
|
---|
101 | VBoxDbg_INCS = .
|
---|
102 | VBoxDbg_QT_MODULES = Core Gui Widgets
|
---|
103 | VBoxDbg_QT_MOCHDRS = \
|
---|
104 | VBoxDbgGui.h \
|
---|
105 | VBoxDbgConsole.h \
|
---|
106 | VBoxDbgStatsQt.h
|
---|
107 | VBoxDbg_SOURCES = \
|
---|
108 | VBoxDbg.cpp \
|
---|
109 | VBoxDbgGui.cpp \
|
---|
110 | VBoxDbgBase.cpp \
|
---|
111 | VBoxDbgConsole.cpp \
|
---|
112 | VBoxDbgStatsQt.cpp
|
---|
113 | VBoxDbg_LIBS = \
|
---|
114 | $(VBOX_LIB_VMM_LAZY)
|
---|
115 | VBoxDbg_LDFLAGS.darwin = \
|
---|
116 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
|
---|
117 | $(call VBOX_SET_VER_INFO_DLL,VBoxDbg,VirtualBox Debugger GUI)
|
---|
118 |
|
---|
119 | ifdef VBOX_WITH_TESTCASES
|
---|
120 | #
|
---|
121 | # The VBoxDbg testcase (Qt).
|
---|
122 | #
|
---|
123 | PROGRAMS += tstVBoxDbg
|
---|
124 | tstVBoxDbg_TEMPLATE = VBOXQTGUIEXE
|
---|
125 | tstVBoxDbg_USES = qt5
|
---|
126 | tstVBoxDbg_QTTOOL = QT5
|
---|
127 | tstVBoxDbg_QT_MODULES = Core Gui Widgets
|
---|
128 | tstVBoxDbg_LIBS.linux += xcb
|
---|
129 | tstVBoxDbg_LIBS.solaris += xcb
|
---|
130 | tstVBoxDbg_LIBS.freebsd += xcb
|
---|
131 | tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp
|
---|
132 | tstVBoxDbg_LIBS = \
|
---|
133 | $(LIB_VMM) \
|
---|
134 | $(LIB_REM) \
|
---|
135 | $(LIB_RUNTIME)
|
---|
136 | ifeq ($(KBUILD_TARGET),win)
|
---|
137 | tstVBoxDbg_LIBS += \
|
---|
138 | $(PATH_STAGE_LIB)/VBoxDbg.lib
|
---|
139 | else
|
---|
140 | tstVBoxDbg_LIBS += \
|
---|
141 | $(PATH_STAGE_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
|
---|
142 | endif
|
---|
143 | endif # TESTCASES
|
---|
144 | endif # Qt
|
---|
145 |
|
---|
146 |
|
---|
147 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
148 |
|
---|