VirtualBox

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

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

Installer/solaris: try fix wildcard problem

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