VirtualBox

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

Last change on this file since 31512 was 31510, checked in by vboxsync, 14 years ago

The debugger is back in the OSE.

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