Makefile revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
#
# Makefile for the VBox debugger.
#
#
# Copyright (C) 2006 InnoTek Systemberatung GmbH
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License 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.
#
# If you received this file as part of a commercial VirtualBox
# distribution, then only the terms of your commercial VirtualBox
# license agreement apply instead of the previous paragraph.
#
DEPTH = ../../..
#
# Debugger library
#
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
Debugger_SOURCES = \
#
# The testcase.
#
tstVBoxDbg_LIBS = \
$(LIB_RUNTIME) \
$(LIB_VMM)
tstVBoxDbg_LIBS = \
$(LIB_VMM) \
$(LIB_RUNTIME)
#
# Debugger GUI component.
#
VBoxDbg_INCS = \
. \
$(PATH_VBoxDbg)/ui \
$(PATH_VBoxDbg)/moc \
# QDesigner UI sources
# Headers containing definitions of classes that use the Q_OBJECT macro
# UI headers (ui.h) containing local definitions of classes that use the Q_OBJECT macro
VBoxDbg_GENSRCS = \
$(foreach ui,$(notdir $(basename $(VBoxDbg_QT_UISRCS))), $(PATH_VBoxDbg)/ui/$(ui).cpp $(PATH_VBoxDbg)/moc/moc_$(ui).cpp)
VBoxDbg_GENHDRS = \
VBoxDbg_SOURCES = \
$(VBoxDbg_GENSRCS) \
VBoxDbg_LIBS = $(LIB_VMM)
# generated files we need to clean manually
VBoxDbg_CLEAN += \
$(VBoxDbg_GENSRCS) \
#
# Install the dbghelp.dll binary.
#
dbghelp_INST = bin/
#
# Source file generation rules
#
## Generate a rule to create a MOC source file from a header containing
# classes that use the Q_OBJECT macro.
# @param $mochdr the header file with Q_OBJECT
## Generate a rule to create a MOC include file from a source containing
# local classes that use the Q_OBJECT macro. This include is then included
# by that source, so it must be generated before the source gets compiled.
# @param $mocsrc the source file with Q_OBJECT
## Generate a rule to create a MOC include file from a UI header (ui.h) containing
# local classes that use the Q_OBJECT macro. This include is then included
# by that header, so it must be generated before the UI source gets compiled.
# @param $mocuihdr the UI header file with Q_OBJECT
## Generate rules for generating the Qt source for a target.
# @param $target Target name.
# moc srcs from hdrs with Q_OBJECT
# moc includes from srcs with Q_OBJECT
# moc includes from UI headers with Q_OBJECT
# ui
# dirs
$(MKDIR) -p $$@
# Generate Qt sources.
$(MKDIR) -p $@
#
# Translation stuff
#
$(VBOX_LUPDATE) $(VBoxDbg_SOURCES) $(VBoxDbg_QT_MOCHDRS) $(VBoxDbg_GENHDRS) -ts $(VBoxDbg_TRANSLATIONS)
#
# Hand made dependencies go here
#
$(PATH_VBoxDbg)/gen/ui/VBoxNewVMWzd$(SUFF_OBJ): $(PATH_VBoxDbg)/ui/VBoxNewVMWzd.h $(PATH_VBoxDbg)/ui/VBoxDiskImageMgrDlg.h
$(PATH_VBoxDbg)/gen/ui/VBoxDiskImageMgrDlg$(SUFF_OBJ): ui/VBoxDiskImageMgrDlg.ui $(PATH_VBoxDbg)/ui/VBoxNewHDWzd.h
test: