VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/module/Makefile.kmk@ 9401

Last change on this file since 9401 was 9225, checked in by vboxsync, 17 years ago

When breaking up dependencies into multiple lines, we indent them twice to help seperate them from the commands. Also, put one dependency per line to make it easier to read.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Makefile.kmk 9225 2008-05-29 14:32:55Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox Linux Guest Additions Kernel Module.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22DEPTH ?= ../../../../..
23SUB_DEPTH = ../..
24include $(KBUILD_PATH)/subheader.kmk
25
26INSTALLS += vboxmod-mod vboxmod-sh
27OTHERS.linux += \
28 $(VBOX_PATH_ADDITIONS)/src/vboxadd/build_in_tmp \
29 $(if $(VBOX_OSE),,$(VBOX_PATH_ADDITIONS)/src/vboxadd/dkms.conf)
30ifdef VBOX_WITH_ADDITION_DRIVERS
31 SYSMODS += vboxadd
32endif
33
34#
35# Populate FILES_VBOXADD_NOBIN
36#
37include $(PATH_SUB_CURRENT)/files_vboxadd
38
39$(VBOX_PATH_ADDITIONS)/src/vboxadd/build_in_tmp: \
40 $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/build_in_tmp \
41 $(VBOX_VERSION_STAMP) \
42 | $(call DIRDEP,$(VBOX_PATH_ADDITIONS)/src/vboxadd)
43 $(call MSG_TOOL,Creating,,$@)
44 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxadd;g" < $< > $@
45 $(QUIET)chmod 0755 $@
46
47$(VBOX_PATH_ADDITIONS)/src/vboxadd/dkms.conf: \
48 $(PATH_SUB_CURRENT)/dkms.conf \
49 $(VBOX_VERSION_STAMP)
50 $(call MSG_TOOL,Creating,,$@)
51 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" < $< > $@
52
53vboxmod-mod_INST = $(INST_ADDITIONS)src/vboxadd/
54vboxmod-mod_MODE = a+r,u+w
55vboxmod-mod_SOURCES = $(subst ",,$(FILES_VBOXADD_NOBIN))
56
57#
58# The module (for syntax checking).
59#
60vboxadd_TEMPLATE = VBOXGUESTR0
61vboxadd_NOINST = 1
62vboxadd_DEFS = \
63 MODULE IN_RT_R0 VBGL_VBOXGUEST EXPORT_SYMTAB VBGL_HGCM VBOX_HGCM \
64 KBUILD_MODNAME=KBUILD_STR\(vboxadd\) \
65 KBUILD_BASENAME=KBUILD_STR\(vboxadd\)
66vboxadd_INCS = $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux
67vboxadd_SOURCES = \
68 vboxmod.c \
69 cmc.c \
70 hgcmcall.c
71vboxadd_LIBS = \
72 $(VBOX_LIB_VBGL_R0BASE) \
73 $(VBOX_LIB_IPRT_GUEST_R0)
74
75include $(KBUILD_PATH)/subfooter.kmk
76
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette