rules revision bffb24521128f5183aafbef6542e7dacf20b5132
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Copyright (C) 2006-2008 Sun Microsystems, Inc.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# This file is part of VirtualBox Open Source Edition (OSE), as
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# available from http://www.virtualbox.org. This file is free software;
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# you can redistribute it and/or modify it under the terms of the GNU
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# General Public License as published by the Free Software Foundation,
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# distribution. VirtualBox OSE is distributed in the hope that it will
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# be useful, but WITHOUT ANY WARRANTY of any kind.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#export DH_VERBOSE=1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# possible overrides:
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# OSE=1 force VBOX_OSE
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# NOPARALLEL=1 compile with -j1
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# LINUX=<dir> compile vboxdrv against Linux found in <dir>
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# VERBOSE=1 verbose build
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# DEBUG=1 debug build
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# NOSUBVER=1 disable generation of the sub-version field (which is
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# either the subversion rev [if available] or the build date)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# NODOCS=1 don't build docs, use precompiled UserManual.pdf and
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# NOMODS=1 don't build any module
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# NOQT=1 don't build the Qt GUI
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# HEADLESS=1 build the headless version
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
debrel := $(if $(shell which lsb_release),_$(shell lsb_release -si)_$(shell lsb_release -sc),unknown)
$(shell test $(gccvmaj) -eq 4 -a $(gccvmin) -gt 2 -o $(gccvmaj) -gt 4 && echo "yes"),--with-gcc=gcc-4.2 --with-g++=g++-4.2,) $(if \
$(debcfgs) \
$(debcfgs) \
dh_clean -k
VBoxHeadless; do \
install -D -g 0 -o 0 -m 0644 \
install -D -g 0 -o 0 -m 0644 \
dh_link \
sed \
dh_strip --keep-debug --exclude=libVBoxQtCore.so.4 --exclude=libVBoxQtGui.so.4 --exclude=libVBoxQtNetwork.so.4 --exclude=libqtaccessiblewidgets.so
for f in \
dh_gencontrol -- \