]>
Commit | Line | Data |
---|---|---|
056a1eb7 SF |
1 | KBUILD_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 | # | |
10 | # Copyright (C) 2006-2010 Oracle Corporation | |
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 | |
22 | obj ?= $(CURDIR) | |
23 | include $(obj)/Makefile.include.header | |
24 | ||
6d209b23 | 25 | BUILD = 1 |
056a1eb7 | 26 | |
6d209b23 SF |
27 | # We want to build on Linux 3.11 and later, plus the 3.10 EL 7.3 and later |
28 | # kernels. This file was added in 3.11 and back-ported to the EL 7.3 kernel. | |
29 | ifeq ($(wildcard $(KERN_INCL)/drm/drm_rect.h),) | |
30 | #BUILD = | |
056a1eb7 SF |
31 | endif |
32 | ||
6d209b23 SF |
33 | # And we do not want to build on EL6, regardless of what may have been |
34 | # backported. | |
35 | ifneq ($(wildcard /etc/redhat-release),) | |
36 | ifneq ($(shell grep "Enterprise.*release 6" /etc/redhat-release),) | |
37 | BUILD = | |
38 | endif | |
056a1eb7 | 39 | endif |
6d209b23 SF |
40 | |
41 | ifneq ($(BUILD),) | |
42 | ||
43 | MOD_NAME = vboxvideo | |
44 | MOD_OBJS = hgsmi_base.o \ | |
45 | modesetting.o vbox_drv.o vbox_fb.o vbox_irq.o vbox_main.o \ | |
46 | vbox_mode.o vbox_ttm.o vbva_base.o vbox_prime.o vbox_hgsmi.o | |
47 | MOD_INCL = -I$(KBUILD_EXTMOD) -Iinclude/drm | |
056a1eb7 SF |
48 | |
49 | include $(obj)/Makefile.include.footer | |
6d209b23 SF |
50 | |
51 | else # ! wildcard $(KERN_INCL)/drm/drm_rect.h | |
52 | ||
53 | all: | |
54 | install: | |
55 | clean: | |
56 | ||
57 | endif # ! wildcard $(KERN_INCL)/drm/drm_rect.h |