]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - ubuntu/vbox/vboxvideo/Makefile
UBUNTU: Ubuntu-4.15.0-96.97
[mirror_ubuntu-bionic-kernel.git] / ubuntu / vbox / vboxvideo / Makefile
CommitLineData
056a1eb7
SF
1KBUILD_EXTMOD=${srctree}/ubuntu/vbox
2# $Id: Makefile.module.kms $
3## @file
4# VirtualBox Guest Additions Module Makefile.
5#
6# (For 2.6.x this file must be 'Makefile'!)
7#
8
9#
26894aac 10# Copyright (C) 2006-2017 Oracle Corporation
056a1eb7
SF
11#
12# This file is part of VirtualBox Open Source Edition (OSE), as
13# available from http://www.virtualbox.org. This file is free software;
14# you can redistribute it and/or modify it under the terms of the GNU
15# General Public License (GPL) as published by the Free Software
16# Foundation, in version 2 as it comes in the "COPYING" file of the
17# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
18# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
19#
20
21# Linux kbuild sets this to our source directory if we are called from there
22obj ?= $(CURDIR)
23include $(obj)/Makefile.include.header
24
26894aac 25BUILD =
056a1eb7 26
26894aac
SF
27# We want to build on Linux 3.11 and later and on all EL 7 kernels.
28ifneq ($(filter-out 1.% 2.% 3.0.% 3.1.% 3.2.% 3.3.% 3.4.% 3.5.% 3.6.% 3.7.% \
29 3.8.% 3.9.% 3.10.%,$(KERN_VER)),)
30 BUILD = 1
056a1eb7 31endif
26894aac
SF
32ifeq ($(filter-out %.el7.x86_64,$(KERN_VER)),)
33 BUILD = 1
056a1eb7 34endif
6d209b23
SF
35
36ifneq ($(BUILD),)
37
38MOD_NAME = vboxvideo
39MOD_OBJS = hgsmi_base.o \
40 modesetting.o vbox_drv.o vbox_fb.o vbox_irq.o vbox_main.o \
41 vbox_mode.o vbox_ttm.o vbva_base.o vbox_prime.o vbox_hgsmi.o
42MOD_INCL = -I$(KBUILD_EXTMOD) -Iinclude/drm
056a1eb7
SF
43
44include $(obj)/Makefile.include.footer
6d209b23
SF
45
46else # ! wildcard $(KERN_INCL)/drm/drm_rect.h
47
48 all:
49 install:
50 clean:
51
52endif # ! wildcard $(KERN_INCL)/drm/drm_rect.h