VirtualBox

source: vbox/trunk/src/VBox/Debugger/Makefile.kmk@ 12183

Last change on this file since 12183 was 12183, checked in by vboxsync, 16 years ago

Debugger GUI: Having a go at the statistics view and hitting a extremely inefficient tree view. So, later.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 KB
Line 
1# $Id: Makefile.kmk 12183 2008-09-07 02:35:53Z 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
22ifdef VBOX_SINGLE_MAKEFILE
23SUB_DEPTH = ../../..
24else
25SUB_DEPTH = .
26DEPTH = ../../..
27endif
28include $(KBUILD_PATH)/subheader.kmk
29
30#
31# The targets.
32#
33ifdef VBOX_WITH_DEBUGGER
34 LIBRARIES += Debugger
35 ifdef VBOX_WITH_TESTCASES
36 PROGRAMS += tstDBGCParser
37 endif
38endif # VBOX_WITH_DEBUGGER
39ifndef VBOX_OSE
40 INSTALLS.win.x86 += dbghelp
41endif
42
43
44#
45# Debugger library - linked into VBoxVMM.
46#
47Debugger_TEMPLATE = VBOXR3
48Debugger_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
49Debugger_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#
66tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
67tstDBGCParser_DEFS = IN_DBGF_R3 IN_CPUM_R3 IN_MM_R3 IN_PGM_R3 IN_SELM_R3
68tstDBGCParser_SOURCES = \
69 testcase/tstDBGCParser.cpp \
70 testcase/tstDBGCStubs.cpp
71tstDBGCParser_LIBS = \
72 $(TARGET_Debugger) \
73 $(LIB_RUNTIME)
74
75
76if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
77#
78# Debugger GUI component (Qt3).
79#
80DLLS += VBoxDbg3
81VBoxDbg3_TEMPLATE = VBOXQTGUI
82USES += qt3
83VBoxDbg3_USES = qt3
84VBoxDbg3_QTTOOL = QT3
85VBoxDbg3_DEFS = IN_DBG_R3
86VBoxDbg3_INCS = .
87VBoxDbg3_CXXFLAGS.linux = $(TEMPLATE_VBOXQTGUI_CXXFLAGS.linux) -O2
88VBoxDbg3_QT_MOCHDRS = \
89 VBoxDbgConsole.h \
90 VBoxDbgStats.h \
91 VBoxDbgGui.h
92VBoxDbg3_SOURCES = \
93 VBoxDbg.cpp \
94 VBoxDbgGui.cpp \
95 VBoxDbgBase.cpp \
96 VBoxDbgConsole.cpp \
97 VBoxDbgStats.cpp
98VBoxDbg3_LIBS = \
99 $(LIB_VMM)
100VBoxDbg3_LDFLAGS.darwin = \
101 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg3.dylib
102
103 ifdef VBOX_WITH_TESTCASES
104#
105# The VBoxDbg testcase (Qt3).
106#
107PROGRAMS += tstVBoxDbg3
108tstVBoxDbg3_TEMPLATE = VBOXQTGUIEXE
109tstVBoxDbg3_USES = qt3
110tstVBoxDbg3_QTTOOL = QT3
111tstVBoxDbg3_SOURCES = testcase/tstVBoxDbg.cpp
112tstVBoxDbg3_LIBS = \
113 $(LIB_VMM) \
114 $(LIB_RUNTIME)
115 ifeq ($(KBUILD_TARGET),win)
116tstVBoxDbg3_LIBS += \
117 $(PATH_LIB)/VBoxDbg.lib
118 else
119tstVBoxDbg3_LIBS += \
120 $(PATH_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
121 endif
122 endif
123endif # QTGUI
124
125
126if defined(VBOX_WITH_QT4GUI) && defined(VBOX_WITH_DEBUGGER_GUI) && $(USER) == bird
127#
128# Debugger GUI component (Qt4).
129#
130DLLS += VBoxDbg
131VBoxDbg_TEMPLATE = VBOXQT4GUI
132VBoxDbg_DEFS = IN_DBG_R3 VBOXDBG_USE_QT4
133VBoxDbg_INCS = .
134VBoxDbg_QT_MODULES = Core Gui
135VBoxDbg_QT_MOCHDRS = \
136 VBoxDbgGui.h \
137 VBoxDbgConsole.h \
138 VBoxDbgStats.h
139VBoxDbg_SOURCES = \
140 VBoxDbg.cpp \
141 VBoxDbgGui.cpp \
142 VBoxDbgBase.cpp \
143 VBoxDbgConsole.cpp \
144 VBoxDbgStats.cpp
145VBoxDbg_LIBS = \
146 $(LIB_VMM)
147VBoxDbg_LDFLAGS.darwin = \
148 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
149
150 ifdef VBOX_WITH_TESTCASES
151#
152# The VBoxDbg testcase (Qt4).
153#
154PROGRAMS += tstVBoxDbg
155tstVBoxDbg_TEMPLATE = VBOXQT4GUIEXE
156tstVBoxDbg_USES = qt4
157tstVBoxDbg_QTTOOL = QT4
158tstVBoxDbg_QT_MODULES = Core Gui
159tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp
160tstVBoxDbg_LIBS = \
161 $(LIB_VMM) \
162 $(LIB_RUNTIME)
163 ifeq ($(KBUILD_TARGET),win)
164tstVBoxDbg_LIBS += \
165 $(PATH_LIB)/VBoxDbg.lib
166 else
167tstVBoxDbg_LIBS += \
168 $(PATH_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
169 endif
170 endif # TESTCASES
171endif # Qt4
172
173
174#
175# Install the dbghelp.dll binary.
176#
177dbghelp_INST = bin/
178dbghelp_SOURCES.x86 = win32/dbghelp.dll
179dbghelp_SOURCES.amd64 = win64/dbghelp.dll
180
181
182include $(KBUILD_PATH)/subfooter.kmk
183
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette