1 | # $Id: Makefile.kmk 12230 2008-09-08 14:41:58Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VBox debugger.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
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 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
23 | SUB_DEPTH = ../../..
|
---|
24 | else
|
---|
25 | SUB_DEPTH = .
|
---|
26 | DEPTH = ../../..
|
---|
27 | endif
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | #
|
---|
31 | # The targets.
|
---|
32 | #
|
---|
33 | ifdef VBOX_WITH_DEBUGGER
|
---|
34 | LIBRARIES += Debugger
|
---|
35 | ifdef VBOX_WITH_TESTCASES
|
---|
36 | PROGRAMS += tstDBGCParser
|
---|
37 | endif
|
---|
38 | endif # VBOX_WITH_DEBUGGER
|
---|
39 | ifndef VBOX_OSE
|
---|
40 | INSTALLS.win.x86 += dbghelp
|
---|
41 | endif
|
---|
42 |
|
---|
43 |
|
---|
44 | #
|
---|
45 | # Debugger library - linked into VBoxVMM.
|
---|
46 | #
|
---|
47 | Debugger_TEMPLATE = VBOXR3
|
---|
48 | Debugger_DEFS = IN_VMM_R3 IN_PDM_R3 IN_CFGM_R3 IN_IOM_R3 IN_SUP_R3 IN_VM_R3 IN_RT_R3 IN_CPUM_R3 IN_SELM_R3 IN_PGM_R3 IN_TRPM_R3 IN_MM_R3 IN_DBG_R3 IN_DBGF_R3 IN_DIS_R3
|
---|
49 | Debugger_SOURCES = \
|
---|
50 | DBGConsole.cpp \
|
---|
51 | DBGCBuiltInSymbols.cpp \
|
---|
52 | DBGCCmdHlp.cpp \
|
---|
53 | DBGCCmdWorkers.cpp \
|
---|
54 | DBGCCommands.cpp \
|
---|
55 | DBGCEmulateCodeView.cpp \
|
---|
56 | DBGCOps.cpp \
|
---|
57 | DBGCTcp.cpp \
|
---|
58 | DBGPlugInSolaris.cpp \
|
---|
59 | DBGPlugInCommonELF.cpp
|
---|
60 |
|
---|
61 |
|
---|
62 | #
|
---|
63 | # The DBGC parser testcase.
|
---|
64 | # This stubs all the VBoxVMM APIs.
|
---|
65 | #
|
---|
66 | tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
|
---|
67 | tstDBGCParser_DEFS = IN_DBGF_R3 IN_CPUM_R3 IN_MM_R3 IN_PGM_R3 IN_SELM_R3
|
---|
68 | tstDBGCParser_SOURCES = \
|
---|
69 | testcase/tstDBGCParser.cpp \
|
---|
70 | testcase/tstDBGCStubs.cpp
|
---|
71 | tstDBGCParser_LIBS = \
|
---|
72 | $(TARGET_Debugger) \
|
---|
73 | $(LIB_RUNTIME)
|
---|
74 |
|
---|
75 |
|
---|
76 | if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
|
---|
77 | #
|
---|
78 | # Debugger GUI component (Qt3).
|
---|
79 | #
|
---|
80 | USES += qt3
|
---|
81 | DLLS += VBoxDbg3
|
---|
82 | VBoxDbg3_TEMPLATE = VBOXQTGUI
|
---|
83 | VBoxDbg3_USES = qt3
|
---|
84 | VBoxDbg3_QTTOOL = QT3
|
---|
85 | VBoxDbg3_DEFS = IN_DBG_R3
|
---|
86 | VBoxDbg3_INCS = .
|
---|
87 | VBoxDbg3_CXXFLAGS.linux = $(TEMPLATE_VBOXQTGUI_CXXFLAGS.linux) -O2
|
---|
88 | VBoxDbg3_QT_MOCHDRS = \
|
---|
89 | VBoxDbgConsole.h \
|
---|
90 | VBoxDbgStats.h \
|
---|
91 | VBoxDbgGui.h
|
---|
92 | VBoxDbg3_SOURCES = \
|
---|
93 | VBoxDbg.cpp \
|
---|
94 | VBoxDbgGui.cpp \
|
---|
95 | VBoxDbgBase.cpp \
|
---|
96 | VBoxDbgConsole.cpp \
|
---|
97 | VBoxDbgStats.cpp
|
---|
98 | VBoxDbg3_LIBS = \
|
---|
99 | $(LIB_VMM)
|
---|
100 | VBoxDbg3_LDFLAGS.darwin = \
|
---|
101 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg3.dylib
|
---|
102 |
|
---|
103 | ifdef VBOX_WITH_TESTCASES
|
---|
104 | #
|
---|
105 | # The VBoxDbg testcase (Qt3).
|
---|
106 | #
|
---|
107 | PROGRAMS += tstVBoxDbg3
|
---|
108 | tstVBoxDbg3_TEMPLATE = VBOXQTGUIEXE
|
---|
109 | tstVBoxDbg3_USES = qt3
|
---|
110 | tstVBoxDbg3_QTTOOL = QT3
|
---|
111 | tstVBoxDbg3_SOURCES = testcase/tstVBoxDbg.cpp
|
---|
112 | tstVBoxDbg3_LIBS = \
|
---|
113 | $(LIB_VMM) \
|
---|
114 | $(LIB_RUNTIME)
|
---|
115 | ifeq ($(KBUILD_TARGET),win)
|
---|
116 | tstVBoxDbg3_LIBS += \
|
---|
117 | $(PATH_LIB)/VBoxDbg.lib
|
---|
118 | else
|
---|
119 | tstVBoxDbg3_LIBS += \
|
---|
120 | $(PATH_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
|
---|
121 | endif
|
---|
122 | endif
|
---|
123 | endif # QTGUI
|
---|
124 |
|
---|
125 |
|
---|
126 | if defined(VBOX_WITH_QT4GUI) && defined(VBOX_WITH_DEBUGGER_GUI) && $(USER) == bird
|
---|
127 | #
|
---|
128 | # Debugger GUI component (Qt4).
|
---|
129 | #
|
---|
130 | USES += qt4
|
---|
131 | DLLS += VBoxDbg
|
---|
132 | VBoxDbg_TEMPLATE = VBOXQT4GUI
|
---|
133 | VBoxDbg_DEFS = IN_DBG_R3 VBOXDBG_USE_QT4
|
---|
134 | VBoxDbg_INCS = .
|
---|
135 | VBoxDbg_QT_MODULES = Core Gui
|
---|
136 | VBoxDbg_QT_MOCHDRS = \
|
---|
137 | VBoxDbgGui.h \
|
---|
138 | VBoxDbgConsole.h \
|
---|
139 | VBoxDbgStats.h
|
---|
140 | VBoxDbg_SOURCES = \
|
---|
141 | VBoxDbg.cpp \
|
---|
142 | VBoxDbgGui.cpp \
|
---|
143 | VBoxDbgBase.cpp \
|
---|
144 | VBoxDbgConsole.cpp \
|
---|
145 | VBoxDbgStats.cpp
|
---|
146 | VBoxDbg_LIBS = \
|
---|
147 | $(LIB_VMM)
|
---|
148 | VBoxDbg_LDFLAGS.darwin = \
|
---|
149 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
|
---|
150 |
|
---|
151 | ifdef VBOX_WITH_TESTCASES
|
---|
152 | #
|
---|
153 | # The VBoxDbg testcase (Qt4).
|
---|
154 | #
|
---|
155 | PROGRAMS += tstVBoxDbg
|
---|
156 | tstVBoxDbg_TEMPLATE = VBOXQT4GUIEXE
|
---|
157 | tstVBoxDbg_USES = qt4
|
---|
158 | tstVBoxDbg_QTTOOL = QT4
|
---|
159 | tstVBoxDbg_QT_MODULES = Core Gui
|
---|
160 | tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp
|
---|
161 | tstVBoxDbg_LIBS = \
|
---|
162 | $(LIB_VMM) \
|
---|
163 | $(LIB_RUNTIME)
|
---|
164 | ifeq ($(KBUILD_TARGET),win)
|
---|
165 | tstVBoxDbg_LIBS += \
|
---|
166 | $(PATH_LIB)/VBoxDbg.lib
|
---|
167 | else
|
---|
168 | tstVBoxDbg_LIBS += \
|
---|
169 | $(PATH_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
|
---|
170 | endif
|
---|
171 | endif # TESTCASES
|
---|
172 | endif # Qt4
|
---|
173 |
|
---|
174 |
|
---|
175 | #
|
---|
176 | # Install the dbghelp.dll binary.
|
---|
177 | #
|
---|
178 | dbghelp_INST = bin/
|
---|
179 | dbghelp_SOURCES.x86 = win32/dbghelp.dll
|
---|
180 | dbghelp_SOURCES.amd64 = win64/dbghelp.dll
|
---|
181 |
|
---|
182 |
|
---|
183 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
184 |
|
---|