VirtualBox

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

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

Debugger: kind of getting somewhere...

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