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