Makefile.kmk revision 1c94c0a63ba68be1a7b2c640e70d7a06464e4fca
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# $Id$
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync## @file
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Makefile for the Solaris guest additions base directory.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
c58f1213e628a545081c70e26c6b67a841cff880vboxsync# Copyright (C) 2008 Sun Microsystems, Inc.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# available from http://www.virtualbox.org. This file is free software;
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# you can redistribute it and/or modify it under the terms of the GNU
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# General Public License (GPL) as published by the Free Software
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
772269936494ffaddd0750ba9e28e805ba81398cvboxsync# additional information or have any questions.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsyncDEPTH ?= ../../../..
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsyncSUB_DEPTH = ..
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsyncinclude $(PATH_KBUILD)/subheader.kmk
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
aae15a3015041f7ed6043344bf4939736254acf6vboxsyncifneq ($(BUILD_PLATFORM),solaris)
aae15a3015041f7ed6043344bf4939736254acf6vboxsync$(error "The Solaris guest additions installer can only be built on Solaris!")
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncendif
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
fe282a5e69dc51ede2f6ab6f067ae9868ba6a205vboxsyncifeq ($(BUILD_PLATFORM),solaris)
fe282a5e69dc51ede2f6ab6f067ae9868ba6a205vboxsync include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
fe282a5e69dc51ede2f6ab6f067ae9868ba6a205vboxsyncendif
fe282a5e69dc51ede2f6ab6f067ae9868ba6a205vboxsync
fe282a5e69dc51ede2f6ab6f067ae9868ba6a205vboxsyncPKGFILENAME := VBoxSolarisAdditions.pkg
fe282a5e69dc51ede2f6ab6f067ae9868ba6a205vboxsyncPKGINFO_ARCH = $(shell uname -p)
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsyncVBOX_PATH_SOLARIS_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/Installer
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsyncVBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/installer
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncSOLARISINSTDIR := $(PATH_TARGET)/install
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncifeq ($(BUILD_TYPE),debug)
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync BIN_COPY := $(CP) -f
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync BIN_COPY_SYMBOLS := $(CP) -f
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsyncelse
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync BIN_COPY := /usr/sfw/bin/gobjcopy -S -R .comment
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync BIN_COPY_SYMBOLS := /usr/sfw/bin/gobjcopy -g -R .comment
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncendif
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
91afe8a45492af90be74e8b56d46c8659f827b0bvboxsyncPACKING += $(PATH_BIN)/additions/$(PKGFILENAME)
e068057c82b010bc7cc663e8f57ac3ef1890a33cvboxsyncOTHER_CLEAN += $(PACKING)
a5f487d264b5aebe8d28ad35d0353630bd2b77cdvboxsync
a5f487d264b5aebe8d28ad35d0353630bd2b77cdvboxsyncinclude $(PATH_KBUILD)/subfooter.kmk
0412c212ede05017a46044b407f58c82374f6fe4vboxsync
de4b88070eed3a77d1e5b285a6373124450f8fccvboxsync$(PATH_BIN)/additions/VBoxSolarisAdditions.pkg: \
aae15a3015041f7ed6043344bf4939736254acf6vboxsync $(VBOX_VERSION_STAMP) \
e5d3b7a3187d8f891f55aa8fcb5ad3dee90b1e68vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
ba44972d4fba964e9794fb07b869741c42aa7d35vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
ba44972d4fba964e9794fb07b869741c42aa7d35vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
ba44972d4fba964e9794fb07b869741c42aa7d35vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
aae15a3015041f7ed6043344bf4939736254acf6vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_BIN)/additions/vboxguest \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_BIN)/additions/VBoxClient \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_BIN)/additions/VBoxService \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_BIN)/additions/vboxvideo_drv_13.so \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_BIN)/additions/vboxvideo_drv_14.so \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_BIN)/additions/vboxvideo_drv_70.so \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_BIN)/additions/vboxvideo_drv_71.so \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_BIN)/additions/vboxmouse_drv_14.so \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_BIN)/additions/vboxmouse_drv_70.so \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_BIN)/additions/vboxmouse_drv_71.so \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxdevlink.sed \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(call MSG_L1,Installing guest additions)
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync @# Clear out the existing package files if needed
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(QUIET)rm -rf $(SOLARISINSTDIR)
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)/etc
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(QUIET)$(SED) \
ddd5bf03356cc0515b0f42ed9048a6364e7eb1e2vboxsync -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
2f4c1bacd54af5063c3185cc8eab03e4e8ef9b90vboxsync -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync --output $(SOLARISINSTDIR)/vboxguest.pkginfo \
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARISINSTDIR)/makepackage.sh
ffa06e5b007c5b2f57341d90088189ce5f99c091vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARISINSTDIR)/postinstall.sh
ffa06e5b007c5b2f57341d90088189ce5f99c091vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARISINSTDIR)/preremove.sh
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh $(SOLARISINSTDIR)/vboxguest.sh
de4b88070eed3a77d1e5b285a6373124450f8fccvboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml $(SOLARISINSTDIR)/vboxservice.xml
de4b88070eed3a77d1e5b285a6373124450f8fccvboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.space $(SOLARISINSTDIR)/vboxguest.space
047755364a4a04102a05bb7866966db1ea00110dvboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/vboxclient.desktop $(SOLARISINSTDIR)/vboxclient.desktop
75bdcd627a7ab8dfa25135d5d75ec5998962d705vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient $(SOLARISINSTDIR)/1099.vboxclient
67927207a2d6bb545eb655ef14cdb090b1957120vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl $(SOLARISINSTDIR)/x11config.pl
48729babf1ff9fab8098654bc8c465b5ede56fe7vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl $(SOLARISINSTDIR)/x11restore.pl
67927207a2d6bb545eb655ef14cdb090b1957120vboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf $(SOLARISINSTDIR)/solaris_xorg.conf
67927207a2d6bb545eb655ef14cdb090b1957120vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh $(SOLARISINSTDIR)/VBoxRandR.sh
48729babf1ff9fab8098654bc8c465b5ede56fe7vboxsync $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf $(SOLARISINSTDIR)/vboxguest.conf
384478d3896257fbce9ceb8c01e74040b969e6d7vboxsync $(QUIET)$(CP) -f $(PATH_BIN)/additions/vboxguest $(SOLARISINSTDIR)/vboxguest
d10b60270f0c0eeb87f45002a010cff8ba2126b1vboxsync @#$(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARISINSTDIR)/vboxguest,)
11f7445114bfc5dc0da9287b950c36658da79236vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/VBoxClient $(SOLARISINSTDIR)/VBoxClient
384478d3896257fbce9ceb8c01e74040b969e6d7vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/VBoxService $(SOLARISINSTDIR)/VBoxService
384478d3896257fbce9ceb8c01e74040b969e6d7vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_13.so $(SOLARISINSTDIR)/vboxvideo_drv_13.so
384478d3896257fbce9ceb8c01e74040b969e6d7vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_14.so $(SOLARISINSTDIR)/vboxvideo_drv_14.so
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_70.so $(SOLARISINSTDIR)/vboxvideo_drv_70.so
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_71.so $(SOLARISINSTDIR)/vboxvideo_drv_71.so
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_14.so $(SOLARISINSTDIR)/vboxmouse_drv_14.so
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_70.so $(SOLARISINSTDIR)/vboxmouse_drv_70.so
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_71.so $(SOLARISINSTDIR)/vboxmouse_drv_71.so
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxdevlink.sed $(SOLARISINSTDIR)/etc/devlink.tab
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync $(call MSG_L1,Creating install package: $@)
fe282a5e69dc51ede2f6ab6f067ae9868ba6a205vboxsync $(QUIET)$(SOLARISINSTDIR)/makepackage.sh $(SOLARISINSTDIR) $(PKGFILENAME)
67927207a2d6bb545eb655ef14cdb090b1957120vboxsync $(QUIET)$(INSTALL) -m 0644 $(SOLARISINSTDIR)/$(PKGFILENAME) $(PATH_BIN)/additions/$(PKGFILENAME)
04b02ffb8824a60fd37777bc1f7d2f35104a274cvboxsync
67927207a2d6bb545eb655ef14cdb090b1957120vboxsync