Makefile revision 1ce261644c2c2dcfcb98f5519e1e37ceed253288
684N/A#
684N/A# Makefile for the linux guest additions base directory.
684N/A#
684N/A
684N/A#
684N/A# Copyright (C) 2006 InnoTek Systemberatung GmbH
684N/A#
684N/A# This file is part of VirtualBox Open Source Edition (OSE), as
6982N/A# available from http://www.virtualbox.org. This file is free software;
6982N/A# you can redistribute it and/or modify it under the terms of the GNU
684N/A# General Public License as published by the Free Software Foundation,
684N/A# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
684N/A# distribution. VirtualBox OSE is distributed in the hope that it will
684N/A# be useful, but WITHOUT ANY WARRANTY of any kind.
6982N/A#
6982N/A# If you received this file as part of a commercial VirtualBox
6982N/A# distribution, then only the terms of your commercial VirtualBox
6982N/A# license agreement apply instead of the previous paragraph.
684N/A#
684N/A
684N/ADEPTH = ../../../..
684N/Ainclude $(PATH_KBUILD)/header.kmk
684N/A
3232N/AVBOX_VERSION = $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)
684N/A
684N/A# This can only be built on a real Linux system.
684N/ASUBDIRS =
684N/Aifeq ($(filter-out linux l4, $(BUILD_TARGET)),)
684N/ASUBDIRS += \
4134N/A module \
4134N/A daemon \
4015N/A xgraphics \
4015N/A xmouse
4134N/Aifndef VBOX_OSE
684N/ASUBDIRS += \
4134N/A sharedfolders
684N/Aendif
684N/Aendif
684N/A
684N/APACKING = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
684N/AOTHER_CLEAN = $(PACKING)
684N/A
684N/A
684N/Ainclude $(PATH_KBUILD)/footer.kmk
684N/A
684N/A
4015N/A#
684N/A# Build the Linux Guest Additions self extracting installer.
684N/A#
684N/A
684N/A# We need to depend on all source files for the additions and shared
684N/A# folders kernel modules.
684N/A$(PATH_BIN)/additions/VBoxLinuxAdditions.run: \
684N/A $(INSTARGET_vboxmod-bin) \
684N/A $(PATH_BIN)/additions/vboxadd-timesync \
684N/A installer/vboxadd-timesync.sh \
684N/A installer/vboxadd.sh \
684N/A installer/install.sh \
684N/A ../../Installer/linux/runlevel.sh \
684N/A installer/x11config.pl \
1618N/A installer/Makefile.test \
684N/A installer/test.c \
4134N/A $(PATH_BIN)/additions/vboxmouse_drv.o \
4015N/A $(PATH_BIN)/additions/vboxmouse_drv_70.so \
684N/A $(PATH_BIN)/additions/vboxmouse_drv_71.so \
4015N/A $(PATH_BIN)/additions/vboxvideo_drv.o \
684N/A $(PATH_BIN)/additions/vboxvideo_drv_70.so \
684N/A $(PATH_BIN)/additions/vboxvideo_drv_71.so \
684N/A $(if VBOX_OSE,,installer/vboxvfs.sh $(PATH_BIN)/additions/mountvboxsf) \
684N/A $(VBOX_VERSION_STAMP)
684N/A $(call MSG_L1,Creating $@)
684N/A $(QUIET)$(MKDIR) -p $(PATH_TARGET)/install
684N/A# Remove target directory first, otherwise the behaviour of cp will not be
684N/A# what we want if it already exists. See the cp manual page for more details.
684N/A $(QUIET)rm -rf $(PATH_TARGET)/install/module
684N/A $(QUIET)cp -af $(PATH_BIN)/additions/src $(PATH_TARGET)/install/module
4134N/A $(QUIET)$(MKDIR) -p $(PATH_TARGET)/install/module/test
684N/A $(QUIET)$(INSTALL) -m 0644 installer/Makefile.test $(PATH_TARGET)/install/module/test/Makefile
684N/A $(QUIET)$(INSTALL) -m 0644 installer/test.c $(PATH_TARGET)/install/module/test/
684N/A $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxadd-timesync $(PATH_TARGET)/install/vboxadd-timesync
684N/A $(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
684N/A $(QUIET)$(INSTALL) -m 0755 $(PATH_TARGET)/install/install_.sh $(PATH_TARGET)/install/install.sh
684N/A $(QUIET)$(RM) $(PATH_TARGET)/install/install_.sh
684N/A $(QUIET)$(INSTALL) -m 0755 installer/vboxadd-timesync.sh $(PATH_TARGET)/install
684N/A $(QUIET)$(INSTALL) -m 0755 installer/vboxadd.sh $(PATH_TARGET)/install
684N/A $(QUIET)$(INSTALL) -m 0755 ../../Installer/linux/runlevel.sh $(PATH_TARGET)/install
684N/A $(QUIET)$(INSTALL) -m 0755 installer/x11config.pl $(PATH_TARGET)/install
684N/A $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxmouse_drv.o $(PATH_TARGET)/install/vboxmouse_drv.o
684N/A $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_70.so $(PATH_TARGET)/install/vboxmouse_drv_70.so
4134N/A $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxmouse_drv_71.so $(PATH_TARGET)/install/vboxmouse_drv_71.so
684N/A $(QUIET)objcopy -g -R .comment $(PATH_BIN)/additions/vboxvideo_drv.o $(PATH_TARGET)/install/vboxvideo_drv.o
684N/A $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_70.so $(PATH_TARGET)/install/vboxvideo_drv_70.so
2338N/A $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/vboxvideo_drv_71.so $(PATH_TARGET)/install/vboxvideo_drv_71.so
684N/Aifndef VBOX_OSE
684N/A $(QUIET)$(INSTALL) -m 0755 installer/vboxvfs.sh $(PATH_TARGET)/install
684N/A $(QUIET)objcopy -S -R .comment $(PATH_BIN)/additions/mountvboxsf $(PATH_TARGET)/install/mount.vboxsf
684N/Aendif
684N/A $(QUIET)$(VBOX_MAKESELF) $(PATH_TARGET)/install $@ \
684N/A "VirtualBox $(VBOX_VERSION) Guest Additions for Linux installation" /bin/sh ./install.sh "> /dev/null"
684N/A
684N/A