VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/Makefile@ 2101

Last change on this file since 2101 was 2101, checked in by vboxsync, 18 years ago

Updated the Linux guest clipboard code and added it to the additions installer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 KB
Line 
1#
2# Makefile for the linux guest additions base directory.
3#
4
5#
6# Copyright (C) 2006 InnoTek Systemberatung GmbH
7#
8# This file is part of VirtualBox Open Source Edition (OSE), as
9# available from http://www.virtualbox.org. This file is free software;
10# you can redistribute it and/or modify it under the terms of the GNU
11# General Public License as published by the Free Software Foundation,
12# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13# distribution. VirtualBox OSE is distributed in the hope that it will
14# be useful, but WITHOUT ANY WARRANTY of any kind.
15#
16# If you received this file as part of a commercial VirtualBox
17# distribution, then only the terms of your commercial VirtualBox
18# license agreement apply instead of the previous paragraph.
19#
20
21DEPTH = ../../../..
22include $(PATH_KBUILD)/header.kmk
23
24# This can only be built on a real Linux system.
25SUBDIRS =
26ifeq ($(filter-out linux l4, $(BUILD_TARGET)),)
27SUBDIRS += \
28 module \
29 daemon \
30 xgraphics \
31 xmouse
32ifndef VBOX_OSE
33SUBDIRS += \
34 sharedfolders \
35 xclient
36endif
37endif
38
39PACKING = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
40OTHER_CLEAN = $(PACKING)
41
42
43include $(PATH_KBUILD)/footer.kmk
44
45
46#
47# Build the Linux Guest Additions self extracting installer.
48#
49
50# We need to depend on all source files for the additions and shared
51# folders kernel modules.
52$(PATH_BIN)/additions/VBoxLinuxAdditions.run: \
53 $(INSTARGET_vboxmod-bin) \
54 $(PATH_BIN)/additions/vboxadd-timesync \
55 $(PATH_BIN)/additions/vboxadd-xclient \
56 installer/vboxadd-timesync.sh \
57 installer/vboxadd.sh \
58 installer/install.sh \
59 ../../Installer/linux/routines.sh \
60 ../../Installer/linux/runlevel.sh \
61 installer/x11config.pl \
62 installer/Makefile.test \
63 installer/test.c \
64 $(PATH_BIN)/additions/vboxmouse_drv.o \
65 $(PATH_BIN)/additions/vboxmouse_drv_70.so \
66 $(PATH_BIN)/additions/vboxmouse_drv_71.so \
67 $(PATH_BIN)/additions/vboxvideo_drv.o \
68 $(PATH_BIN)/additions/vboxvideo_drv_70.so \
69 $(PATH_BIN)/additions/vboxvideo_drv_71.so \
70 $(if VBOX_OSE,,installer/vboxvfs.sh $(PATH_BIN)/additions/mountvboxsf) \
71 $(VBOX_VERSION_STAMP)
72 $(call MSG_L1,Creating $@)
73 $(QUIET)$(MKDIR) -p $(PATH_TARGET)/install
74# Remove target directory first, otherwise the behaviour of cp will not be
75# what we want if it already exists. See the cp manual page for more details.
76 $(QUIET)rm -rf $(PATH_TARGET)/install/module
77 $(QUIET)cp -af $(PATH_BIN)/additions/src $(PATH_TARGET)/install/module
78 $(QUIET)$(MKDIR) -p $(PATH_TARGET)/install/module/test
79 $(QUIET)$(INSTALL) -m 0644 installer/Makefile.test $(PATH_TARGET)/install/module/test/Makefile
80 $(QUIET)$(INSTALL) -m 0644 installer/test.c $(PATH_TARGET)/install/module/test/
81 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxadd-timesync $(PATH_TARGET)/install/vboxadd-timesync
82 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxadd-xclient $(PATH_TARGET)/install/vboxadd-xclient
83 $(QUIET)$(SED) "s;_VERSION_;$(VBOX_VERSION_STRING);g" installer/install.sh | $(SED) "s;_BUILD_;$(shell date);g" | $(SED) "s;_OSE_;$(VBOX_OSE);g" > $(PATH_TARGET)/install/install_.sh
84 $(QUIET)$(INSTALL) -m 0755 $(PATH_TARGET)/install/install_.sh $(PATH_TARGET)/install/install.sh
85 $(QUIET)$(RM) $(PATH_TARGET)/install/install_.sh
86 $(QUIET)$(INSTALL) -m 0755 installer/vboxadd-timesync.sh $(PATH_TARGET)/install
87 $(QUIET)$(INSTALL) -m 0755 installer/vboxadd.sh $(PATH_TARGET)/install
88 $(QUIET)$(INSTALL) -m 0755 ../../Installer/linux/routines.sh $(PATH_TARGET)/install
89 $(QUIET)$(INSTALL) -m 0755 ../../Installer/linux/runlevel.sh $(PATH_TARGET)/install
90 $(QUIET)$(INSTALL) -m 0755 installer/x11config.pl $(PATH_TARGET)/install
91 $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxmouse_drv.o $(PATH_TARGET)/install/vboxmouse_drv.o
92 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_70.so $(PATH_TARGET)/install/vboxmouse_drv_70.so
93 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_71.so $(PATH_TARGET)/install/vboxmouse_drv_71.so
94 $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxvideo_drv.o $(PATH_TARGET)/install/vboxvideo_drv.o
95 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_70.so $(PATH_TARGET)/install/vboxvideo_drv_70.so
96 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_71.so $(PATH_TARGET)/install/vboxvideo_drv_71.so
97ifndef VBOX_OSE
98 $(QUIET)$(INSTALL) -m 0755 installer/vboxvfs.sh $(PATH_TARGET)/install
99 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/mountvboxsf $(PATH_TARGET)/install/mount.vboxsf
100endif
101 $(QUIET)$(VBOX_MAKESELF) $(PATH_TARGET)/install $@ \
102 "VirtualBox $(VBOX_VERSION_STRING) Guest Additions for Linux installation" /bin/sh ./install.sh "> /dev/null"
103
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