Makefile revision 5a4d5e0a9fbeedae85826992b32e19a14fe4c01b
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync# $Revision$
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# VirtualBox Guest Additions Module Makefile.
c14daac2bac51584dd4b94bf9ab51ed5b6f654aavboxsync# Copyright (C) 2006-2011 Oracle Corporation
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# available from http://www.virtualbox.org. This file is free software;
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# you can redistribute it and/or modify it under the terms of the GNU
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# General Public License (GPL) as published by the Free Software
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
c14daac2bac51584dd4b94bf9ab51ed5b6f654aavboxsync# Linux kbuild sets this to our source directory if we are called from there
d1c36fd86d36726777e3d6f9d040573e0aaf30devboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.o \
2f655f58f4f10aed9b9b07d1379093ef469ba682vboxsyncMOD_DEFS = -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST \
2f655f58f4f10aed9b9b07d1379093ef469ba682vboxsync -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST \
c14daac2bac51584dd4b94bf9ab51ed5b6f654aavboxsyncMOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux)
c14daac2bac51584dd4b94bf9ab51ed5b6f654aavboxsyncMOD_INCL += $(addprefix -I$(KBUILD_EXTMOD)/vboxguest,/ /include /r0drv/linux)
b39c3fa81cadaec00ebb2e7170a8db96998b7032vboxsync MANGLING := $(KBUILD_EXTMOD)/vboxguest/include/VBox/VBoxGuestMangling.h
b39c3fa81cadaec00ebb2e7170a8db96998b7032vboxsync MANGLING := $(KBUILD_EXTMOD)/include/VBox/VBoxGuestMangling.h
2f655f58f4f10aed9b9b07d1379093ef469ba682vboxsync ## @todo move to MOD_DEFS when we have finished refactoring
c14daac2bac51584dd4b94bf9ab51ed5b6f654aavboxsyncMOD_CLEAN = . linux r0drv generic r0drv/linux r0drv/generic VBox \
c14daac2bac51584dd4b94bf9ab51ed5b6f654aavboxsync common/alloc common/err common/log common/math/gcc common/misc \
715e49c31b15c23c17a9ce3be42a75e7c48d4b78vboxsync @if ! readelf -p __ksymtab_strings vboxguest.ko | grep -E "\[.*\] *(RT|g_..*RT.*)"; then \
715e49c31b15c23c17a9ce3be42a75e7c48d4b78vboxsync echo "All exported IPRT symbols are properly renamed!"; \
715e49c31b15c23c17a9ce3be42a75e7c48d4b78vboxsync echo "error: Some exported IPRT symbols was not properly renamed! See above." >&2; \