Makefile.module.kms revision f46caa2fd0e63a4972bda9d1e465104ff5008e5d
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# VirtualBox Guest Additions Module Makefile.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# (For 2.6.x this file must be 'Makefile'!)
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# Copyright (C) 2006-2010 Oracle Corporation
af062818b47340eef15700d2f0211576ba3506eevboxsync#
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#
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync# Linux kbuild sets this to our source directory if we are called from there
af062818b47340eef15700d2f0211576ba3506eevboxsyncobj ?= $(CURDIR)
af062818b47340eef15700d2f0211576ba3506eevboxsyncinclude $(obj)/Makefile.include.header
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncMOD_NAME = vboxvideo
af062818b47340eef15700d2f0211576ba3506eevboxsync
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncMOD_OBJS = Modesetting.o vboxvideo_crtc.o vboxvideo_dac.o vboxvideo_device.o \
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync vboxvideo_display.o vboxvideo_drv.o vboxvideo_kms.o vboxvideo_vga.o
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncifneq ($(wildcard $(KBUILD_EXTMOD)/vboxvideo),)
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync MANGLING := $(KBUILD_EXTMOD)/vboxvideo/include/VBox/VBoxGuestMangling.h
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncelse
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync MANGLING := $(KBUILD_EXTMOD)/include/VBox/VBoxGuestMangling.h
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncendif
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncMOD_CFLAGS = -fshort-wchar -include $(MANGLING)
af062818b47340eef15700d2f0211576ba3506eevboxsyncMOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux)
af062818b47340eef15700d2f0211576ba3506eevboxsync# What on earth is this?
af062818b47340eef15700d2f0211576ba3506eevboxsyncMOD_INCL += $(addprefix -I$(KBUILD_EXTMOD)/vboxvideo,/ /include /r0drv/linux)
af062818b47340eef15700d2f0211576ba3506eevboxsyncMOD_DEFS := -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 \
af062818b47340eef15700d2f0211576ba3506eevboxsync -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE \
af062818b47340eef15700d2f0211576ba3506eevboxsync -DIN_GUEST_R0
af062818b47340eef15700d2f0211576ba3506eevboxsync# our module does not export any symbol
af062818b47340eef15700d2f0211576ba3506eevboxsyncMOD_DEFS += -DRT_NO_EXPORT_SYMBOL
af062818b47340eef15700d2f0211576ba3506eevboxsyncifeq ($(BUILD_TARGET_ARCH),amd64)
af062818b47340eef15700d2f0211576ba3506eevboxsync MOD_DEFS += -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS
af062818b47340eef15700d2f0211576ba3506eevboxsyncelse
af062818b47340eef15700d2f0211576ba3506eevboxsync MOD_DEFS += -DRT_ARCH_X86
af062818b47340eef15700d2f0211576ba3506eevboxsyncendif
af062818b47340eef15700d2f0211576ba3506eevboxsyncMOD_CLEAN = . linux r0drv r0drv/linux
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncinclude $(obj)/Makefile.include.footer
af062818b47340eef15700d2f0211576ba3506eevboxsync