]>
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 | # | |
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 | |
22 | obj ?= $(CURDIR) | |
23 | include $(obj)/Makefile.include.header | |
24 | ||
26894aac | 25 | BUILD = |
056a1eb7 | 26 | |
26894aac SF |
27 | # We want to build on Linux 3.11 and later and on all EL 7 kernels. |
28 | ifneq ($(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 | 31 | endif |
26894aac SF |
32 | ifeq ($(filter-out %.el7.x86_64,$(KERN_VER)),) |
33 | BUILD = 1 | |
056a1eb7 | 34 | endif |
6d209b23 SF |
35 | |
36 | ifneq ($(BUILD),) | |
37 | ||
38 | MOD_NAME = vboxvideo | |
39 | MOD_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 | |
42 | MOD_INCL = -I$(KBUILD_EXTMOD) -Iinclude/drm | |
056a1eb7 SF |
43 | |
44 | include $(obj)/Makefile.include.footer | |
6d209b23 SF |
45 | |
46 | else # ! wildcard $(KERN_INCL)/drm/drm_rect.h | |
47 | ||
48 | all: | |
49 | install: | |
50 | clean: | |
51 | ||
52 | endif # ! wildcard $(KERN_INCL)/drm/drm_rect.h |