1 | # $Id: Makefile.kmk 31846 2010-08-21 20:16:47Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VBox debugger.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2010 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 | ifndef VBOX_OSE
|
---|
31 | INSTALLS.win.x86 += dbghelp
|
---|
32 | endif
|
---|
33 |
|
---|
34 |
|
---|
35 | #
|
---|
36 | # Debugger library - linked into VBoxVMM.
|
---|
37 | #
|
---|
38 | Debugger_TEMPLATE = VBOXR3
|
---|
39 | Debugger_DEFS = IN_VMM_R3 IN_DBG_R3 IN_DIS
|
---|
40 | ifneq ($(KBUILD_TYPE),release)
|
---|
41 | Debugger_DEFS += VBOX_WITH_DEBUGGER_TCP_BY_DEFAULT
|
---|
42 | endif
|
---|
43 | Debugger_SOURCES = \
|
---|
44 | DBGConsole.cpp \
|
---|
45 | DBGCBuiltInSymbols.cpp \
|
---|
46 | DBGCCmdHlp.cpp \
|
---|
47 | DBGCCmdWorkers.cpp \
|
---|
48 | DBGCCommands.cpp \
|
---|
49 | DBGCEmulateCodeView.cpp \
|
---|
50 | DBGCOps.cpp \
|
---|
51 | DBGCGdbRemoteStub.cpp \
|
---|
52 | DBGCTcp.cpp
|
---|
53 |
|
---|
54 | #
|
---|
55 | # The diggers plug-in.
|
---|
56 | #
|
---|
57 | DLLS += DBGCPlugInDiggers
|
---|
58 | DBGCPlugInDiggers_TEMPLATE = VBOXR3
|
---|
59 | DBGCPlugInDiggers_SOURCES = \
|
---|
60 | DBGPlugInDiggers.cpp \
|
---|
61 | DBGPlugInLinux.cpp \
|
---|
62 | DBGPlugInSolaris.cpp \
|
---|
63 | DBGPlugInWinNt.cpp \
|
---|
64 | DBGPlugInCommonELF.cpp
|
---|
65 | DBGCPlugInDiggers_LIBS = \
|
---|
66 | $(LIB_VMM) \
|
---|
67 | $(LIB_REM) \
|
---|
68 | $(LIB_RUNTIME)
|
---|
69 |
|
---|
70 |
|
---|
71 | #
|
---|
72 | # The DBGC parser testcase.
|
---|
73 | # This stubs all the VBoxVMM APIs.
|
---|
74 | #
|
---|
75 | tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
|
---|
76 | tstDBGCParser_DEFS = IN_VMM_R3
|
---|
77 | tstDBGCParser_SOURCES = \
|
---|
78 | testcase/tstDBGCParser.cpp \
|
---|
79 | testcase/tstDBGCStubs.cpp
|
---|
80 | tstDBGCParser_LIBS = \
|
---|
81 | $(TARGET_Debugger) \
|
---|
82 | $(LIB_RUNTIME)
|
---|
83 |
|
---|
84 |
|
---|
85 | if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
|
---|
86 | #
|
---|
87 | # Debugger GUI component (Qt4).
|
---|
88 | #
|
---|
89 | USES += qt4
|
---|
90 | DLLS += VBoxDbg
|
---|
91 | VBoxDbg_TEMPLATE = VBOXQT4GUI
|
---|
92 | VBoxDbg_DEFS = IN_DBG_R3 VBOXDBG_USE_QT4
|
---|
93 | VBoxDbg_INCS = .
|
---|
94 | VBoxDbg_QT_MODULES = Core Gui
|
---|
95 | VBoxDbg_QT_MOCHDRS = \
|
---|
96 | VBoxDbgGui.h \
|
---|
97 | VBoxDbgConsole.h \
|
---|
98 | VBoxDbgStatsQt4.h
|
---|
99 | VBoxDbg_SOURCES = \
|
---|
100 | VBoxDbg.cpp \
|
---|
101 | VBoxDbgGui.cpp \
|
---|
102 | VBoxDbgBase.cpp \
|
---|
103 | VBoxDbgConsole.cpp \
|
---|
104 | VBoxDbgStatsQt4.cpp
|
---|
105 | VBoxDbg_LIBS = \
|
---|
106 | $(LIB_VMM)
|
---|
107 | VBoxDbg_LDFLAGS.darwin = \
|
---|
108 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
|
---|
109 |
|
---|
110 | ifdef VBOX_WITH_TESTCASES
|
---|
111 | #
|
---|
112 | # The VBoxDbg testcase (Qt4).
|
---|
113 | #
|
---|
114 | PROGRAMS += tstVBoxDbg
|
---|
115 | tstVBoxDbg_TEMPLATE = VBOXQT4GUIEXE
|
---|
116 | tstVBoxDbg_USES = qt4
|
---|
117 | tstVBoxDbg_QTTOOL = QT4
|
---|
118 | tstVBoxDbg_QT_MODULES = Core Gui
|
---|
119 | tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp
|
---|
120 | tstVBoxDbg_LIBS = \
|
---|
121 | $(LIB_VMM) \
|
---|
122 | $(LIB_RUNTIME)
|
---|
123 | ifeq ($(KBUILD_TARGET),win)
|
---|
124 | tstVBoxDbg_LIBS += \
|
---|
125 | $(PATH_LIB)/VBoxDbg.lib
|
---|
126 | else
|
---|
127 | tstVBoxDbg_LIBS += \
|
---|
128 | $(PATH_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
|
---|
129 | endif
|
---|
130 | endif # TESTCASES
|
---|
131 | endif # Qt4
|
---|
132 |
|
---|
133 |
|
---|
134 | #
|
---|
135 | # Install the dbghelp.dll binary.
|
---|
136 | #
|
---|
137 | dbghelp_INST = bin/
|
---|
138 | dbghelp_SOURCES.x86 = win32/dbghelp.dll
|
---|
139 | dbghelp_SOURCES.amd64 = win64/dbghelp.dll
|
---|
140 |
|
---|
141 |
|
---|
142 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
143 |
|
---|