rules revision 9c3bee32a5fb0decbd644a998a3d37035bb9800d
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Copyright (C) 2006-2009 Sun Microsystems, Inc.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# This file is part of VirtualBox Open Source Edition (OSE), as
03831d35f7499c87d51205817c93e9a8d42c4baestevel# available from http://www.virtualbox.org. This file is free software;
03831d35f7499c87d51205817c93e9a8d42c4baestevel# you can redistribute it and/or modify it under the terms of the GNU
03831d35f7499c87d51205817c93e9a8d42c4baestevel# General Public License as published by the Free Software Foundation,
03831d35f7499c87d51205817c93e9a8d42c4baestevel# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel# distribution. VirtualBox OSE is distributed in the hope that it will
03831d35f7499c87d51205817c93e9a8d42c4baestevel# be useful, but WITHOUT ANY WARRANTY of any kind.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#export DH_VERBOSE=1
03831d35f7499c87d51205817c93e9a8d42c4baestevel# possible overrides:
03831d35f7499c87d51205817c93e9a8d42c4baestevel# OSE=1 force VBOX_OSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel# NOPARALLEL=1 compile with -j1
03831d35f7499c87d51205817c93e9a8d42c4baestevel# LINUX=<dir> compile vboxdrv against Linux found in <dir>
03831d35f7499c87d51205817c93e9a8d42c4baestevel# VERBOSE=1 verbose build
03831d35f7499c87d51205817c93e9a8d42c4baestevel# DEBUG=1 debug build
03831d35f7499c87d51205817c93e9a8d42c4baestevel# NOSUBVER=1 disable generation of the sub-version field (which is
03831d35f7499c87d51205817c93e9a8d42c4baestevel# either the subversion rev [if available] or the build date)
03831d35f7499c87d51205817c93e9a8d42c4baestevel# NODOCS=1 don't build docs, use precompiled UserManual.pdf and
03831d35f7499c87d51205817c93e9a8d42c4baestevel# NOMODS=1 don't build any module
03831d35f7499c87d51205817c93e9a8d42c4baestevel# NOQT=1 don't build the Qt GUI
03831d35f7499c87d51205817c93e9a8d42c4baestevel# HEADLESS=1 build the headless version
03831d35f7499c87d51205817c93e9a8d42c4baestevel# NOWEBSVC=1 don't build the webservice API, default for OSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel# STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
03831d35f7499c87d51205817c93e9a8d42c4baestevel# BLEEDING_EDGE=xyz
debrel := $(if $(shell which lsb_release),_$(shell lsb_release -si)_$(shell lsb_release -sc),unknown)
$(if $(filter _Debian_etch _Ubuntu_dapper _Ubuntu_edgy _Ubuntu_feisty _Ubuntu_gutsy _Ubuntu_hardy,$(debrel)),--with-qt4-dir=$(qtstdc6)) \
$(if $(filter _Debian_sarge _Ubuntu_dapper _Ubuntu_edgy _xandros4.1 _ucs1.3,$(debrel)),--disable-pulse,) \
dh_clean -k
sed \
if [ -f $$d/vboxdrv.ko -a -f $$d/vboxnetflt.ko -a -f $$d/vboxnetadp.ko ]; then \
install -D -g 0 -o 0 -m 0644 \
install -D -g 0 -o 0 -m 0644 \
install -D -g 0 -o 0 -m 0644 \
dh_link \
sed \
dh_strip --keep-debug --exclude=libQtCoreVBox.so.4 --exclude=libQtGuiVBox.so.4 --exclude=libQtNetworkVBox.so.4 --exclude=libQtOpenGLVBox.so.4 --exclude=libqtaccessiblewidgets.so
for f in \
dh_gencontrol -- \