VirtualBox

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

Last change on this file since 58356 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: 1.8 KB
Line 
1# $Id: Makefile.module.kms 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-2010 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 = HGSMIBase.o HGSMICommon.o HGSMIMemAlloc.o heapoffset.o \
27 Modesetting.o vbox_drv.o vbox_fb.o vbox_main.o vbox_mode.o \
28 vbox_ttm.o VBVABase.o
29
30ifneq ($(wildcard $(KBUILD_EXTMOD)/vboxvideo),)
31 MANGLING := $(KBUILD_EXTMOD)/vboxvideo/include/VBox/VBoxGuestMangling.h
32else
33 MANGLING := $(KBUILD_EXTMOD)/include/VBox/VBoxGuestMangling.h
34endif
35MOD_CFLAGS = -fshort-wchar -include $(MANGLING)
36MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include)
37# What on earth is this?
38MOD_INCL += $(addprefix -I$(KBUILD_EXTMOD)/vboxvideo,/ /include)
39MOD_INCL += -Iinclude/drm
40MOD_DEFS := -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 \
41 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE \
42 -DIN_GUEST_R0
43# our module does not export any symbol
44MOD_DEFS += -DRT_NO_EXPORT_SYMBOL
45ifeq ($(BUILD_TARGET_ARCH),amd64)
46 MOD_DEFS += -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS
47else
48 MOD_DEFS += -DRT_ARCH_X86
49endif
50MOD_CLEAN = . linux r0drv r0drv/linux
51
52include $(obj)/Makefile.include.footer
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