1 | # $Id: Makefile.kmk 39474 2011-11-30 12:46:12Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-makefile for the Linux host driver helper scripts.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2011 Oracle Corporation
|
---|
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 |
|
---|
18 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | INSTALLS += HostDrivers-scripts
|
---|
22 | HostDrivers-scripts_INST = $(INST_DIST)
|
---|
23 | HostDrivers-scripts_SOURCES = \
|
---|
24 | Makefile=>src/Makefile \
|
---|
25 | $(HostDrivers-scripts_0_OUTDIR)/dkms.conf=>src/dkms.conf
|
---|
26 | HostDrivers-scripts_EXEC_SOURCES = \
|
---|
27 | loadall.sh \
|
---|
28 | do_dkms=>src/do_dkms \
|
---|
29 | build_in_tmp=>src/build_in_tmp
|
---|
30 | HostDrivers-scripts_CLEAN = \
|
---|
31 | $(HostDrivers-scripts_0_OUTDIR)/dkms.conf
|
---|
32 |
|
---|
33 | $$(HostDrivers-scripts_0_OUTDIR)/dkms.conf: \
|
---|
34 | $(PATH_SUB_CURRENT)/dkms.conf \
|
---|
35 | $(VBOX_VERSION_STAMP) \
|
---|
36 | | $$(dir $$@)
|
---|
37 | $(call MSG_TOOL,Creating,,$@)
|
---|
38 | $(QUIET)$(SED) \
|
---|
39 | -e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
|
---|
40 | -e "s;_OMIT_VBOXNETFLT_;$(if $(VBOX_WITH_NETFLT),,#);g" \
|
---|
41 | -e "s;_OMIT_VBOXNETADP_;$(if $(VBOX_WITH_NETADP),,#);g" \
|
---|
42 | -e "s;_OMIT_VBOXPCI_;$(if $(VBOX_WITH_PCI_PASSTHROUGH),,#);g" \
|
---|
43 | --output $@ $<
|
---|
44 |
|
---|
45 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
46 |
|
---|