VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/drm/Makefile.module@ 58845

Last change on this file since 58845 was 58129, checked in by vboxsync, 9 years ago

linux/drm: Fixed incorrect file headers. (copy + past is difficult, apparently)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1# $Id: Makefile.module 58129 2015-10-08 22:29:48Z vboxsync $
2## @file
3# VirtualBox Guest Additions Module Makefile.
4#
5# (For 2.6.x this file must be 'Makefile'!)
6#
7
8#
9# Copyright (C) 2006-2011 Oracle Corporation
10#
11# This file is part of VirtualBox Open Source Edition (OSE), as
12# available from http://www.virtualbox.org. This file is free software;
13# you can redistribute it and/or modify it under the terms of the GNU
14# General Public License (GPL) as published by the Free Software
15# Foundation, in version 2 as it comes in the "COPYING" file of the
16# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18#
19
20# Linux kbuild sets this to our source directory if we are called from there
21obj ?= $(CURDIR)
22include $(obj)/Makefile.include.header
23
24MOD_NAME = vboxvideo
25
26MOD_OBJS = vboxvideo_drm.o
27
28ifneq ($(wildcard $(KBUILD_EXTMOD)/vboxvideo),)
29 MANGLING := $(KBUILD_EXTMOD)/vboxvideo/include/VBox/VBoxGuestMangling.h
30else
31 MANGLING := $(KBUILD_EXTMOD)/include/VBox/VBoxGuestMangling.h
32endif
33MOD_CFLAGS = -Wno-declaration-after-statement -fshort-wchar -include $(MANGLING)
34MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux)
35# What on earth is this?
36MOD_INCL += $(addprefix -I$(KBUILD_EXTMOD)/vboxvideo,/ /include /r0drv/linux)
37# Enterprise Linux 6.5 does not include the drm user API headers with the kernel
38# headers.
39MOD_INCL += $(foreach inc,$(KERN_INCL) include,\
40 $(if $(wildcard $(inc)/linux/utsrelease.h),\
41 $(if $(shell grep '"2.6.32.*el6.*"' $(inc)/linux/utsrelease.h),\
42 -I/usr/include,),))
43MOD_DEFS := -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 \
44 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE \
45 -DIN_GUEST_R0
46# our module does not export any symbol
47MOD_DEFS += -DRT_NO_EXPORT_SYMBOL
48ifeq ($(BUILD_TARGET_ARCH),amd64)
49 MOD_DEFS += -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS
50else
51 MOD_DEFS += -DRT_ARCH_X86
52endif
53MOD_CLEAN = . linux r0drv r0drv/linux
54
55include $(obj)/Makefile.include.footer
56
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette