[58129] | 1 | # $Id: Makefile.module.kms 98103 2023-01-17 14:15:46Z vboxsync $
|
---|
| 2 | ## @file
|
---|
[43113] | 3 | # VirtualBox Guest Additions Module Makefile.
|
---|
| 4 | #
|
---|
| 5 | # (For 2.6.x this file must be 'Makefile'!)
|
---|
| 6 | #
|
---|
[58129] | 7 |
|
---|
| 8 | #
|
---|
[98103] | 9 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
[43113] | 10 | #
|
---|
[96407] | 11 | # This file is part of VirtualBox base platform packages, as
|
---|
| 12 | # available from https://www.virtualbox.org.
|
---|
[43113] | 13 | #
|
---|
[96407] | 14 | # This program is free software; you can redistribute it and/or
|
---|
| 15 | # modify it under the terms of the GNU General Public License
|
---|
| 16 | # as published by the Free Software Foundation, in version 3 of the
|
---|
| 17 | # License.
|
---|
| 18 | #
|
---|
| 19 | # This program is distributed in the hope that it will be useful, but
|
---|
| 20 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 21 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 22 | # General Public License for more details.
|
---|
| 23 | #
|
---|
| 24 | # You should have received a copy of the GNU General Public License
|
---|
| 25 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
| 26 | #
|
---|
| 27 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
| 28 | #
|
---|
[43113] | 29 |
|
---|
[64732] | 30 | # Linux kbuild sets this to our source directory if we are called from there
|
---|
| 31 | obj ?= $(CURDIR)
|
---|
[77390] | 32 | include $(obj)/Makefile-header.gmk
|
---|
[77504] | 33 | VBOXDRM_DIR = $(VBOX_MODULE_SRC_DIR)
|
---|
[64732] | 34 |
|
---|
[69563] | 35 | # We want to build on Linux 3.11 and later and on all EL 7 kernels.
|
---|
[77393] | 36 | VBOX_BUILD =
|
---|
[78136] | 37 | ifneq ($(filter-out 1.% 2.% 3.0 3.0.% 3.1 3.1.% 3.2 3.2.% 3.3 3.3.% 3.4 3.4.% 3.5 3.5.% 3.6 3.6.% 3.7 3.7.% 3.8 3.8.% 3.9 3.9.% 3.10 3.10.%,$(KERN_VER)),)
|
---|
[77393] | 38 | VBOX_BUILD = 1
|
---|
[69021] | 39 | endif
|
---|
[69563] | 40 | ifeq ($(filter-out %.el7.x86_64,$(KERN_VER)),)
|
---|
[77393] | 41 | VBOX_BUILD = 1
|
---|
[69021] | 42 | endif
|
---|
| 43 |
|
---|
[77393] | 44 | ifneq ($(VBOX_BUILD),)
|
---|
[69021] | 45 |
|
---|
[77415] | 46 | VBOXMOD_NAME = vboxvideo
|
---|
| 47 | VBOXMOD_OBJS = \
|
---|
[77393] | 48 | hgsmi_base.o \
|
---|
| 49 | modesetting.o \
|
---|
| 50 | vbox_drv.o \
|
---|
| 51 | vbox_fb.o \
|
---|
| 52 | vbox_irq.o \
|
---|
| 53 | vbox_main.o \
|
---|
| 54 | vbox_mode.o \
|
---|
| 55 | vbox_ttm.o \
|
---|
| 56 | vbva_base.o \
|
---|
| 57 | vbox_prime.o \
|
---|
| 58 | vbox_hgsmi.o
|
---|
[77415] | 59 | VBOXMOD_INCL = \
|
---|
[80270] | 60 | $(VBOXDRM_DIR) \
|
---|
[80271] | 61 | $(KERN_INCL)/drm
|
---|
[43113] | 62 |
|
---|
[77390] | 63 | include $(obj)/Makefile-footer.gmk
|
---|
[64732] | 64 |
|
---|
[77393] | 65 | else # !VBOX_BUILD
|
---|
[64732] | 66 |
|
---|
[68644] | 67 | all:
|
---|
| 68 | install:
|
---|
| 69 | clean:
|
---|
[66084] | 70 |
|
---|
[77393] | 71 | endif # !VBOX_BUILD
|
---|
| 72 |
|
---|