VirtualBox

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

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

fixed objcopy switches

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 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
24VBOX_VERSION = $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)
25
26# This can only be built on a real Linux system.
27SUBDIRS =
28ifeq ($(filter-out linux l4, $(BUILD_TARGET)),)
29SUBDIRS += \
30 module \
31 daemon \
32 xgraphics \
33 xmouse
34ifndef VBOX_OSE
35SUBDIRS += \
36 sharedfolders
37endif
38endif
39
40PACKING = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
41OTHER_CLEAN = $(PACKING)
42
43
44include $(PATH_KBUILD)/footer.kmk
45
46
47#
48# Build the Linux Guest Additions self extracting installer.
49#
50
51# We need to depend on all source files for the additions and shared
52# folders kernel modules.
53$(PATH_BIN)/additions/VBoxLinuxAdditions.run: \
54 $(INSTARGET_vboxmod-bin) \
55 $(PATH_BIN)/additions/vboxadd-timesync \
56 installer/vboxadd-timesync.sh \
57 installer/vboxadd.sh \
58 installer/install.sh \
59 ../../Installer/linux/runlevel.sh \
60 installer/x11config.pl \
61 installer/Makefile.test \
62 installer/test.c \
63 $(PATH_BIN)/additions/vboxmouse_drv.o \
64 $(PATH_BIN)/additions/vboxmouse_drv_70.so \
65 $(PATH_BIN)/additions/vboxmouse_drv_71.so \
66 $(PATH_BIN)/additions/vboxvideo_drv.o \
67 $(PATH_BIN)/additions/vboxvideo_drv_70.so \
68 $(PATH_BIN)/additions/vboxvideo_drv_71.so \
69 $(if VBOX_OSE,,installer/vboxvfs.sh $(PATH_BIN)/additions/mountvboxsf) \
70 $(VBOX_VERSION_STAMP)
71 $(call MSG_L1,Creating $@)
72 $(QUIET)$(MKDIR) -p $(PATH_TARGET)/install
73# Remove target directory first, otherwise the behaviour of cp will not be
74# what we want if it already exists. See the cp manual page for more details.
75 $(QUIET)rm -rf $(PATH_TARGET)/install/module
76 $(QUIET)cp -af $(PATH_BIN)/additions/src $(PATH_TARGET)/install/module
77 $(QUIET)$(MKDIR) -p $(PATH_TARGET)/install/module/test
78 $(QUIET)$(INSTALL) -m 0644 installer/Makefile.test $(PATH_TARGET)/install/module/test/Makefile
79 $(QUIET)$(INSTALL) -m 0644 installer/test.c $(PATH_TARGET)/install/module/test/
80 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxadd-timesync $(PATH_TARGET)/install/vboxadd-timesync
81 $(QUIET)$(SED) "s;_VERSION_;$(VBOX_VERSION);g" installer/install.sh | $(SED) "s;_BUILD_;$(shell date);g" | $(SED) "s;_OSE_;$(VBOX_OSE);g" > $(PATH_TARGET)/install/install_.sh
82 $(QUIET)$(INSTALL) -m 0755 $(PATH_TARGET)/install/install_.sh $(PATH_TARGET)/install/install.sh
83 $(QUIET)$(RM) $(PATH_TARGET)/install/install_.sh
84 $(QUIET)$(INSTALL) -m 0755 installer/vboxadd-timesync.sh $(PATH_TARGET)/install
85 $(QUIET)$(INSTALL) -m 0755 installer/vboxadd.sh $(PATH_TARGET)/install
86 $(QUIET)$(INSTALL) -m 0755 ../../Installer/linux/runlevel.sh $(PATH_TARGET)/install
87 $(QUIET)$(INSTALL) -m 0755 installer/x11config.pl $(PATH_TARGET)/install
88 $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxmouse_drv.o $(PATH_TARGET)/install/vboxmouse_drv.o
89 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_70.so $(PATH_TARGET)/install/vboxmouse_drv_70.so
90 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_71.so $(PATH_TARGET)/install/vboxmouse_drv_71.so
91 $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxvideo_drv.o $(PATH_TARGET)/install/vboxvideo_drv.o
92 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_70.so $(PATH_TARGET)/install/vboxvideo_drv_70.so
93 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_71.so $(PATH_TARGET)/install/vboxvideo_drv_71.so
94ifndef VBOX_OSE
95 $(QUIET)$(INSTALL) -m 0755 installer/vboxvfs.sh $(PATH_TARGET)/install
96 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/mountvboxsf $(PATH_TARGET)/install/mount.vboxsf
97endif
98 $(QUIET)$(VBOX_MAKESELF) $(PATH_TARGET)/install $@ \
99 "VirtualBox $(VBOX_VERSION) Guest Additions for Linux installation" /bin/sh ./install.sh "> /dev/null"
100
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