# $Id: Makefile.kmk 53805 2015-01-14 16:07:35Z vboxsync $ ## @file # Makefile for the VBox debugger. # # # Copyright (C) 2006-2012 Oracle Corporation # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is free software; # you can redistribute it and/or modify it under the terms of the GNU # General Public License (GPL) as published by the Free Software # Foundation, in version 2 as it comes in the "COPYING" file of the # VirtualBox OSE distribution. VirtualBox OSE is distributed in the # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. # SUB_DEPTH = ../../.. include $(KBUILD_PATH)/subheader.kmk # # The targets. # ifdef VBOX_WITH_DEBUGGER LIBRARIES += Debugger ifdef VBOX_WITH_TESTCASES PROGRAMS += tstDBGCParser endif endif # VBOX_WITH_DEBUGGER # # Debugger library - linked into VBoxVMM. # Debugger_TEMPLATE = VBOXR3 Debugger_DEFS = IN_VMM_R3 IN_DBG_R3 IN_DIS ifneq ($(KBUILD_TYPE),release) Debugger_DEFS += VBOX_WITH_DEBUGGER_TCP_BY_DEFAULT endif Debugger_SOURCES = \ DBGConsole.cpp \ DBGCEval.cpp \ DBGCBuiltInSymbols.cpp \ DBGCCmdHlp.cpp \ DBGCCmdWorkers.cpp \ DBGCCommands.cpp \ DBGCFunctions.cpp \ DBGCEmulateCodeView.cpp \ DBGCOps.cpp \ DBGCGdbRemoteStub.cpp \ DBGCTcp.cpp # # The diggers plug-in. # DLLS += DBGCPlugInDiggers DBGCPlugInDiggers_TEMPLATE = VBOXR3 DBGCPlugInDiggers_SOURCES = \ DBGPlugInDiggers.cpp \ DBGPlugInDarwin.cpp \ DBGPlugInLinux.cpp \ DBGPlugInSolaris.cpp \ DBGPlugInWinNt.cpp \ DBGPlugInOS2.cpp \ DBGPlugInCommonELF.cpp DBGCPlugInDiggers_SOURCES.win = \ DBGCPlugInDiggers.rc DBGCPlugInDiggers_LIBS = \ $(if-expr "$(LIB_VMM)" == "$(VBOX_LIB_VMM_LAZY)",$(LIB_REM),) \ $(VBOX_LIB_VMM_LAZY) \ $(LIB_RUNTIME) # # The DBGC parser testcase. # This stubs all the VBoxVMM APIs. # tstDBGCParser_TEMPLATE = VBOXR3TSTEXE tstDBGCParser_DEFS = IN_VMM_R3 tstDBGCParser_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS) tstDBGCParser_SOURCES = \ testcase/tstDBGCParser.cpp \ testcase/tstDBGCStubs.cpp tstDBGCParser_LIBS = \ $(Debugger_1_TARGET) \ $(LIB_RUNTIME) if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI) # # Debugger GUI component (Qt4). # USES += qt4 DLLS += VBoxDbg VBoxDbg_TEMPLATE = VBOXQT4GUI VBoxDbg_DEFS = IN_DBG_R3 VBOXDBG_USE_QT4 VBoxDbg_INCS = . VBoxDbg_QT_MODULES = Core Gui VBoxDbg_QT_MOCHDRS = \ VBoxDbgGui.h \ VBoxDbgConsole.h \ VBoxDbgStatsQt4.h VBoxDbg_SOURCES = \ VBoxDbg.cpp \ VBoxDbgGui.cpp \ VBoxDbgBase.cpp \ VBoxDbgConsole.cpp \ VBoxDbgStatsQt4.cpp VBoxDbg_SOURCES.win = \ VBoxDbg.rc VBoxDbg_LIBS = \ $(VBOX_LIB_VMM_LAZY) VBoxDbg_LDFLAGS.darwin = \ -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib ifdef VBOX_WITH_TESTCASES # # The VBoxDbg testcase (Qt4). # PROGRAMS += tstVBoxDbg tstVBoxDbg_TEMPLATE = VBOXQT4GUIEXE tstVBoxDbg_USES = qt4 tstVBoxDbg_QTTOOL = QT4 tstVBoxDbg_QT_MODULES = Core Gui tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp tstVBoxDbg_LIBS = \ $(LIB_VMM) \ $(LIB_RUNTIME) ifeq ($(KBUILD_TARGET),win) tstVBoxDbg_LIBS += \ $(PATH_STAGE_LIB)/VBoxDbg.lib else tstVBoxDbg_LIBS += \ $(PATH_STAGE_BIN)/VBoxDbg$(VBOX_SUFF_DLL) endif endif # TESTCASES endif # Qt4 include $(FILE_KBUILD_SUB_FOOTER)