1 | # $Id: Makefile.module.kms 68644 2017-09-05 14:08:31Z 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
|
---|
21 | obj ?= $(CURDIR)
|
---|
22 | include $(obj)/Makefile.include.header
|
---|
23 |
|
---|
24 | # We want to build on Linux 3.11 and later, plus the 3.10 EL 7.3 and later
|
---|
25 | # kernels. This file was added in 3.11 and back-ported to the EL 7.3 kernel.
|
---|
26 | ifneq ($(wildcard $(KERN_INCL)/drm/drm_rect.h),)
|
---|
27 |
|
---|
28 | MOD_NAME = vboxvideo
|
---|
29 | MOD_OBJS = hgsmi_base.o \
|
---|
30 | modesetting.o vbox_drv.o vbox_fb.o vbox_irq.o vbox_main.o \
|
---|
31 | vbox_mode.o vbox_ttm.o vbva_base.o vbox_prime.o vbox_hgsmi.o
|
---|
32 | MOD_INCL = -I$(KBUILD_EXTMOD) -Iinclude/drm
|
---|
33 |
|
---|
34 | include $(obj)/Makefile.include.footer
|
---|
35 |
|
---|
36 | else # ! wildcard $(KERN_INCL)/drm/drm_rect.h
|
---|
37 |
|
---|
38 | all:
|
---|
39 | install:
|
---|
40 | clean:
|
---|
41 |
|
---|
42 | endif # ! wildcard $(KERN_INCL)/drm/drm_rect.h
|
---|