VirtualBox

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

Last change on this file since 22509 was 22385, checked in by vboxsync, 15 years ago

qgl framebuffer: add QtOpenGL lib to darwin & solaris installers (not tested)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 32.5 KB
Line 
1# $Id: Makefile.kmk 22385 2009-08-21 12:50:40Z 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# Unset this to speed up things during makefile hacking.
30VBOX_SOL_INST_DEP_ON_MAKEFILE := $(MAKEFILE_CURRENT)
31
32#
33# Globals
34#
35ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE ## @todo remove this when tinderclient.pl is updated.
36 VBOX_WITH_COMBINED_PACKAGE := 1
37endif
38VBOX_PATH_SOL_INST_SRC := $(PATH_SUB_CURRENT)
39SOLARIS_DIR_NAME_64 := amd64
40SOLARIS_DIR_NAME_32 := i386
41SOLARIS_INST_OUT_DIR := $(PATH_TARGET)/Installer
42SOLARIS_BASEINST_DIR := $(PATH_TARGET)/Installer/BasePkg
43SOLARIS_VBOXINST_SUBDIR := opt/VirtualBox
44SOLARIS_VBOXINST_DIR := $(SOLARIS_BASEINST_DIR)/$(SOLARIS_VBOXINST_SUBDIR)
45SOLARIS_VBOXINST_DIR_32 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_32)
46SOLARIS_VBOXINST_DIR_64 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_64)
47SOLARIS_DRIVERINST_DIR := $(SOLARIS_BASEINST_DIR)/platform/i86pc/kernel/drv
48SOLARIS_DRIVERINST_DIR_32 := $(SOLARIS_DRIVERINST_DIR)
49SOLARIS_DRIVERINST_DIR_64 := $(SOLARIS_DRIVERINST_DIR)/amd64
50SOLARIS_USR_DIR := $(SOLARIS_BASEINST_DIR)/usr
51SOLARIS_USRBIN_DIR := $(SOLARIS_USR_DIR)/bin
52SOLARIS_USRSHR_APPS_DIR := $(SOLARIS_USR_DIR)/share/applications
53SOLARIS_USRSHR_PIXMAPS_DIR := $(SOLARIS_USR_DIR)/share/pixmaps
54SOLARIS_VBOXSMF_DIR := $(SOLARIS_BASEINST_DIR)/var/svc/manifest/application/virtualbox
55SOLARIS_ETC_DIR := $(SOLARIS_BASEINST_DIR)/etc
56
57SOLARIS_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin
58SOLARIS_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin
59SOLARIS_OUT_BIN := $(PATH_BIN)
60
61SOLARIS_DBG_DIR := $(PATH_TARGET)/Installer/DebugPkg
62SOLARIS_DBG_DIR_32 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_32)
63SOLARIS_DBG_DIR_64 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_64)
64SOLARIS_VBI_DIR := $(PATH_TARGET)/Installer/KernelPkg
65
66ifeq ($(KBUILD_TARGET_ARCH),amd64)
67 SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_64)
68 SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_64)
69 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_64)
70 SOL_DBG_OBJCOPY := /usr/sfw/bin/gobjcopy --only-keep-debug
71 SOL64_PKG := 1
72else
73 SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_32)
74 SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_32)
75 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_32)
76 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.
77endif
78SOL_OBJCOPY := /usr/sfw/bin/gobjcopy --strip-unneeded -R .comment
79
80
81# Figure out the paths to the two platform specific Qt4 directories
82SOLARIS_PATH_QT_32 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.x86,$(VBOX_PATH_QT4))
83SOLARIS_PATH_QT_64 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.amd64,$(VBOX_PATH_QT4))
84
85# Base package
86PKGINFO_ARCH = $(shell uname -p)
87PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M)
88ifndef VBOX_WITH_COMBINED_PACKAGE
89 PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV)
90else
91 PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
92endif
93
94# Debug package
95DBG_ARCHIVE = VirtualBoxDebug.tar.bz2
96
97# Kernel interface (vbi) package
98VBIPKG_FILENAME = VirtualBoxKern-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
99
100#
101# Targets
102#
103PROGRAMS += VBoxZoneAccess VBoxISAExec
104INSTALLS += solaris-doc solaris-bin solaris-drv-confs
105
106BLDDIRS += \
107 $(SOLARIS_INST_OUT_DIR) \
108 $(SOLARIS_BASEINST_DIR) \
109 $(SOLARIS_VBOXINST_DIR) \
110 $(SOLARIS_VBI_DIR) \
111 $(SOLARIS_DBG_DIR)
112
113BLDDIRS += $(addprefix $(SOLARIS_BASEINST_DIR)/,\
114 usr \
115 usr/bin \
116 platform \
117 platform/i86pc \
118 platform/i86pc/kernel \
119 platform/i86pc/kernel/drv \
120 platform/i86pc/kernel/drv/amd64 \
121)
122
123PACKING += $(PATH_BIN)/$(PKG_FILENAME).tar.gz $(PATH_BIN)/$(DBG_ARCHIVE)
124
125OTHER_CLEAN += $(addprefix $(SOLARIS_BASEINST_DIR)/,\
126 vbox.pkginfo vbox.copyright vbox.space vbox.depend vbox.pkgresponse \
127 makepackage.sh prototype postinstall.sh checkinstall.sh preremove.sh)
128
129#
130# VBoxZoneAccess
131#
132VBoxZoneAccess_TEMPLATE = VBOXR3EXE
133VBoxZoneAccess_DEPS = $(VBOX_SVN_REV_KMK)
134VBoxZoneAccess_SOURCES = VBoxZoneAccess.c
135VBoxZoneAccess_LIBS = $(LIB_RUNTIME)
136
137#
138# VBoxISAExec
139#
140VBoxISAExec_TEMPLATE = VBOXR3EXE
141VBoxISAExec_DEPS = $(VBOX_SVN_REV_KMK)
142VBoxISAExec_SOURCES = VBoxISAExec.c
143
144#
145# Solaris installs.
146#
147solaris-doc_INST = bin/
148solaris-doc_MODE = a+r,u+w
149solaris-doc_SOURCES = \
150 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)=>LICENSE) \
151 $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_64px.png=>VBox.png
152
153solaris-bin_INST = bin/
154solaris-bin_MODE = a+rx,u+w
155solaris-bin_SOURCES = \
156 $(if $(VBOX_WITH_PYTHON),$(PATH_ROOT)/src/VBox/Frontends/VBoxShell/vboxshell.py,) \
157 $(VBOX_PATH_SOL_INST_SRC)/vboxconfig.sh \
158 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \
159 $(VBOX_PATH_SOL_INST_SRC)/pkginstall.sh \
160 $(if $(VBOX_WITH_WEBSERVICES),$(VBOX_PATH_SOL_INST_SRC)/smf-vboxwebsrv.sh,)
161
162solaris-drv-confs_INST = bin/
163solaris-drv-confs_MODE = a+r,u+w
164solaris-drv-confs_SOURCES = \
165 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \
166 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf) \
167 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf) \
168 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf)
169
170#
171# Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that
172# go into the temporary install folder $(SOLARIS_VBOXINST_DIR) should be part of $(SOLARIS_ARCH_FILES).
173# For the files produced during packing they should be cleaned up promptly when the work is done.
174#
175
176# Strip these executables
177SOLARIS_STRIP_EXES = \
178 VBoxZoneAccess \
179 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
180 VBoxManage \
181 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE,) \
182 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
183 $(if $(VBOX_WITH_USB),VBoxUSBHelper,) \
184 $(if $(VBOX_WITH_NETADP),VBoxNetAdpCtl,) \
185 VBoxNetDHCP \
186 VBoxSVC \
187 $(if $(VBOX_WITH_CROGL),VBoxTestOGL,) \
188 VBoxXPCOMIPCD \
189 kchmviewer
190
191SOLARIS_DRIVER_BINS = \
192 vboxdrv \
193 $(if $(VBOX_WITH_NETFLT),vboxflt,) \
194 $(if $(VBOX_WITH_NETADP),vboxnet,) \
195 $(if $(VBOX_WITH_USB),vboxusbmon,)
196
197SOLARIS_DRIVER_CONFS = \
198 vboxdrv.conf \
199 $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \
200 $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \
201 $(if $(VBOX_WITH_USB),vboxusbmon.conf,)
202
203# Strip these binaries
204SOLARIS_STRIP_BINS = \
205 VBoxDD.so \
206 VBoxDD2.so \
207 VBoxREM.so \
208 VBoxRT.so \
209 VBoxDDU.so \
210 VBoxVMM.so \
211 VBoxXPCOM.so \
212 VBoxXPCOMC.so \
213 $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
214 $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
215 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
216 $(if $(VBOX_WITH_QTGUI),\
217 VBoxKeyboard.so \
218 libQtCoreVBox.so.4 \
219 libQtGuiVBox.so.4 \
220 libQtNetworkVBox.so.4 \
221 $(if $(VBOX_GUI_USE_QGL), libQtOpenGLVBox.so.4,) \
222 accessible/libqtaccessiblewidgets.so,) \
223 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
224 $(if $(VBOX_WITH_CROGL),\
225 VBoxOGLhostcrutil.so \
226 VBoxOGLhosterrorspu.so \
227 VBoxOGLrenderspu.so \
228 VBoxSharedCrOpenGL.so) \
229 components/VBoxC.so \
230 components/VBoxSVCM.so \
231 components/VBoxXPCOMIPCC.so
232ifdef VBOX_WITH_HARDENING
233SOLARIS_STRIP_BINS += \
234 VBoxNetDHCP.so \
235 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so,) \
236 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
237 $(if $(VBOX_WITH_QTGUI),VirtualBox.so,)
238endif
239
240# Do not remove relocation information of these binaries
241SOLARIS_STRIP_OBJS = \
242 VBoxDD2GC.gc \
243 VBoxDD2R0.r0 \
244 VBoxDDGC.gc \
245 VBoxDDR0.r0 \
246 VMMGC.gc \
247 VMMR0.r0
248
249# Special differences between 32-bit and 64-bit
250SOLARIS_STRIP_BIN_32 = \
251 VBoxREM32.so \
252 VBoxREM64.so
253
254VBOX_SOL_PYTHON_DIR_64 = 64
255
256# Do not strip anything of these files
257SOLARIS_NO_STRIP = \
258 components/VBoxXPCOMBase.xpt \
259 components/VirtualBox_XPCOM.xpt \
260 $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES)) \
261
262SOLARIS_USRBIN_LINKS = \
263 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
264 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
265 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
266 VBoxManage
267
268SOLARIS_COMMON_EXES = \
269 vboxconfig.sh \
270 VBox.sh \
271 pkginstall.sh \
272 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \
273 $(if $(VBOX_WITH_WEBSERVICES),smf-vboxwebsrv.sh,) \
274
275# Things packed explicitly, not from $(PATH_BIN), track these to clean-up properly
276SOLARIS_EXTRAS = \
277 $(if $(VBOX_OSE),,LICENSE) \
278 VBox.png \
279 autoresponse \
280 $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
281 $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
282 $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
283 $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \
284 virtualbox-webservice.xml \
285 virtualbox-zoneaccess.xml \
286 VBoxQtconfig \
287 VBoxISAExec \
288 vbox.copyright \
289 ReadMe.txt
290
291# These extra Qt libs are purely for running VBoxQtconfig
292ifdef VBOX_WITH_QTGUI
293 SOLARIS_QTLIBS = \
294 libQtXmlVBox.so.4 \
295 libQtSqlVBox.so.4 \
296 libQt3SupportVBox.so.4
297endif
298
299
300ifdef VBOX_WITH_QTGUI
301 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
302 SOLARIS_NO_STRIP += $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
303endif
304
305# Documentation (packed as DOCS as they are arch. neutral)
306ifdef VBOX_WITH_DOCS_PACKING
307 SOLARIS_COMMON = \
308 VirtualBox.chm \
309 UserManual.pdf \
310 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
311endif
312
313# Python XPCOM glue
314ifdef VBOX_WITH_PYTHON
315 SOLARIS_COMMON += \
316 $(foreach f,$(notdir $(wildcard $(PATH_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
317 sdk/bindings/xpcom/python/xpcom/client/__init__.py \
318 sdk/bindings/xpcom/python/xpcom/server/__init__.py \
319 sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
320 sdk/bindings/xpcom/python/xpcom/server/factory.py \
321 sdk/bindings/xpcom/python/xpcom/server/loader.py \
322 sdk/bindings/xpcom/python/xpcom/server/module.py \
323 sdk/bindings/xpcom/python/xpcom/server/policy.py \
324 sdk/installer/vboxapisetup.py \
325 sdk/installer/vboxapi/__init__.py \
326 sdk/installer/vboxapi/VirtualBox_constants.py
327endif
328
329# VRDP
330ifdef VBOX_WITH_VRDP
331 SOLARIS_STRIP_BINS += \
332 VBoxVRDP.so \
333 VRDPAuth.so
334 SOLARIS_COMMON += \
335 rdesktop-vrdp.tar.gz
336 ifdef VBOX_WITH_VRDP_RDESKTOP
337 SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
338 SOLARIS_STRIP_EXES += \
339 rdesktop-vrdp
340 endif
341endif
342
343SOLARIS_STRIP_BINS += \
344 $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
345
346SOLARIS_STRIP_EXES += \
347 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
348 $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
349 $(if $(VBOX_WITH_WEBSERVICES),webtest)
350
351# Guest Additions
352ifdef VBOX_WITH_ADDITIONS_PACKING
353 SOLARIS_COMMON += \
354 additions/VBoxGuestAdditions.iso
355endif
356
357SOLARIS_ARCH_FILES := \
358 $(SOLARIS_STRIP_EXES) \
359 $(SOLARIS_DRIVER_BINS) \
360 $(SOLARIS_DRIVER_CONFS) \
361 $(SOLARIS_USRBIN_LINKS) \
362 $(SOLARIS_STRIP_BINS) \
363 $(SOLARIS_STRIP_OBJS) \
364 $(SOLARIS_NO_STRIP) \
365 $(SOLARIS_EXTRAS) \
366 $(SOLARIS_QTLIBS) \
367 $(SOLARIS_COMMON_EXES) \
368 $(SOLARIS_COMMON)
369
370SOLARIS_DBG_FILES := \
371 $(SOLARIS_STRIP_EXES) \
372 $(SOLARIS_STRIP_BINS) \
373 $(SOLARIS_DRIVER_BINS)
374
375OTHER_CLEAN += \
376 $(addprefix $(SOLARIS_VBOXINST_DIR)/, $(SOLARIS_ARCH_FILES)) \
377 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz \
378 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg \
379 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
380 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_DRIVER_BINS)) \
381 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
382 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
383 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
384 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
385
386ifdef VBOX_WITH_COMBINED_PACKAGE
387 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
388 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
389 $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)) \
390 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
391 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
392 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)) \
393 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
394 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
395 $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)) \
396 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
397 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
398 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)) \
399 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
400 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython*.so)) \
401 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython*.so))
402 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \
403 $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES))
404else
405 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
406 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
407 $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \
408 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
409 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
410 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
411 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
412 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
413 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_QTLIBS))
414 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES))
415endif
416SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) \
417 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
418 $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)) \
419 $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS))
420
421BLDDIRS += $(foreach d,\
422 additions \
423 rdesktop-vrdp-keymaps \
424 $(SOLARIS_DIR_NAME_64) \
425 $(SOLARIS_DIR_NAME_64)/components \
426 $(SOLARIS_DIR_NAME_64)/nls \
427 $(SOLARIS_DIR_NAME_64)/accessible \
428 $(VBOX_SOL_PYTHON_DIR_64) \
429 $(SOLARIS_DIR_NAME_32) \
430 $(SOLARIS_DIR_NAME_32)/components \
431 $(SOLARIS_DIR_NAME_32)/nls \
432 $(SOLARIS_DIR_NAME_32)/accessible \
433 $(if $(VBOX_WITH_PYTHON),\
434 sdk/ \
435 sdk/installer \
436 sdk/installer/vboxapi \
437 sdk/bindings/xpcom/python/xpcom \
438 sdk/bindings/xpcom/python/xpcom/server \
439 sdk/bindings/xpcom/python/xpcom/client,) \
440,$(SOLARIS_VBOXINST_DIR)/$(d)/)
441
442BLDDIRS += $(foreach d,\
443 amd64 \
444,$(SOLARIS_VBI_DIR)/$(d)/)
445
446BLDDIRS += $(foreach d,\
447 additions \
448 components \
449 accessible \
450 $(SOLARIS_DIR_NAME_64) \
451 $(SOLARIS_DIR_NAME_64)/components \
452 $(SOLARIS_DIR_NAME_64)/accessible \
453 $(VBOX_SOL_PYTHON_DIR_64) \
454 $(SOLARIS_DIR_NAME_32) \
455 $(SOLARIS_DIR_NAME_32)/components \
456 $(SOLARIS_DIR_NAME_32)/nls \
457 $(SOLARIS_DIR_NAME_32)/accessible \
458,$(SOLARIS_DBG_DIR)/$(d))
459
460
461include $(KBUILD_PATH)/subfooter.kmk
462
463#
464# -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
465#
466
467## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
468# containing any obsolete files the way packing is performed here. Consider recursivly
469# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
470# directory tree.
471$(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
472 $(VBOX_VERSION_STAMP) \
473 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
474 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
475 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh \
476 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
477 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
478 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
479 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend \
480 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
481 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \
482 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
483 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
484 $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
485 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
486 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
487 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \
488 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \
489 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
490 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
491 $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
492 VBoxISAExec \
493 $(SOLARIS_ARCH_DEPFILES)
494 $(call MSG_L1,Installing binaries $(SOLARIS_VBOXINST_DIR))
495ifdef VBOX_WITH_COMBINED_PACKAGE
496 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
497else
498 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
499endif
500 $(call MSG_L1,Installing files $(SOLARIS_VBOXINST_DIR))
501 $(QUIET)$(SED) \
502 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
503 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
504 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
505 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
506 --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \
507 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
508 @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now
509 $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),)
510 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR)
511 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),)
512 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR)
513 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,)
514 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE)
515 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright)
516ifdef VBOX_WITH_COMBINED_PACKAGE
517 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS)/solaris.x86/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_32)/libSDL-1.2.so.0,)
518 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS)/solaris.amd64/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_64)/libSDL-1.2.so.0,)
519 @# @todo -XXX- how to get rid of this manual MKDIR ?
520 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)
521 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_32)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/,)
522 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_64)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)/,)
523 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,)
524 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,)
525 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
526 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,)
527 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,)
528 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,)
529 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,)
530 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_32)/VirtualBox.chm,)
531 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_64)/VirtualBox.chm,)
532else
533 $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_ISA)/libSDL-1.2.so.0,)
534 @# @todo -XXX- how to get rid of this manual MKDIR ?
535 ifdef VBOX_WITH_PYTHON
536 $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),)
537 $(QUIET)$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/$(if $(SOL64_PKG),$(VBOX_SOL_PYTHON_DIR_64)/,)
538 endif
539 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,)
540 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
541 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,)
542 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,)
543 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_ISA)/VirtualBox.chm,)
544endif
545 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)
546 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml
547 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,)
548 $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh $(SOLARIS_VBOXINST_DIR)/vnic_setup.sh,)
549 $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh $(SOLARIS_VBOXINST_DIR)/vnic_term.sh,)
550 $(QUIET)$(SED) \
551 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \
552 --output $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp \
553 $(PATH_BIN)/vboxconfig.sh
554 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh
555 $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp
556 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop,)
557 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_USRSHR_PIXMAPS_DIR)/VBox.png
558 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
559 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh $(SOLARIS_BASEINST_DIR)/checkinstall.sh
560 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_BASEINST_DIR)/preremove.sh
561 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_BASEINST_DIR)/makepackage.sh
562 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_VBOXINST_DIR)/autoresponse
563 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse
564 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space
565 @# Warning!! If we add NON-PYTHON dependencies to vbox.depend, remove the VBOX_WITH_PYTHON setting
566 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend $(SOLARIS_BASEINST_DIR)/vbox.depend,)
567 $(QUIET)$(SED) \
568 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
569 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
570 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
571 --output $(SOLARIS_BASEINST_DIR)/ReadMe.txt \
572 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
573 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
574 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
575 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_BASEINST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
576 $(SOLARIS_BASEINST_DIR) \
577 $(PKG_FILENAME) \
578 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
579 $(VBOX_SVN_REV) \
580 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
581 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
582 @# Clean up files emitted as side-effect or result of packing
583 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz
584 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
585 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
586
587
588#
589# 32-bit Main Package
590#
591$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
592 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
593 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
594
595$(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
596 $(SOLARIS_DRIVERINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
597 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
598
599$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
600 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
601 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
602
603$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
604 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
605 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
606
607$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
608 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
609 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
610
611$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
612 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
613 $(INSTALL) -m 0644 $< $@
614
615$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)): \
616 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
617 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
618
619#
620# 64-bit Main Package
621#
622$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
623 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
624 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
625
626$(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
627 $(SOLARIS_DRIVERINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
628 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
629
630$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
631 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
632 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
633
634$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
635 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
636 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
637
638$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
639 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
640 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
641
642$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
643 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
644 $(INSTALL) -m 0644 $< $@
645
646$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)): \
647 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
648 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
649
650
651#
652# Common (32-bit and 64-bit)
653#
654$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)): \
655 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
656 $(INSTALL) -m 0644 $< $@
657
658# Driver configuration files
659$(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)): \
660 $(SOLARIS_DRIVERINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
661 $(INSTALL) -m 0644 $< $@
662
663# Common executables
664$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)): \
665 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
666 $(INSTALL) -m 0755 $< $@
667
668
669
670#
671# Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/)
672# Some symlinks are created manually in the prepackage steps above (eg. VBoxQtconfig)
673# as those binaries do not originate from $(PATH_BIN)
674#
675$(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \
676 $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@)
677 $(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@
678
679
680#
681# -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
682#
683$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
684 $(VBOX_VERSION_STAMP) \
685 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
686 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
687 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
688 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
689 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
690 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
691 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
692 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
693 $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
694 $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
695 $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
696 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
697 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
698 $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
699 $(QUIET)$(SED) \
700 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
701 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
702 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
703 --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
704 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
705 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
706 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
707 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
708 $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
709 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
710
711
712#
713# -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
714#
715$(PATH_BIN)/$(DBG_ARCHIVE): \
716 $(VBOX_VERSION_STAMP) \
717 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
718 $(SOLARIS_DBG_DEPFILES)
719 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
720 $(call MSG_L1,Packing $@)
721 $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_DBG_DEPFILES)
722 $(QUIET)$(CHMOD) 0644 $@
723
724#
725# 32-bit Debug package
726#
727$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
728 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
729 $(SOL_DBG_OBJCOPY) $< $@
730
731$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
732 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
733 $(SOL_DBG_OBJCOPY) $< $@
734
735
736#
737# 64-bit Debug package
738#
739$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
740 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
741 $(SOL_DBG_OBJCOPY) $< $@
742
743$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
744 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
745 $(SOL_DBG_OBJCOPY) $< $@
746
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