VirtualBox

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

Last change on this file since 16596 was 16174, checked in by vboxsync, 16 years ago

renamed VirtualBox4 to VirtualBox

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