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