VirtualBox

source: vbox/trunk/src/VBox/Installer/solaris/Makefile.kmk@ 15331

Last change on this file since 15331 was 15330, checked in by vboxsync, 16 years ago

and another. sigh.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 36.1 KB
Line 
1# $Id: Makefile.kmk 15330 2008-12-11 18:22:51Z vboxsync $
2## @file
3# Sub-Makefile for the Solaris installer.
4#
5
6#
7# Copyright (C) 2007-2008 Sun Microsystems, Inc.
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 (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25ifneq ($(KBUILD_HOST),solaris)
26$(error "The Solaris installer can only be built on Solaris!") # yeah, right.
27endif
28
29#
30# Globals
31#
32VBOX_PATH_SOL_INST_SRC := $(PATH_SUB_CURRENT)
33SOLARIS_INST_DIR := $(PATH_TARGET)/Installer/solaris/install
34SOLARIS_DBG_DIR := $(PATH_TARGET)/Installer/solaris/installdbg
35SOLARIS_VBI_DIR := $(PATH_TARGET)/Installer/solaris/installvbi
36ifeq ($(KBUILD_TARGET_ARCH),amd64)
37 SOL_DBG_OBJCOPY := /usr/sfw/bin/gobjcopy --only-keep-debug
38else
39 SOL_DBG_OBJCOPY := $(CP) -p # Solaris ld/gobjcopy(2.15) don't get along on x86, works only on amd64. So just using cp for now.
40endif
41SOL_OBJCOPY := /usr/sfw/bin/gobjcopy --strip-unneeded -R .comment
42
43# Base package
44PKGINFO_ARCH = $(shell uname -p)
45PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M)
46PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV)
47
48# Debug package
49DBG_ARCHIVE = VirtualBoxDebug.tar.bz2
50
51# Kernel interface (vbi) package
52VBIPKG_FILENAME = VirtualBoxKern-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
53
54#
55# Targets
56#
57PROGRAMS += VBoxZoneAccess
58INSTALLS += solaris-doc
59PACKING += $(PATH_BIN)/$(PKG_FILENAME).tar.gz $(PATH_BIN)/$(DBG_ARCHIVE)
60OTHER_CLEAN += $(addprefix $(SOLARIS_INST_DIR)/,\
61 vbox.pkginfo vbox.copyright vbox.space vbox.pkgresponse \
62 makepackage.sh prototype postinstall.sh preremove.sh)
63
64#
65# VBoxZoneAccess
66#
67VBoxZoneAccess_TEMPLATE = VBOXR3EXE
68VBoxZoneAccess_DEPS = $(VBOX_SVN_REV_KMK)
69VBoxZoneAccess_SOURCES = \
70 VBoxZoneAccess.c
71VBoxZoneAccess_LIBS = \
72 $(LIB_RUNTIME)
73
74
75# Solaris installs.
76#
77solaris-doc_INST = bin/
78solaris-doc_MODE = a+r,u+w
79solaris-doc_SOURCES = \
80 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)=>LICENSE) \
81 $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_64px.png=>VBox.png
82
83#
84# Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that
85# go into the temporary install folder $(SOLARIS_INST_DIR) should be part of $(SOLARIS_ARCH_FILES).
86# For the files produced during packing they should be cleaned up promptly when the work is done.
87
88# Strip these binaries
89SOLARIS_STRIP_BINS = \
90 vboxdrv \
91 $(if $(VBOX_WITH_NETFLT),vboxflt) \
92 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE) \
93 VBoxDD.so \
94 VBoxDD2.so \
95 VBoxManage \
96 VBoxREM.so \
97 $(if $(eq $(KBUILD_TARGET_ARCH),x86),VBoxREM32.so,) \
98 $(if $(eq $(KBUILD_TARGET_ARCH),x86),VBoxREM64.so,) \
99 VBoxRT.so \
100 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
101 VBoxSVC \
102 VBoxDDU.so \
103 VBoxVMM.so \
104 VBoxXPCOM.so \
105 VBoxXPCOMIPCD \
106 $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
107 $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
108 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
109 $(if $(VBOX_WITH_QT4GUI),VBoxKeyboard.so,) \
110 $(if $(VBOX_WITH_QT4GUI),VirtualBox,) \
111 $(if $(VBOX_WITH_QT4GUI),libVBoxQtCore.so.4,) \
112 $(if $(VBOX_WITH_QT4GUI),libVBoxQtGui.so.4,) \
113 $(if $(VBOX_WITH_QT4GUI),accessible/libqtaccessiblewidgets.so,) \
114 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
115 $(if $(VBOX_WITH_PYTHON),VBoxPython.so,) \
116 $(if $(VBOX_WITH_CROGL),\
117 VBoxOGLhostcrutil.so \
118 VBoxOGLhosterrorspu.so \
119 VBoxOGLrenderspu.so \
120 VBoxSharedCrOpenGL.so) \
121 VBoxSettings.so \
122 VBoxZoneAccess \
123 components/VBoxC.so \
124 components/VBoxSVCM.so \
125 components/VBoxXPCOMIPCC.so \
126 kchmviewer
127ifdef VBOX_WITH_HARDENING
128SOLARIS_STRIP_BINS += \
129 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so) \
130 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
131 $(if $(VBOX_WITH_QT4GUI),VirtualBox.so,)
132endif
133
134# Do not remove relocation information of these binaries
135SOLARIS_STRIP_OBJS = \
136 VBoxDD2GC.gc \
137 VBoxDD2R0.r0 \
138 VBoxDDGC.gc \
139 VBoxDDR0.r0 \
140 VMMGC.gc \
141 VMMR0.r0
142
143VBOX_SOL_PYTHON_INST =
144ifeq ($(KBUILD_TARGET_ARCH),amd64)
145 VBOX_SOL_PYTHON_INST = 64/
146 SOL64_PKG = 1
147ifndef VBOX_WITH_NEW_RECOMPILER
148 SOLARIS_STRIP_OBJS += \
149 VBoxREM2.rel
150 NEED_REL = 1
151endif
152endif
153
154# Do not strip anything of these files
155SOLARIS_NO_STRIP = \
156 components/VBoxXPCOMBase.xpt \
157 components/VirtualBox_XPCOM.xpt
158
159# Things packed explicitly, not from $(PATH_BIN), track these to clean-up properly
160# The extra Qt libs packed under EXTRAS are purely for running VBoxQtconfig
161SOLARIS_EXTRAS = \
162 $(if $(VBOX_OSE),,LICENSE) \
163 $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QT4GUI)),$(VBOX_LICENSE_FILES)) \
164 $(if $(VBOX_WITH_QT4GUI),VBoxQtconfig,) \
165 $(if $(VBOX_WITH_QT4GUI),virtualbox.desktop,) \
166 $(if $(VBOX_WITH_QT4GUI),libVBoxQtNetwork.so.4,) \
167 $(if $(VBOX_WITH_QT4GUI),libVBoxQtXml.so.4,) \
168 $(if $(VBOX_WITH_QT4GUI),libVBoxQtSql.so.4,) \
169 $(if $(VBOX_WITH_QT4GUI),libVBoxQt3Support.so.4,) \
170 $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
171 VBox.png \
172 autoresponse \
173 vboxdrv.conf \
174 $(if $(VBOX_WITH_NETFLT),vboxflt.conf) \
175 vboxdrv.sh \
176 VBox.sh \
177 $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
178 $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
179 virtualbox-webservice.xml \
180 virtualbox-zoneaccess.xml \
181 smf-vboxwebsrv.sh \
182 vbox.copyright \
183 ReadMe.txt
184
185ifdef VBOX_WITH_QT4GUI
186 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox4/nls/ApprovedLanguages.kmk
187 SOLARIS_NLS := $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
188endif
189
190# Documentation
191ifdef VBOX_WITH_DOCS_PACKING
192 SOLARIS_NO_STRIP += \
193 VirtualBox.chm \
194 UserManual.pdf \
195 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
196endif
197
198# VRDP
199ifdef VBOX_WITH_VRDP
200 SOLARIS_STRIP_BINS += \
201 VBoxVRDP.so \
202 VRDPAuth.so
203 SOLARIS_NO_STRIP += \
204 rdesktop-vrdp.tar.gz
205 ifdef VBOX_WITH_VRDP_RDESKTOP
206 SOLARIS_NO_STRIP += \
207 rdesktop-vrdp-keymaps
208 SOLARIS_STRIP_BINS += \
209 rdesktop-vrdp
210 endif
211endif
212
213## @todo Why are these done in this manner instead of $(if $(blah),) like the rest? grr!
214ifdef VBOX_WITH_HEADLESS
215 SOLARIS_STRIP_BINS += \
216 VBoxHeadless \
217 $(if $(VBOX_WITH_HARDENING),VBoxHeadless.so,)
218endif
219ifdef VBOX_WITH_WEBSERVICES
220 SOLARIS_STRIP_BINS += \
221 vboxwebsrv \
222 webtest
223endif
224
225# Guest Additions
226ifdef VBOX_WITH_ADDITIONS_PACKING
227 SOLARIS_NO_STRIP += \
228 additions/VBoxGuestAdditions.iso
229endif
230
231SOLARIS_ARCH_FILES := \
232 $(SOLARIS_STRIP_BINS) \
233 $(SOLARIS_STRIP_OBJS) \
234 $(SOLARIS_NO_STRIP) \
235 $(SOLARIS_NLS) \
236 $(SOLARIS_EXTRAS)
237
238OTHER_CLEAN += \
239 $(addprefix $(SOLARIS_INST_DIR)/, $(SOLARIS_ARCH_FILES)) \
240 $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz \
241 $(SOLARIS_INST_DIR)/$(PKG_FILENAME).pkg \
242 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
243 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
244 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
245 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
246
247include $(KBUILD_PATH)/subfooter.kmk
248
249## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
250# containing any obsolete files the way packing is performed here. Consider recursivly
251# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
252# directory tree.
253$(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
254 $(VBOX_VERSION_STAMP) \
255 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
256 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
257 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
258 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
259 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
260 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
261 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \
262 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \
263 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
264 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
265 $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
266 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
267 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
268 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QT4GUI)),$(VBOX_LICENSE_BINS),) \
269 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \
270 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf) \
271 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
272 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
273 $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS),$(SOLARIS_ARCH_FILES)))
274 $(call MSG_L1,Installing binaries $(SOLARIS_INST_DIR))
275 $(QUIET)$(MKDIR) -p $(SOLARIS_INST_DIR)/additions
276 $(QUIET)$(MKDIR) -p $(SOLARIS_INST_DIR)/components
277 $(QUIET)$(MKDIR) -p $(SOLARIS_INST_DIR)/etc
278 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(MKDIR) -p $(SOLARIS_INST_DIR)/$(VBOX_SOL_PYTHON_INST),)
279 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(MKDIR) -p $(SOLARIS_INST_DIR)/nls,)
280 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(MKDIR) -p $(SOLARIS_INST_DIR)/accessible,)
281 $(QUIET)$(if $(and $(VBOX_WITH_QT4GUI), $(not $(VBOX_WITH_SEPARATE_SDK))),$(MKDIR) -p $(SOLARIS_INST_DIR)/nls,)
282 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(PATH_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_INST_DIR)/additions/)
283 $(QUIET)$(if $(VBOX_WITH_VRDP_RDESKTOP),$(MKDIR) -p $(SOLARIS_INST_DIR)/rdesktop-vrdp-keymaps,)
284 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/vboxdrv $(SOLARIS_INST_DIR)/vboxdrv
285 $(QUIET)$(if $(VBOX_WITH_NETFLT),$(INSTALL) -m 0644 $(PATH_BIN)/vboxflt $(SOLARIS_INST_DIR)/vboxflt,)
286 $(QUIET)$(if $(VBOX_WITH_VBOXBFE),$(INSTALL) -m 0755 $(PATH_BIN)/VBoxBFE $(SOLARIS_INST_DIR)/VBoxBFE)
287ifdef VBOX_WITH_HARDENING
288 $(QUIET)$(if $(VBOX_WITH_VBOXBFE),$(INSTALL) -m 0755 $(PATH_BIN)/VBoxBFE.so $(SOLARIS_INST_DIR)/VBoxBFE.so)
289endif
290 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxDD.so $(SOLARIS_INST_DIR)/VBoxDD.so
291 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxDD2.so $(SOLARIS_INST_DIR)/VBoxDD2.so
292 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxDDU.so $(SOLARIS_INST_DIR)/VBoxDDU.so
293 $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/VBoxManage $(SOLARIS_INST_DIR)/VBoxManage
294 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxREM.so $(SOLARIS_INST_DIR)/VBoxREM.so
295ifeq ($(KBUILD_TARGET_ARCH),x86)
296 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxREM32.so $(SOLARIS_INST_DIR)/VBoxREM32.so
297 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxREM64.so $(SOLARIS_INST_DIR)/VBoxREM64.so
298endif
299 $(QUIET)$(if $(NEED_REL),$(INSTALL) -m 0755 $(PATH_BIN)/VBoxREM2.rel $(SOLARIS_INST_DIR)/VBoxREM2.rel,)
300 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxVMM.so $(SOLARIS_INST_DIR)/VBoxVMM.so
301 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxXPCOM.so $(SOLARIS_INST_DIR)/VBoxXPCOM.so
302 $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/VBoxXPCOMIPCD $(SOLARIS_INST_DIR)/VBoxXPCOMIPCD
303 $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/VBoxSVC $(SOLARIS_INST_DIR)/VBoxSVC
304 $(QUIET)$(if $(VBOX_WITH_SHARED_FOLDERS),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxSharedFolders.so $(SOLARIS_INST_DIR)/VBoxSharedFolders.so,)
305 $(QUIET)$(if $(VBOX_WITH_SHARED_CLIPBOARD),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxSharedClipboard.so $(SOLARIS_INST_DIR)/VBoxSharedClipboard.so,)
306 $(QUIET)$(if $(VBOX_WITH_GUEST_PROPS),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxGuestPropSvc.so $(SOLARIS_INST_DIR)/VBoxGuestPropSvc.so,)
307 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0755 $(PATH_BIN)/VBoxSDL $(SOLARIS_INST_DIR)/VBoxSDL,)
308ifdef VBOX_WITH_HARDENING
309 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxSDL.so $(SOLARIS_INST_DIR)/VBoxSDL.so,)
310endif
311 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_INST_DIR)/libSDL-1.2.so.0,)
312 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxRT.so $(SOLARIS_INST_DIR)/VBoxRT.so
313 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxKeyboard.so $(SOLARIS_INST_DIR)/VBoxKeyboard.so,)
314 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0755 $(PATH_BIN)/VirtualBox $(SOLARIS_INST_DIR)/VirtualBox,)
315ifdef VBOX_WITH_HARDENING
316 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0755 $(PATH_BIN)/VirtualBox.so $(SOLARIS_INST_DIR)/VirtualBox.so,)
317endif
318 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0644 $(PATH_BIN)/libVBoxQtCore.so.4 $(SOLARIS_INST_DIR)/libVBoxQtCore.so.4,)
319 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0644 $(PATH_BIN)/libVBoxQtGui.so.4 $(SOLARIS_INST_DIR)/libVBoxQtGui.so.4,)
320 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/qt/v4.3.3-r1/lib/libVBoxQtNetwork.so.4 $(SOLARIS_INST_DIR)/libVBoxQtNetwork.so.4,)
321 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/qt/v4.3.3-r1/lib/libVBoxQtXml.so.4 $(SOLARIS_INST_DIR)/libVBoxQtXml.so.4,)
322 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/qt/v4.3.3-r1/lib/libVBoxQtSql.so.4 $(SOLARIS_INST_DIR)/libVBoxQtSql.so.4,)
323 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/qt/v4.3.3-r1/lib/libVBoxQt3Support.so.4 $(SOLARIS_INST_DIR)/libVBoxQt3Support.so.4,)
324 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0644 $(PATH_BIN)/accessible/libqtaccessiblewidgets.so $(SOLARIS_INST_DIR)/accessible/libqtaccessiblewidgets.so,)
325 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0755 $(PATH_DEVTOOLS_TRG)/qt/v4.3.3-r1/bin/qtconfig $(SOLARIS_INST_DIR)/VBoxQtconfig,)
326 $(QUIET)$(if $(VBOX_WITH_DEBUGGER_GUI),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxDbg.so $(SOLARIS_INST_DIR)/VBoxDbg.so,)
327 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxPython.so $(SOLARIS_INST_DIR)/$(VBOX_SOL_PYTHON_INST)VBoxPython.so)
328 $(QUIET)$(if $(VBOX_WITH_CROGL),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxOGLhostcrutil.so $(SOLARIS_INST_DIR)/VBoxOGLhostcrutil.so)
329 $(QUIET)$(if $(VBOX_WITH_CROGL),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxOGLhosterrorspu.so $(SOLARIS_INST_DIR)/VBoxOGLhosterrorspu.so)
330 $(QUIET)$(if $(VBOX_WITH_CROGL),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxOGLrenderspu.so $(SOLARIS_INST_DIR)/VBoxOGLrenderspu.so)
331 $(QUIET)$(if $(VBOX_WITH_CROGL),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxSharedCrOpenGL.so $(SOLARIS_INST_DIR)/VBoxSharedCrOpenGL.so)
332 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxSettings.so $(SOLARIS_INST_DIR)/VBoxSettings.so
333 $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/VBoxZoneAccess $(SOLARIS_INST_DIR)/VBoxZoneAccess
334 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/components/VBoxC.so $(SOLARIS_INST_DIR)/components/VBoxC.so
335 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/components/VBoxSVCM.so $(SOLARIS_INST_DIR)/components/VBoxSVCM.so
336 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/components/VBoxXPCOMIPCC.so $(SOLARIS_INST_DIR)/components/VBoxXPCOMIPCC.so
337 $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/kchmviewer $(SOLARIS_INST_DIR)/kchmviewer
338 $(QUIET)$(if $(VBOX_WITH_VRDP),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxVRDP.so $(SOLARIS_INST_DIR)/VBoxVRDP.so,)
339 $(QUIET)$(if $(VBOX_WITH_VRDP),$(INSTALL) -m 0644 $(PATH_BIN)/VRDPAuth.so $(SOLARIS_INST_DIR)/VRDPAuth.so,)
340 $(QUIET)$(if $(VBOX_WITH_HEADLESS),$(INSTALL) -m 0755 $(PATH_BIN)/VBoxHeadless $(SOLARIS_INST_DIR)/VBoxHeadless,)
341ifdef VBOX_WITH_HARDENING
342 $(QUIET)$(if $(VBOX_WITH_HEADLESS),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxHeadless.so $(SOLARIS_INST_DIR)/VBoxHeadless.so,)
343endif
344 $(QUIET)$(if $(VBOX_WITH_VRDP_RDESKTOP),$(INSTALL) -m 0755 $(PATH_BIN)/rdesktop-vrdp $(SOLARIS_INST_DIR)/rdesktop-vrdp,)
345 $(QUIET)$(if $(VBOX_WITH_VRDP_RDESKTOP),$(INSTALL) -m 644 $(wildcard $(PATH_BIN)/rdesktop-vrdp-keymaps/*) $(SOLARIS_INST_DIR)/rdesktop-vrdp-keymaps/,)
346 $(call MSG_L1,Stripping binaries $(SOLARIS_INST_DIR))
347 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/vboxdrv,)
348ifdef VBOX_WITH_NETFLT
349 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/vboxflt,)
350endif
351 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VBOXBFE),strip $(SOLARIS_INST_DIR)/VBoxBFE,))
352ifdef VBOX_WITH_HARDENING
353 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VBOXBFE),strip $(SOLARIS_INST_DIR)/VBoxBFE.so,))
354endif
355 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxDD2.so,)
356 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxDD2.so,)
357 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxDDU.so,)
358 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxManage,)
359 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxREM.so,)
360 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(NEED_REL),strip $(SOLARIS_INST_DIR)/VBoxREM2.rel,),)
361 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxVMM.so,)
362 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxXPCOM.so,)
363 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxXPCOMIPCD,)
364 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxSVC,)
365 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VBOXSDL),strip $(SOLARIS_INST_DIR)/VBoxSDL,),)
366ifdef VBOX_WITH_HARDENING
367 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VBOXSDL),strip $(SOLARIS_INST_DIR)/VBoxSDL.so,),)
368endif
369 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VBOXSDL),strip $(SOLARIS_INST_DIR)/libSDL-1.2.so.0,),)
370 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxRT.so,)
371 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/VBoxKeyboard.so,),)
372 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/VirtualBox,),)
373ifdef VBOX_WITH_HARDENING
374 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/VirtualBox.so,),)
375endif
376 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/libVBoxQtCore.so.4,),)
377 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/libVBoxQtGui.so.4,),)
378 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/libVBoxQtNetwork.so.4,),)
379 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/libVBoxQtXml.so.4,),)
380 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/libVBoxQtSql.so.4,),)
381 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/libVBoxQt3Support.so.4,),)
382 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/accessible/libqtaccessiblewidgets.so,),)
383 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QT4GUI),strip $(SOLARIS_INST_DIR)/VBoxQtconfig,),)
384 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_DEBUGGER_GUI),strip $(SOLARIS_INST_DIR)/VBoxDbg.so,),)
385 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_PYTHON),strip $(SOLARIS_INST_DIR)/$(VBOX_SOL_PYTHON_INST)VBoxPython.so,),)
386 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_CROGL),strip $(SOLARIS_INST_DIR)/VBoxOGLhostcrutil.so,),)
387 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_CROGL),strip $(SOLARIS_INST_DIR)/VBoxOGLhosterrorspu.so,),)
388 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_CROGL),strip $(SOLARIS_INST_DIR)/VBoxOGLrenderspu.so,),)
389 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_CROGL),strip $(SOLARIS_INST_DIR)/VBoxSharedCrOpenGL.so,),)
390 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxSettings.so,)
391 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxZoneAccess,)
392 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/components/VBoxC.so,)
393 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/components/VBoxSVCM.so,)
394 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/components/VBoxXPCOMIPCC.so,)
395 $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/kchmviewer,)
396 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VRDP),strip $(SOLARIS_INST_DIR)/VBoxVRDP.so,),)
397 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VRDP),strip $(SOLARIS_INST_DIR)/VRDPAuth.so,),)
398 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_HEADLESS),strip $(SOLARIS_INST_DIR)/VBoxHeadless,),)
399ifdef VBOX_WITH_HARDENING
400 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_HEADLESS),strip $(SOLARIS_INST_DIR)/VBoxHeadless.so,),)
401endif
402 $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VRDP_RDESKTOP),strip $(SOLARIS_INST_DIR)/rdesktop-vrdp,),)
403 $(QUIET)$(call MSG_L1,Installing and stripping relocatable objects $(SOLARIS_INST_DIR))
404 $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VBoxDD2GC.gc $(SOLARIS_INST_DIR)/VBoxDD2GC.gc, $(INSTALL) -m 0755 $(PATH_BIN)/VBoxDD2GC.gc $(SOLARIS_INST_DIR)/VBoxDD2GC.gc)
405 $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VBoxDD2R0.r0 $(SOLARIS_INST_DIR)/VBoxDD2R0.r0, $(INSTALL) -m 0755 $(PATH_BIN)/VBoxDD2R0.r0 $(SOLARIS_INST_DIR)/VBoxDD2R0.r0)
406 $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VBoxDDGC.gc $(SOLARIS_INST_DIR)/VBoxDDGC.gc, $(INSTALL) -m 0755 $(PATH_BIN)/VBoxDDGC.gc $(SOLARIS_INST_DIR)/VBoxDDGC.gc)
407 $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VBoxDDR0.r0 $(SOLARIS_INST_DIR)/VBoxDDR0.r0, $(INSTALL) -m 0755 $(PATH_BIN)/VBoxDDR0.r0 $(SOLARIS_INST_DIR)/VBoxDDR0.r0)
408 $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VMMGC.gc $(SOLARIS_INST_DIR)/VMMGC.gc, $(INSTALL) -m 0755 $(PATH_BIN)/VMMGC.gc $(SOLARIS_INST_DIR)/VMMGC.gc)
409 $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VMMR0.r0 $(SOLARIS_INST_DIR)/VMMR0.r0, $(INSTALL) -m 0755 $(PATH_BIN)/VMMR0.r0 $(SOLARIS_INST_DIR)/VMMR0.r0)
410 $(call MSG_L1,Installing files $(SOLARIS_INST_DIR))
411 $(QUIET)$(SED) \
412 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
413 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
414 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
415 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
416 --output $(SOLARIS_INST_DIR)/vbox.pkginfo \
417 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
418 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $(SOLARIS_INST_DIR)/vboxdrv.conf
419 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf $(SOLARIS_INST_DIR)/vboxflt.conf
420 $(QUIET)$(if $(VBOX_WITH_DOCS_PACKING),$(INSTALL) -m 0644 \
421 $(PATH_BIN)/VirtualBox.chm \
422 $(PATH_BIN)/UserManual.pdf \
423 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_BIN)/VirtualBox_$(f).chm $(PATH_BIN)/UserManual_$(f).pdf) $(SOLARIS_INST_DIR)/)
424 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/LICENSE)
425 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/vbox.copyright)
426 $(QUIET)$(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QT4GUI)),$(INSTALL) -m 0644 $(VBOX_LICENSE_BINS) $(SOLARIS_INST_DIR)/)
427 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/components/VBoxXPCOMBase.xpt $(SOLARIS_INST_DIR)/components/VBoxXPCOMBase.xpt
428 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/components/VirtualBox_XPCOM.xpt $(SOLARIS_INST_DIR)/components/VirtualBox_XPCOM.xpt
429 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(CP) $(foreach f,$(SOLARIS_NLS),$(PATH_BIN)/$(f)) $(SOLARIS_INST_DIR)/nls,)
430 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $(PATH_BIN)/vboxwebsrv $(SOLARIS_INST_DIR)/vboxwebsrv,)
431 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $(PATH_BIN)/webtest $(SOLARIS_INST_DIR)/webtest,)
432 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_INST_DIR)/virtualbox-webservice.xml,)
433 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/smf-vboxwebsrv.sh $(SOLARIS_INST_DIR)/smf-vboxwebsrv.sh,)
434 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_INST_DIR)/virtualbox-zoneaccess.xml
435 $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh $(SOLARIS_INST_DIR)/vnic_setup.sh,)
436 $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh $(SOLARIS_INST_DIR)/vnic_term.sh,)
437 $(QUIET)$(SED) \
438 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,))/" \
439 --output $(SOLARIS_INST_DIR)/vboxdrv.sh.tmp \
440 $(VBOX_PATH_SOL_INST_SRC)/vboxdrv.sh
441 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_INST_DIR)/vboxdrv.sh.tmp $(SOLARIS_INST_DIR)/vboxdrv.sh
442 $(QUIET)$(RM) -f $(SOLARIS_INST_DIR)/vboxdrv.sh.tmp
443 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh $(SOLARIS_INST_DIR)/VBox.sh
444 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop $(SOLARIS_INST_DIR)/virtualbox.desktop,)
445 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBox.png $(SOLARIS_INST_DIR)/VBox.png
446 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_INST_DIR)/postinstall.sh
447 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_INST_DIR)/preremove.sh
448 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_INST_DIR)/makepackage.sh
449 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_INST_DIR)/autoresponse
450 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_INST_DIR)/vbox.space
451 $(QUIET)$(SED) \
452 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
453 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
454 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
455 --output $(SOLARIS_INST_DIR)/ReadMe.txt \
456 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
457 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_INST_DIR)/$(VBIPKG_FILENAME).pkg,)
458 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
459 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_INST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
460 $(SOLARIS_INST_DIR) \
461 $(PKG_FILENAME) \
462 $(KBUILD_TARGET_ARCH) \
463 $(VBOX_SVN_REV) \
464 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
465 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz $(PATH_BIN)
466 @# Clean up files emitted as side-effect or result of packing
467 $(QUIET)$(RM) -Rf $(SOLARIS_INST_DIR)
468
469$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
470 $(VBOX_VERSION_STAMP) \
471 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
472 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
473 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
474 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
475 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
476 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
477 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
478 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
479 $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
480 $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
481 $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
482 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
483 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
484 $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
485 $(QUIET)$(SED) \
486 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
487 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
488 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
489 --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
490 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
491 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
492 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
493 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
494 $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
495 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
496
497
498$(PATH_BIN)/$(DBG_ARCHIVE): \
499 $(VBOX_VERSION_STAMP) \
500 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk
501 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
502 $(QUIET)$(RM) -Rf -- $(SOLARIS_DBG_DIR)
503 $(QUIET)$(MKDIR) -p -- $(SOLARIS_DBG_DIR)/components
504 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(MKDIR) -p -- $(SOLARIS_DBG_DIR)/accessible,)
505 $(QUIET)$(if $(VBOX_WITH_PYTHON), $(MKDIR) -p -- $(SOLARIS_DBG_DIR)/$(VBOX_SOL_PYTHON_INST),)
506 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/vboxdrv $(SOLARIS_DBG_DIR)/vboxdrv
507 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/vboxflt $(SOLARIS_DBG_DIR)/vboxflt
508 $(QUIET)$(if $(VBOX_WITH_VBOXBFE),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxBFE $(SOLARIS_DBG_DIR)/VBoxBFE)
509ifdef VBOX_WITH_HARDENING
510 $(QUIET)$(if $(VBOX_WITH_VBOXBFE),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxBFE.so $(SOLARIS_DBG_DIR)/VBoxBFE.so)
511endif
512 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxDD.so $(SOLARIS_DBG_DIR)/VBoxDD.so
513 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxDD2.so $(SOLARIS_DBG_DIR)/VBoxDD2.so
514 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxManage $(SOLARIS_DBG_DIR)/VBoxManage
515 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxREM.so $(SOLARIS_DBG_DIR)/VBoxREM.so
516 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxRT.so $(SOLARIS_DBG_DIR)/VBoxRT.so
517 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSDL $(SOLARIS_DBG_DIR)/VBoxSDL,)
518ifdef VBOX_WITH_HARDENING
519 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSDL.so $(SOLARIS_DBG_DIR)/VBoxSDL.so,)
520endif
521 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSVC $(SOLARIS_DBG_DIR)/VBoxSVC
522 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxDDU.so $(SOLARIS_DBG_DIR)/VBoxDDU.so
523 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxVMM.so $(SOLARIS_DBG_DIR)/VBoxVMM.so
524 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxXPCOM.so $(SOLARIS_DBG_DIR)/VBoxXPCOM.so
525 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxXPCOMIPCD $(SOLARIS_DBG_DIR)/VBoxXPCOMIPCD
526 $(QUIET)$(if $(VBOX_WITH_SHARED_FOLDERS),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSharedFolders.so $(SOLARIS_DBG_DIR)/VBoxSharedFolders.so,)
527 $(QUIET)$(if $(VBOX_WITH_SHARED_CLIPBOARD),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSharedClipboard.so $(SOLARIS_DBG_DIR)/VBoxSharedClipboard.so,)
528 $(QUIET)$(if $(VBOX_WITH_GUEST_PROPS),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxGuestPropSvc.so $(SOLARIS_DBG_DIR)/VBoxGuestPropSvc.so,)
529 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxKeyboard.so $(SOLARIS_DBG_DIR)/VBoxKeyboard.so,)
530 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VirtualBox $(SOLARIS_DBG_DIR)/VirtualBox,)
531 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/libVBoxQtCore.so.4 $(SOLARIS_DBG_DIR)/libVBoxQtCore.so.4,)
532 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/libVBoxQtGui.so.4 $(SOLARIS_DBG_DIR)/libVBoxQtGui.so.4,)
533 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/accessible/libqtaccessiblewidgets.so $(SOLARIS_DBG_DIR)/accessible/libqtaccessiblewidgets.so,)
534ifdef VBOX_WITH_HARDENING
535 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VirtualBox.so $(SOLARIS_DBG_DIR)/VirtualBox.so,)
536endif
537 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxPython.so $(SOLARIS_DBG_DIR)/VBoxPython.so,)
538 $(QUIET)$(if $(VBOX_WITH_CROGL),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxOGLhostcrutil.so $(SOLARIS_DBG_DIR)/VBoxOGLhostcrutil.so,)
539 $(QUIET)$(if $(VBOX_WITH_CROGL),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxOGLhosterrorspu.so $(SOLARIS_DBG_DIR)/VBoxOGLhosterrorspu.so,)
540 $(QUIET)$(if $(VBOX_WITH_CROGL),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxOGLrenderspu.so $(SOLARIS_DBG_DIR)/VBoxOGLrenderspu.so,)
541 $(QUIET)$(if $(VBOX_WITH_CROGL),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSharedCrOpenGL.so $(SOLARIS_DBG_DIR)/VBoxSharedCrOpenGL.so,)
542 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSettings.so $(SOLARIS_DBG_DIR)/VBoxSettings.so
543 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxZoneAccess $(SOLARIS_DBG_DIR)/VBoxZoneAccess
544 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/components/VBoxC.so $(SOLARIS_DBG_DIR)/components/VBoxC.so
545 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/components/VBoxSVCM.so $(SOLARIS_DBG_DIR)/components/VBoxSVCM.so
546 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/components/VBoxXPCOMIPCC.so $(SOLARIS_DBG_DIR)/components/VBoxXPCOMIPCC.so
547 $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/kchmviewer $(SOLARIS_DBG_DIR)/kchmviewer
548 $(QUIET)$(if $(VBOX_WITH_VRDP),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxVRDP.so $(SOLARIS_DBG_DIR)/VBoxVRDP.so,)
549 $(QUIET)$(if $(VBOX_WITH_VRDP),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VRDPAuth.so $(SOLARIS_DBG_DIR)/VRDPAuth.so,)
550 $(QUIET)$(if $(VBOX_WITH_HEADLESS),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxHeadless $(SOLARIS_DBG_DIR)/VBoxHeadless,)
551ifdef VBOX_WITH_HARDENING
552 $(QUIET)$(if $(VBOX_WITH_HEADLESS),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxHeadless.so $(SOLARIS_DBG_DIR)/VBoxHeadless.so,)
553endif
554 $(QUIET)$(if $(VBOX_WITH_VRDP_RDESKTOP),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/rdesktop-vrdp $(SOLARIS_DBG_DIR)/rdesktop-vrdp,)
555 $(QUIET)$(if $(VBOX_WITH_DEBUGGER_GUI),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxDbg.so $(SOLARIS_DBG_DIR)/VBoxDbg.so,)
556 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/vboxwebsrv $(SOLARIS_DBG_DIR)/vboxwebsrv,)
557 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/webtest $(SOLARIS_DBG_DIR)/webtest,)
558 $(call MSG_L1,Packing $@)
559 $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_STRIP_BINS)
560 $(QUIET)chmod 0644 $(PATH_BIN)/$(DBG_ARCHIVE)
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