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