Makefile.kmk revision 27537ffef7291d0bb3a24e459a6b94c65586defe
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# $Id$
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync## @file
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# Makefile for the Solaris guest additions base directory.
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync#
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync#
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Copyright (C) 2008 Sun Microsystems, Inc.
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync#
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# available from http://www.virtualbox.org. This file is free software;
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# you can redistribute it and/or modify it under the terms of the GNU
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# General Public License (GPL) as published by the Free Software
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync#
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# additional information or have any questions.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync#
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncDEPTH ?= ../../../..
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncSUB_DEPTH = ..
27537ffef7291d0bb3a24e459a6b94c65586defevboxsyncinclude $(KBUILD_PATH)/subheader.kmk
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync
8c5d1958147c3988a7693b5a7666f5fe21a93b7bvboxsyncifneq ($(KBUILD_HOST),solaris)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync$(error "The Solaris guest additions installer can only be built on Solaris!")
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncendif
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync
8c5d1958147c3988a7693b5a7666f5fe21a93b7bvboxsyncifeq ($(KBUILD_HOST),solaris)
c4c106ad74e0ad745ac49a2c4182c4f42ced7248vboxsync include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
c4c106ad74e0ad745ac49a2c4182c4f42ced7248vboxsyncendif
c4c106ad74e0ad745ac49a2c4182c4f42ced7248vboxsync
df3d4c8e9c81584c535676a3d40c57d868ac61bbvboxsyncPKGFILENAME := VBoxSolarisAdditions.pkg
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncPKGINFO_ARCH = $(shell uname -p)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncVBOX_PATH_SOLARIS_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/Installer
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncVBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/installer
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncSOLARISINSTDIR := $(PATH_TARGET)/install
c071b4b1b83baa4434743ab1f6cdefdb6a32f5b5vboxsyncSOLARISTEMPDIR := $(PATH_TARGET)/tempinstall
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync
f7d6665d93770b79026556438d5e081807917420vboxsyncifeq ($(KBUILD_TYPE),debug)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync BIN_COPY := $(CP) -f
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync BIN_COPY_SYMBOLS := $(CP) -f
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncelse
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync BIN_COPY := /usr/sfw/bin/gobjcopy -S -R .comment
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync BIN_COPY_SYMBOLS := /usr/sfw/bin/gobjcopy -g -R .comment
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncendif
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncPACKING += $(PATH_BIN)/additions/$(PKGFILENAME)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncOTHER_CLEAN += $(PACKING)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync
27537ffef7291d0bb3a24e459a6b94c65586defevboxsyncinclude $(KBUILD_PATH)/subfooter.kmk
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync
df3d4c8e9c81584c535676a3d40c57d868ac61bbvboxsync$(PATH_BIN)/additions/VBoxSolarisAdditions.pkg: \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_VERSION_STAMP) \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
f902ede7eb073d09a81c1d470c089c7b14921714vboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
97674677e4f2aeae576c39f966568dd664ba7979vboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
18673eee0624b4581d3d56ab9ad9d10ebc7f5bddvboxsync $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_BIN)/additions/vboxguest \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_BIN)/additions/VBoxClient \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_BIN)/additions/VBoxService \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_BIN)/additions/vboxvideo_drv_13.so \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_BIN)/additions/vboxvideo_drv_14.so \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_BIN)/additions/vboxvideo_drv_70.so \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_BIN)/additions/vboxvideo_drv_71.so \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_BIN)/additions/vboxmouse_drv_14.so \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_BIN)/additions/vboxmouse_drv_70.so \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_BIN)/additions/vboxmouse_drv_71.so \
f6cc81e94c29cc9b39b896cf32ecfe0501b4a1e5vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxdevlink.sed \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(call MSG_L1,Installing guest additions)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync @# Clear out the existing package files if needed
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)rm -rf $(SOLARISINSTDIR)
c071b4b1b83baa4434743ab1f6cdefdb6a32f5b5vboxsync $(QUIET)rm -rf $(SOLARISTEMPDIR)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)
f6cc81e94c29cc9b39b896cf32ecfe0501b4a1e5vboxsync $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)/etc
c071b4b1b83baa4434743ab1f6cdefdb6a32f5b5vboxsync $(QUIET)$(MKDIR) -p $(SOLARISTEMPDIR)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(SED) \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync --output $(SOLARISINSTDIR)/vboxguest.pkginfo \
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARISINSTDIR)/makepackage.sh
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARISINSTDIR)/postinstall.sh
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARISINSTDIR)/preremove.sh
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh $(SOLARISINSTDIR)/vboxguest.sh
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml $(SOLARISINSTDIR)/vboxservice.xml
c4c106ad74e0ad745ac49a2c4182c4f42ced7248vboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.space $(SOLARISINSTDIR)/vboxguest.space
81bca49b707d98514733831e0841a5c275e64722vboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/vboxclient.desktop $(SOLARISINSTDIR)/vboxclient.desktop
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient $(SOLARISINSTDIR)/1099.vboxclient
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl $(SOLARISINSTDIR)/x11config.pl
f902ede7eb073d09a81c1d470c089c7b14921714vboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl $(SOLARISINSTDIR)/x11restore.pl
97674677e4f2aeae576c39f966568dd664ba7979vboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf $(SOLARISINSTDIR)/solaris_xorg.conf
18673eee0624b4581d3d56ab9ad9d10ebc7f5bddvboxsync $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_X11_ADDITION_INSTALLER)/VBoxRandR.sh $(SOLARISINSTDIR)/VBoxRandR.sh
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf $(SOLARISINSTDIR)/vboxguest.conf
df76fbd6a43e0fbefe2e9937c62f3074b15cfe6fvboxsync $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/additions/vboxguest $(SOLARISINSTDIR)/vboxguest
f902ede7eb073d09a81c1d470c089c7b14921714vboxsync @#$(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARISINSTDIR)/vboxguest,)
6dc98f1ea961efeeaf2624e4022634fa5a650cb6vboxsync $(INSTALL) -s -m 0755 $(PATH_BIN)/additions/VBoxClient $(SOLARISINSTDIR)/VBoxClient
6dc98f1ea961efeeaf2624e4022634fa5a650cb6vboxsync $(INSTALL) -s -m 0755 $(PATH_BIN)/additions/VBoxService $(SOLARISINSTDIR)/VBoxService
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_13.so $(SOLARISINSTDIR)/vboxvideo_drv_13.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_14.so $(SOLARISINSTDIR)/vboxvideo_drv_14.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_70.so $(SOLARISINSTDIR)/vboxvideo_drv_70.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxvideo_drv_71.so $(SOLARISINSTDIR)/vboxvideo_drv_71.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_14.so $(SOLARISINSTDIR)/vboxmouse_drv_14.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_70.so $(SOLARISINSTDIR)/vboxmouse_drv_70.so
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(BIN_COPY) $(PATH_BIN)/additions/vboxmouse_drv_71.so $(SOLARISINSTDIR)/vboxmouse_drv_71.so
f6cc81e94c29cc9b39b896cf32ecfe0501b4a1e5vboxsync $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxdevlink.sed $(SOLARISINSTDIR)/etc/devlink.tab
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(call MSG_L1,Creating install package: $@)
c4c106ad74e0ad745ac49a2c4182c4f42ced7248vboxsync $(QUIET)$(SOLARISINSTDIR)/makepackage.sh $(SOLARISINSTDIR) $(PKGFILENAME)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync $(QUIET)$(INSTALL) -m 0644 $(SOLARISINSTDIR)/$(PKGFILENAME) $(PATH_BIN)/additions/$(PKGFILENAME)
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync