VirtualBox

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

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

Debugger: More USES

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 KB
Line 
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
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#
80USES += qt3
81DLLS += VBoxDbg3
82VBoxDbg3_TEMPLATE = VBOXQTGUI
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#
130USES += qt4
131DLLS += VBoxDbg
132VBoxDbg_TEMPLATE = VBOXQT4GUI
133VBoxDbg_DEFS = IN_DBG_R3 VBOXDBG_USE_QT4
134VBoxDbg_INCS = .
135VBoxDbg_QT_MODULES = Core Gui
136VBoxDbg_QT_MOCHDRS = \
137 VBoxDbgGui.h \
138 VBoxDbgConsole.h \
139 VBoxDbgStats.h
140VBoxDbg_SOURCES = \
141 VBoxDbg.cpp \
142 VBoxDbgGui.cpp \
143 VBoxDbgBase.cpp \
144 VBoxDbgConsole.cpp \
145 VBoxDbgStats.cpp
146VBoxDbg_LIBS = \
147 $(LIB_VMM)
148VBoxDbg_LDFLAGS.darwin = \
149 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
150
151 ifdef VBOX_WITH_TESTCASES
152#
153# The VBoxDbg testcase (Qt4).
154#
155PROGRAMS += tstVBoxDbg
156tstVBoxDbg_TEMPLATE = VBOXQT4GUIEXE
157tstVBoxDbg_USES = qt4
158tstVBoxDbg_QTTOOL = QT4
159tstVBoxDbg_QT_MODULES = Core Gui
160tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp
161tstVBoxDbg_LIBS = \
162 $(LIB_VMM) \
163 $(LIB_RUNTIME)
164 ifeq ($(KBUILD_TARGET),win)
165tstVBoxDbg_LIBS += \
166 $(PATH_LIB)/VBoxDbg.lib
167 else
168tstVBoxDbg_LIBS += \
169 $(PATH_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
170 endif
171 endif # TESTCASES
172endif # Qt4
173
174
175#
176# Install the dbghelp.dll binary.
177#
178dbghelp_INST = bin/
179dbghelp_SOURCES.x86 = win32/dbghelp.dll
180dbghelp_SOURCES.amd64 = win64/dbghelp.dll
181
182
183include $(KBUILD_PATH)/subfooter.kmk
184
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