VirtualBox

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

Last change on this file since 3539 was 3244, checked in by vboxsync, 17 years ago

Updated the Linux additions to work with xorg server 1.3 and moved the video drivers for different server versions to separate files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.7 KB
Line 
1# $Id: Makefile.kmk 3244 2007-06-23 17:09:50Z 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 as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# If you received this file as part of a commercial VirtualBox
18# distribution, then only the terms of your commercial VirtualBox
19# license agreement apply instead of the previous paragraph.
20#
21
22DEPTH = ../../../..
23include $(PATH_KBUILD)/header.kmk
24
25# This can only be built on a real Linux system.
26SUBDIRS =
27ifeq ($(filter-out linux l4, $(BUILD_TARGET)),)
28SUBDIRS += \
29 module \
30 daemon \
31 xgraphics \
32 xmouse \
33 sharedfolders \
34 xclient
35endif
36
37PACKING = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
38OTHER_CLEAN = $(PACKING)
39
40
41include $(PATH_KBUILD)/footer.kmk
42
43
44#
45# Build the Linux Guest Additions self extracting installer.
46#
47
48# We need to depend on all source files for the additions and shared
49# folders kernel modules.
50$(PATH_BIN)/additions/VBoxLinuxAdditions.run: \
51 $(INSTARGET_vboxmod-bin) \
52 $(PATH_BIN)/additions/vboxadd-timesync \
53 $(PATH_BIN)/additions/vboxadd-xclient \
54 installer/vboxadd-timesync.sh \
55 installer/98vboxadd-xclient \
56 installer/vboxadd.sh \
57 installer/install.sh \
58 ../../Installer/linux/routines.sh \
59 installer/x11config.pl \
60 installer/Makefile.test \
61 installer/test.c \
62 $(PATH_BIN)/additions/vboxmouse_drv.o \
63 $(PATH_BIN)/additions/vboxmouse_drv_70.so \
64 $(PATH_BIN)/additions/vboxmouse_drv_71.so \
65 $(PATH_BIN)/additions/vboxvideo_drv.o \
66 $(PATH_BIN)/additions/vboxvideo_drv_70.so \
67 $(PATH_BIN)/additions/vboxvideo_drv_71.so \
68 $(PATH_BIN)/additions/vboxvideo_drv_13.so \
69 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)objcopy -S -R .comment $(PATH_BIN)/additions/vboxadd-xclient $(PATH_TARGET)/install/vboxadd-xclient
82 $(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
83 $(QUIET)$(INSTALL) -m 0755 $(PATH_TARGET)/install/install_.sh $(PATH_TARGET)/install/install.sh
84 $(QUIET)$(RM) $(PATH_TARGET)/install/install_.sh
85 $(QUIET)$(INSTALL) -m 0755 installer/vboxadd-timesync.sh $(PATH_TARGET)/install
86 $(QUIET)$(INSTALL) -m 0755 installer/98vboxadd-xclient $(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/x11config.pl $(PATH_TARGET)/install
90 $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxmouse_drv.o $(PATH_TARGET)/install/vboxmouse_drv.o
91 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_70.so $(PATH_TARGET)/install/vboxmouse_drv_70.so
92 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_71.so $(PATH_TARGET)/install/vboxmouse_drv_71.so
93 $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxvideo_drv.o $(PATH_TARGET)/install/vboxvideo_drv.o
94 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_70.so $(PATH_TARGET)/install/vboxvideo_drv_70.so
95 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_71.so $(PATH_TARGET)/install/vboxvideo_drv_71.so
96 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_13.so $(PATH_TARGET)/install/vboxvideo_drv_13.so
97 $(QUIET)$(INSTALL) -m 0755 installer/vboxvfs.sh $(PATH_TARGET)/install
98 $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/mountvboxsf $(PATH_TARGET)/install/mount.vboxsf
99 $(QUIET)$(VBOX_MAKESELF) $(PATH_TARGET)/install $@ \
100 "VirtualBox $(VBOX_VERSION_STRING) Guest Additions for Linux installation" /bin/sh ./install.sh "> /dev/null"
101
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