1 | # $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the vboxvideo DRM module (linux kernel OpenGL module).
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | #
|
---|
32 | # Populate FILES_VBOXVIDEO_DRM_NOBIN
|
---|
33 | #
|
---|
34 | INSTALLS += vboxvideo-src
|
---|
35 | include $(PATH_SUB_CURRENT)/files_vboxvideo_drv
|
---|
36 | vboxvideo-src_DEPS = \
|
---|
37 | $(PATH_ROOT)/src/VBox/Additions/linux/drm/files_vboxvideo_drv \
|
---|
38 | $(PATH_ROOT)/src/VBox/Additions/linux/drm/indent.sed
|
---|
39 | vboxvideo-src_INST = $(INST_ADDITIONS)src/vboxvideo/
|
---|
40 | vboxvideo-src_SOURCES = \
|
---|
41 | $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_NOBIN))
|
---|
42 | vboxvideo-src_EXEC_SOURCES = \
|
---|
43 | $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_BIN))
|
---|
44 | vboxvideo-src_INSTALLER = $(RM_EXT) -f -- "$2" && \
|
---|
45 | $(if $(filter %.c %.h,$2),$(SED) -f $(PATH_ROOT)/src/VBox/Additions/linux/drm/indent.sed \
|
---|
46 | --output "$2" "$1",$(CP_EXT) "$1" "$2") && \
|
---|
47 | $(CHMOD_EXT) "$(if $(mode),$(mode),0644)" "$2"
|
---|
48 |
|
---|
49 |
|
---|
50 |
|
---|
51 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
52 |
|
---|