VirtualBox

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

Last change on this file since 20554 was 20505, checked in by vboxsync, 16 years ago

solaris/Makefile.kmk: Put things in the right place. Don't use foreach if addprefix will do.

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