VirtualBox

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

Last change on this file since 39091 was 39091, checked in by vboxsync, 13 years ago

More parameter warning fixes; made PciIch9 check the saved state version.

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