VirtualBox

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

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

Main: remove VBoxSettings library and link settings code into VBoxSVC directly -- now that XML is in IPRT there's no need for it and it's to fragile on multiple platforms.

  • 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 22185 2009-08-11 17:27:59Z 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)/ipsinstall.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 accessible/libqtaccessiblewidgets.so,) \
222 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
223 $(if $(VBOX_WITH_CROGL),\
224 VBoxOGLhostcrutil.so \
225 VBoxOGLhosterrorspu.so \
226 VBoxOGLrenderspu.so \
227 VBoxSharedCrOpenGL.so) \
228 components/VBoxC.so \
229 components/VBoxSVCM.so \
230 components/VBoxXPCOMIPCC.so
231ifdef VBOX_WITH_HARDENING
232SOLARIS_STRIP_BINS += \
233 VBoxNetDHCP.so \
234 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so,) \
235 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
236 $(if $(VBOX_WITH_QTGUI),VirtualBox.so,)
237endif
238
239# Do not remove relocation information of these binaries
240SOLARIS_STRIP_OBJS = \
241 VBoxDD2GC.gc \
242 VBoxDD2R0.r0 \
243 VBoxDDGC.gc \
244 VBoxDDR0.r0 \
245 VMMGC.gc \
246 VMMR0.r0
247
248# Special differences between 32-bit and 64-bit
249SOLARIS_STRIP_BIN_32 = \
250 VBoxREM32.so \
251 VBoxREM64.so
252
253VBOX_SOL_PYTHON_DIR_64 = 64
254
255# Do not strip anything of these files
256SOLARIS_NO_STRIP = \
257 components/VBoxXPCOMBase.xpt \
258 components/VirtualBox_XPCOM.xpt \
259 $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES)) \
260
261SOLARIS_USRBIN_LINKS = \
262 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
263 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
264 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
265 VBoxManage
266
267SOLARIS_COMMON_EXES = \
268 vboxconfig.sh \
269 VBox.sh \
270 ipsinstall.sh \
271 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \
272 $(if $(VBOX_WITH_WEBSERVICES),smf-vboxwebsrv.sh,) \
273
274# Things packed explicitly, not from $(PATH_BIN), track these to clean-up properly
275SOLARIS_EXTRAS = \
276 $(if $(VBOX_OSE),,LICENSE) \
277 VBox.png \
278 autoresponse \
279 $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
280 $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
281 $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
282 $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \
283 virtualbox-webservice.xml \
284 virtualbox-zoneaccess.xml \
285 VBoxQtconfig \
286 VBoxISAExec \
287 vbox.copyright \
288 ReadMe.txt
289
290# These extra Qt libs are purely for running VBoxQtconfig
291ifdef VBOX_WITH_QTGUI
292 SOLARIS_QTLIBS = \
293 libQtXmlVBox.so.4 \
294 libQtSqlVBox.so.4 \
295 libQt3SupportVBox.so.4
296endif
297
298
299ifdef VBOX_WITH_QTGUI
300 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
301 SOLARIS_NO_STRIP += $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
302endif
303
304# Documentation (packed as DOCS as they are arch. neutral)
305ifdef VBOX_WITH_DOCS_PACKING
306 SOLARIS_COMMON = \
307 VirtualBox.chm \
308 UserManual.pdf \
309 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
310endif
311
312# Python XPCOM glue
313ifdef VBOX_WITH_PYTHON
314 SOLARIS_COMMON += \
315 $(foreach f,$(notdir $(wildcard $(PATH_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
316 sdk/bindings/xpcom/python/xpcom/client/__init__.py \
317 sdk/bindings/xpcom/python/xpcom/server/__init__.py \
318 sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
319 sdk/bindings/xpcom/python/xpcom/server/factory.py \
320 sdk/bindings/xpcom/python/xpcom/server/loader.py \
321 sdk/bindings/xpcom/python/xpcom/server/module.py \
322 sdk/bindings/xpcom/python/xpcom/server/policy.py \
323 sdk/installer/vboxapisetup.py \
324 sdk/installer/vboxapi/__init__.py \
325 sdk/installer/vboxapi/VirtualBox_constants.py
326endif
327
328# VRDP
329ifdef VBOX_WITH_VRDP
330 SOLARIS_STRIP_BINS += \
331 VBoxVRDP.so \
332 VRDPAuth.so
333 SOLARIS_COMMON += \
334 rdesktop-vrdp.tar.gz
335 ifdef VBOX_WITH_VRDP_RDESKTOP
336 SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
337 SOLARIS_STRIP_EXES += \
338 rdesktop-vrdp
339 endif
340endif
341
342SOLARIS_STRIP_BINS += \
343 $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
344
345SOLARIS_STRIP_EXES += \
346 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
347 $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
348 $(if $(VBOX_WITH_WEBSERVICES),webtest)
349
350# Guest Additions
351ifdef VBOX_WITH_ADDITIONS_PACKING
352 SOLARIS_COMMON += \
353 additions/VBoxGuestAdditions.iso
354endif
355
356SOLARIS_ARCH_FILES := \
357 $(SOLARIS_STRIP_EXES) \
358 $(SOLARIS_DRIVER_BINS) \
359 $(SOLARIS_DRIVER_CONFS) \
360 $(SOLARIS_USRBIN_LINKS) \
361 $(SOLARIS_STRIP_BINS) \
362 $(SOLARIS_STRIP_OBJS) \
363 $(SOLARIS_NO_STRIP) \
364 $(SOLARIS_EXTRAS) \
365 $(SOLARIS_QTLIBS) \
366 $(SOLARIS_COMMON_EXES) \
367 $(SOLARIS_COMMON)
368
369SOLARIS_DBG_FILES := \
370 $(SOLARIS_STRIP_EXES) \
371 $(SOLARIS_STRIP_BINS) \
372 $(SOLARIS_DRIVER_BINS)
373
374OTHER_CLEAN += \
375 $(addprefix $(SOLARIS_VBOXINST_DIR)/, $(SOLARIS_ARCH_FILES)) \
376 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz \
377 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg \
378 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
379 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_DRIVER_BINS)) \
380 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
381 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
382 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
383 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
384
385ifdef VBOX_WITH_COMBINED_PACKAGE
386 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
387 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
388 $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)) \
389 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
390 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
391 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)) \
392 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
393 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
394 $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)) \
395 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
396 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
397 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)) \
398 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
399 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython*.so)) \
400 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython*.so))
401 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \
402 $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES))
403else
404 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
405 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
406 $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \
407 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
408 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
409 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
410 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
411 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
412 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_QTLIBS))
413 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES))
414endif
415SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) \
416 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
417 $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)) \
418 $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS))
419
420BLDDIRS += $(foreach d,\
421 additions \
422 rdesktop-vrdp-keymaps \
423 $(SOLARIS_DIR_NAME_64) \
424 $(SOLARIS_DIR_NAME_64)/components \
425 $(SOLARIS_DIR_NAME_64)/nls \
426 $(SOLARIS_DIR_NAME_64)/accessible \
427 $(VBOX_SOL_PYTHON_DIR_64) \
428 $(SOLARIS_DIR_NAME_32) \
429 $(SOLARIS_DIR_NAME_32)/components \
430 $(SOLARIS_DIR_NAME_32)/nls \
431 $(SOLARIS_DIR_NAME_32)/accessible \
432 $(if $(VBOX_WITH_PYTHON),\
433 sdk/ \
434 sdk/installer \
435 sdk/installer/vboxapi \
436 sdk/bindings/xpcom/python/xpcom \
437 sdk/bindings/xpcom/python/xpcom/server \
438 sdk/bindings/xpcom/python/xpcom/client,) \
439,$(SOLARIS_VBOXINST_DIR)/$(d)/)
440
441BLDDIRS += $(foreach d,\
442 amd64 \
443,$(SOLARIS_VBI_DIR)/$(d)/)
444
445BLDDIRS += $(foreach d,\
446 additions \
447 components \
448 accessible \
449 $(SOLARIS_DIR_NAME_64) \
450 $(SOLARIS_DIR_NAME_64)/components \
451 $(SOLARIS_DIR_NAME_64)/accessible \
452 $(VBOX_SOL_PYTHON_DIR_64) \
453 $(SOLARIS_DIR_NAME_32) \
454 $(SOLARIS_DIR_NAME_32)/components \
455 $(SOLARIS_DIR_NAME_32)/nls \
456 $(SOLARIS_DIR_NAME_32)/accessible \
457,$(SOLARIS_DBG_DIR)/$(d))
458
459
460include $(KBUILD_PATH)/subfooter.kmk
461
462#
463# -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
464#
465
466## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
467# containing any obsolete files the way packing is performed here. Consider recursivly
468# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
469# directory tree.
470$(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
471 $(VBOX_VERSION_STAMP) \
472 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
473 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
474 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh \
475 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
476 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
477 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
478 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend \
479 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
480 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \
481 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
482 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
483 $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
484 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
485 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
486 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \
487 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \
488 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
489 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
490 $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
491 VBoxISAExec \
492 $(SOLARIS_ARCH_DEPFILES)
493 $(call MSG_L1,Installing binaries $(SOLARIS_VBOXINST_DIR))
494ifdef VBOX_WITH_COMBINED_PACKAGE
495 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
496else
497 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
498endif
499 $(call MSG_L1,Installing files $(SOLARIS_VBOXINST_DIR))
500 $(QUIET)$(SED) \
501 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
502 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
503 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
504 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
505 --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \
506 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
507 @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now
508 $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),)
509 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR)
510 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),)
511 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR)
512 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,)
513 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE)
514 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright)
515ifdef VBOX_WITH_COMBINED_PACKAGE
516 $(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,)
517 $(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,)
518 @# @todo -XXX- how to get rid of this manual MKDIR ?
519 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)
520 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_32)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/,)
521 $(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)/,)
522 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,)
523 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,)
524 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
525 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,)
526 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,)
527 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,)
528 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,)
529 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_32)/VirtualBox.chm,)
530 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_64)/VirtualBox.chm,)
531else
532 $(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,)
533 @# @todo -XXX- how to get rid of this manual MKDIR ?
534 ifdef VBOX_WITH_PYTHON
535 $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),)
536 $(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)/,)
537 endif
538 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,)
539 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
540 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,)
541 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,)
542 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_ISA)/VirtualBox.chm,)
543endif
544 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)
545 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml
546 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,)
547 $(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,)
548 $(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,)
549 $(QUIET)$(SED) \
550 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \
551 --output $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp \
552 $(PATH_BIN)/vboxconfig.sh
553 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh
554 $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp
555 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop,)
556 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_USRSHR_PIXMAPS_DIR)/VBox.png
557 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
558 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh $(SOLARIS_BASEINST_DIR)/checkinstall.sh
559 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_BASEINST_DIR)/preremove.sh
560 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_BASEINST_DIR)/makepackage.sh
561 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_VBOXINST_DIR)/autoresponse
562 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse
563 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space
564 @# Warning!! If we add NON-PYTHON dependencies to vbox.depend, remove the VBOX_WITH_PYTHON setting
565 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend $(SOLARIS_BASEINST_DIR)/vbox.depend,)
566 $(QUIET)$(SED) \
567 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
568 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
569 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
570 --output $(SOLARIS_BASEINST_DIR)/ReadMe.txt \
571 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
572 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
573 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
574 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_BASEINST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
575 $(SOLARIS_BASEINST_DIR) \
576 $(PKG_FILENAME) \
577 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
578 $(VBOX_SVN_REV) \
579 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
580 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
581 @# Clean up files emitted as side-effect or result of packing
582 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz
583 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
584 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
585
586
587#
588# 32-bit Main Package
589#
590$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
591 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
592 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
593
594$(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
595 $(SOLARIS_DRIVERINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
596 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
597
598$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
599 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
600 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
601
602$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
603 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
604 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
605
606$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
607 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
608 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
609
610$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
611 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
612 $(INSTALL) -m 0644 $< $@
613
614$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)): \
615 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
616 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
617
618#
619# 64-bit Main Package
620#
621$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
622 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
623 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
624
625$(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
626 $(SOLARIS_DRIVERINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
627 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
628
629$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
630 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
631 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
632
633$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
634 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
635 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
636
637$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
638 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
639 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
640
641$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
642 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
643 $(INSTALL) -m 0644 $< $@
644
645$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)): \
646 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
647 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
648
649
650#
651# Common (32-bit and 64-bit)
652#
653$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)): \
654 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
655 $(INSTALL) -m 0644 $< $@
656
657# Driver configuration files
658$(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)): \
659 $(SOLARIS_DRIVERINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
660 $(INSTALL) -m 0644 $< $@
661
662# Common executables
663$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)): \
664 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
665 $(INSTALL) -m 0755 $< $@
666
667
668
669#
670# Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/)
671# Some symlinks are created manually in the prepackage steps above (eg. VBoxQtconfig)
672# as those binaries do not originate from $(PATH_BIN)
673#
674$(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \
675 $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@)
676 $(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@
677
678
679#
680# -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
681#
682$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
683 $(VBOX_VERSION_STAMP) \
684 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
685 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
686 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
687 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
688 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
689 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
690 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
691 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
692 $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
693 $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
694 $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
695 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
696 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
697 $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
698 $(QUIET)$(SED) \
699 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
700 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
701 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
702 --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
703 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
704 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
705 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
706 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
707 $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
708 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
709
710
711#
712# -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
713#
714$(PATH_BIN)/$(DBG_ARCHIVE): \
715 $(VBOX_VERSION_STAMP) \
716 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
717 $(SOLARIS_DBG_DEPFILES)
718 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
719 $(call MSG_L1,Packing $@)
720 $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_DBG_DEPFILES)
721 $(QUIET)$(CHMOD) 0644 $@
722
723#
724# 32-bit Debug package
725#
726$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
727 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
728 $(SOL_DBG_OBJCOPY) $< $@
729
730$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
731 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
732 $(SOL_DBG_OBJCOPY) $< $@
733
734
735#
736# 64-bit Debug package
737#
738$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
739 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
740 $(SOL_DBG_OBJCOPY) $< $@
741
742$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
743 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
744 $(SOL_DBG_OBJCOPY) $< $@
745
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