[17406] | 1 | # $Id: Makefile.kmk 99040 2023-03-18 21:03:42Z vboxsync $
|
---|
| 2 | ## @file
|
---|
| 3 | # Sub-Makefile for the vboxvideo DRM module (linux kernel OpenGL module).
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | #
|
---|
[98103] | 7 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
[17406] | 8 | #
|
---|
[96407] | 9 | # This file is part of VirtualBox base platform packages, as
|
---|
| 10 | # available from https://www.virtualbox.org.
|
---|
[17406] | 11 | #
|
---|
[96407] | 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 | #
|
---|
[17406] | 27 |
|
---|
| 28 | SUB_DEPTH = ../../../../..
|
---|
[41477] | 29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
[17406] | 30 |
|
---|
| 31 | #
|
---|
| 32 | # Populate FILES_VBOXVIDEO_DRM_NOBIN
|
---|
| 33 | #
|
---|
[69531] | 34 | INSTALLS += vboxvideo-src
|
---|
[59768] | 35 | include $(PATH_SUB_CURRENT)/files_vboxvideo_drv
|
---|
[69531] | 36 | vboxvideo-src_DEPS = \
|
---|
[75401] | 37 | $(PATH_ROOT)/src/VBox/Additions/linux/drm/files_vboxvideo_drv \
|
---|
| 38 | $(PATH_ROOT)/src/VBox/Additions/linux/drm/indent.sed
|
---|
[69531] | 39 | vboxvideo-src_INST = $(INST_ADDITIONS)src/vboxvideo/
|
---|
| 40 | vboxvideo-src_SOURCES = \
|
---|
[38194] | 41 | $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_NOBIN))
|
---|
[69531] | 42 | vboxvideo-src_EXEC_SOURCES = \
|
---|
[57969] | 43 | $(subst $(DQUOTE),,$(FILES_VBOXVIDEO_DRM_BIN))
|
---|
[75401] | 44 | vboxvideo-src_INSTALLER = $(RM_EXT) -f -- "$2" && \
|
---|
[98416] | 45 | $(if $(filter %.c %.h,$2),$(SED) -f $(PATH_ROOT)/src/VBox/Additions/linux/drm/indent.sed \
|
---|
[99040] | 46 | --output "$2" "$1",$(CP_EXT) "$1" "$2") && \
|
---|
[98416] | 47 | $(CHMOD_EXT) "$(if $(mode),$(mode),0644)" "$2"
|
---|
[17406] | 48 |
|
---|
| 49 |
|
---|
| 50 |
|
---|
[41477] | 51 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
[17406] | 52 |
|
---|