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