VirtualBox

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

Last change on this file since 7440 was 7191, checked in by vboxsync, 17 years ago

Merged vboxclient startup X11 script. Solaris guest installer
now installs clipboard daemon fine.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.6 KB
Line 
1# $Id: Makefile.kmk 7191 2008-02-28 05:57:10Z vboxsync $
2## @file
3# Makefile for the linux guest additions base directory.
4#
5
6#
7# Copyright (C) 2006-2007 innotek GmbH
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
18DEPTH ?= ../../../..
19SUB_DEPTH = ..
20include $(PATH_KBUILD)/subheader.kmk
21
22# This can only be built on a real Linux system.
23if1of ($(BUILD_TARGET),linux l4)
24 include $(PATH_SUB_CURRENT)/module/Makefile.kmk
25 include $(PATH_SUB_CURRENT)/daemon/Makefile.kmk
26 include $(PATH_SUB_CURRENT)/sharedfolders/Makefile.kmk
27endif
28
29ifndef VBOX_OSE
30 PACKING += $(PATH_BIN)/additions/VBoxLinuxAdditions.run
31 OTHER_CLEAN += $(PACKING)
32 # OSE only contains the source code for this
33 VBOX_SELINUX_CMPLD := $(PATH_SUB_CURRENT)/selinux-fedora/vbox_x11.pp
34endif
35
36VBOX_PATH_LINUX_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/installer
37VBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/installer
38
39include $(PATH_KBUILD)/subfooter.kmk
40
41ifeq ($(BUILD_TYPE),debug)
42 BIN_COPY = $(CP) -f
43 BIN_COPY_SYMBOLS = $(CP) -f
44else
45 BIN_COPY = objcopy -S -R .comment
46 BIN_COPY_SYMBOLS = objcopy -g -R .comment
47endif
48
49#
50# Build the Linux Guest Additions self extracting installer.
51#
52# Note that $(PATH_SUB_CURRENT) was changed by subfooter.kmk above and
53# any references should be made via variables assigned a know value via := .
54#
55# We need to depend on all source files for the additions and shared
56# folders kernel modules.
57## @todo Replace the wildcard stuff by the correct file lists now that
58# we've got everything included.
59#
60$(PATH_BIN)/additions/VBoxLinuxAdditions.run: \
61 $(INSTARGET_vboxmod-bin) \
62 $(PATH_BIN)/additions/vboxadd-timesync \
63 $(PATH_BIN)/additions/VBoxClient \
64 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/VBoxRandR.sh \
65 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxadd-timesync.sh \
66 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
67 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxadd.sh \
68 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/install.sh \
69 $(PATH_ROOT)/src/VBox/Installer/linux/routines.sh \
70 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
71 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/Makefile.test \
72 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/test.c \
73 $(PATH_BIN)/additions/vboxmouse_drv.o \
74 $(PATH_BIN)/additions/vboxmouse_drv_70.so \
75 $(PATH_BIN)/additions/vboxmouse_drv_71.so \
76 $(PATH_BIN)/additions/vboxmouse_drv_14.so \
77 $(PATH_BIN)/additions/vboxvideo_drv.o \
78 $(PATH_BIN)/additions/vboxvideo_drv_70.so \
79 $(PATH_BIN)/additions/vboxvideo_drv_71.so \
80 $(PATH_BIN)/additions/vboxvideo_drv_13.so \
81 $(PATH_BIN)/additions/vboxvideo_drv_14.so \
82 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxvfs.sh $(PATH_BIN)/additions/mountvboxsf \
83 $(VBOX_SELINUX_CMPLD) \
84 $(wildcard $(PATH_BIN)/additions/src/*) \
85 $(wildcard $(PATH_BIN)/additions/src/*/*) \
86 $(wildcard $(PATH_BIN)/additions/src/*/*/*) \
87 $(wildcard $(PATH_BIN)/additions/src/*/*/*/*) \
88 $(VBOX_VERSION_STAMP)
89 $(call MSG_L1,Creating $@)
90 $(QUIET)$(MKDIR) -p $(PATH_TARGET)/install
91# Remove target directory first, otherwise the behaviour of cp will not be
92# what we want if it already exists. See the cp manual page for more details.
93 $(QUIET)rm -rf $(PATH_TARGET)/install/module
94 $(QUIET)cp -af $(PATH_BIN)/additions/src $(PATH_TARGET)/install/module
95 $(QUIET)$(MKDIR) -p $(PATH_TARGET)/install/module/test
96 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/Makefile.test $(PATH_TARGET)/install/module/test/Makefile
97 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/test.c $(PATH_TARGET)/install/module/test/
98 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxadd-timesync $(PATH_TARGET)/install/vboxadd-timesync
99 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/VBoxClient $(PATH_TARGET)/install/VBoxClient
100 $(QUIET)$(SED) "s;_VERSION_;$(VBOX_VERSION_STRING);g" $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/install.sh \
101 | $(SED) "s;_BUILD_;$(shell date);g" \
102 | $(SED) "s;_OSE_;$(VBOX_OSE);g" \
103 | $(SED) "s;_BUILDTYPE_;$(BUILD_TYPE);g" \
104 > $(PATH_TARGET)/install/install_.sh
105 $(QUIET)$(INSTALL) -m 0755 $(PATH_TARGET)/install/install_.sh $(PATH_TARGET)/install/install.sh
106 $(QUIET)$(RM) $(PATH_TARGET)/install/install_.sh
107 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/VBoxRandR.sh $(PATH_TARGET)/install
108 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxadd-timesync.sh $(PATH_TARGET)/install
109 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient $(PATH_TARGET)/install
110 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxadd.sh $(PATH_TARGET)/install
111 $(QUIET)$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Installer/linux/routines.sh $(PATH_TARGET)/install
112 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl $(PATH_TARGET)/install
113 $(QUIET)$(BIN_COPY_SYMBOLS) $(PATH_BIN)/additions/vboxmouse_drv.o $(PATH_TARGET)/install/vboxmouse_drv.o
114 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_70.so $(PATH_TARGET)/install/vboxmouse_drv_70.so
115 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_71.so $(PATH_TARGET)/install/vboxmouse_drv_71.so
116 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_14.so $(PATH_TARGET)/install/vboxmouse_drv_14.so
117 $(QUIET)$(BIN_COPY_SYMBOLS) $(PATH_BIN)/additions/vboxvideo_drv.o $(PATH_TARGET)/install/vboxvideo_drv.o
118 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_70.so $(PATH_TARGET)/install/vboxvideo_drv_70.so
119 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_71.so $(PATH_TARGET)/install/vboxvideo_drv_71.so
120 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_13.so $(PATH_TARGET)/install/vboxvideo_drv_13.so
121 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_14.so $(PATH_TARGET)/install/vboxvideo_drv_14.so
122 $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/mountvboxsf $(PATH_TARGET)/install/mount.vboxsf
123 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LINUX_ADDITION_INSTALLER)/vboxvfs.sh $(PATH_TARGET)/install
124ifdef VBOX_SELINUX_CMPLD
125 $(QUIET)$(INSTALL) -m 0755 $(VBOX_SELINUX_CMPLD) $(PATH_TARGET)/install
126endif
127 $(QUIET)$(VBOX_MAKESELF) $(PATH_TARGET)/install $@ \
128 "VirtualBox $(VBOX_VERSION_STRING) Guest Additions for Linux installation" /bin/sh ./install.sh "> /dev/null"
129
Note: See TracBrowser for help on using the repository browser.

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