rules revision 60b3bb99d58c291474ef79573ae7738ce769fdbb
0ad489b182ebb3789322345e22cf750f88ae167and# Copyright (C) 2006-2010 Oracle Corporation
0ad489b182ebb3789322345e22cf750f88ae167and# This file is part of VirtualBox Open Source Edition (OSE), as
0ad489b182ebb3789322345e22cf750f88ae167and# available from http://www.virtualbox.org. This file is free software;
0ad489b182ebb3789322345e22cf750f88ae167and# you can redistribute it and/or modify it under the terms of the GNU
0ad489b182ebb3789322345e22cf750f88ae167and# General Public License as published by the Free Software Foundation,
0ad489b182ebb3789322345e22cf750f88ae167and# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
0ad489b182ebb3789322345e22cf750f88ae167and# distribution. VirtualBox OSE is distributed in the hope that it will
0ad489b182ebb3789322345e22cf750f88ae167and# be useful, but WITHOUT ANY WARRANTY of any kind.
0ad489b182ebb3789322345e22cf750f88ae167and#export DH_VERBOSE=1
0ad489b182ebb3789322345e22cf750f88ae167and# possible overrides:
0ad489b182ebb3789322345e22cf750f88ae167and# OSE=1 force VBOX_OSE
0ad489b182ebb3789322345e22cf750f88ae167and# NOPARALLEL=1 compile with -j1
0ad489b182ebb3789322345e22cf750f88ae167and# LINUX=<dir> compile vboxdrv against Linux found in <dir>
0ad489b182ebb3789322345e22cf750f88ae167and# VERBOSE=1 verbose build
0ad489b182ebb3789322345e22cf750f88ae167and# DEBUG=1 debug build
0ad489b182ebb3789322345e22cf750f88ae167and# NOSUBVER=1 disable generation of the sub-version field (which is
0ad489b182ebb3789322345e22cf750f88ae167and# either the subversion rev [if available] or the build date)
0ad489b182ebb3789322345e22cf750f88ae167and# NODOCS=1 don't build docs, use precompiled UserManual.pdf and
0ad489b182ebb3789322345e22cf750f88ae167and# NOMODS=1 don't build any module
0ad489b182ebb3789322345e22cf750f88ae167and# NOQT=1 don't build the Qt GUI
8bb7126c063c34d63966733988411f72dfcb2294maczniak# HEADLESS=1 build the headless version
0ad489b182ebb3789322345e22cf750f88ae167and# NOWEBSVC=1 don't build the webservice API, default for OSE
0ad489b182ebb3789322345e22cf750f88ae167and# STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
0ad489b182ebb3789322345e22cf750f88ae167and# BLEEDING_EDGE=xyz
0ad489b182ebb3789322345e22cf750f88ae167andose := $(if $(OSE),1,$(if $(wildcard $(vboxroot)/src/VBox/RDP/server),,1))
0ad489b182ebb3789322345e22cf750f88ae167and $(error STAGEDISO='$(STAGEDISO)/VBoxGuestAdditions.iso' not found)
0ad489b182ebb3789322345e22cf750f88ae167anddebrel := $(if $(shell which lsb_release),_$(shell lsb_release -si)_$(shell lsb_release -sc),unknown)
0ad489b182ebb3789322345e22cf750f88ae167and# shipping Linux kernel modules with bleeding-edge releases doesn't make sense
dh_clean -k
rmdir $$i; \
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 \
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 -- \