VirtualBox

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

Last change on this file since 16080 was 15951, checked in by vboxsync, 16 years ago

Solaris/Installer: fix for #3381 (combined package).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 23.6 KB
Line 
1# $Id: Makefile.kmk 15951 2009-01-14 18:29:50Z 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_QT4GUI),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_QT4GUI),VBoxKeyboard.so,) \
142 $(if $(VBOX_WITH_QT4GUI),libVBoxQtCore.so.4,) \
143 $(if $(VBOX_WITH_QT4GUI),libVBoxQtGui.so.4,) \
144 $(if $(VBOX_WITH_QT4GUI),accessible/libqtaccessiblewidgets.so,) \
145 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
146 $(if $(VBOX_WITH_CROGL),\
147 VBoxOGLhostcrutil.so \
148 VBoxOGLhosterrorspu.so \
149 VBoxOGLrenderspu.so \
150 VBoxSharedCrOpenGL.so) \
151 VBoxSettings.so \
152 components/VBoxC.so \
153 components/VBoxSVCM.so \
154 components/VBoxXPCOMIPCC.so
155ifdef VBOX_WITH_HARDENING
156SOLARIS_STRIP_BINS += \
157 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so) \
158 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
159 $(if $(VBOX_WITH_QT4GUI),VirtualBox.so,)
160endif
161
162# Do not remove relocation information of these binaries
163SOLARIS_STRIP_OBJS = \
164 VBoxDD2GC.gc \
165 VBoxDD2R0.r0 \
166 VBoxDDGC.gc \
167 VBoxDDR0.r0 \
168 VMMGC.gc \
169 VMMR0.r0
170
171# Special differences between 32-bit and 64-bit
172SOLARIS_STRIP_BIN_32 = \
173 VBoxREM32.so \
174 VBoxREM64.so
175
176ifndef VBOX_WITH_NEW_RECOMPILER
177 SOLARIS_STRIP_OBJ_64 = VBoxREM2.rel
178endif
179
180VBOX_SOL_PYTHON_DIR_64 = 64
181
182# Do not strip anything of these files
183SOLARIS_NO_STRIP = \
184 components/VBoxXPCOMBase.xpt \
185 components/VirtualBox_XPCOM.xpt \
186 $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QT4GUI)),$(VBOX_LICENSE_FILES))
187
188# Things packed explicitly, not from $(PATH_BIN), track these to clean-up properly
189SOLARIS_EXTRAS = \
190 $(if $(VBOX_OSE),,LICENSE) \
191 VBox.png \
192 autoresponse \
193 vboxdrv.conf \
194 $(if $(VBOX_WITH_NETFLT),vboxflt.conf) \
195 vboxdrv.sh \
196 VBox.sh \
197 $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
198 $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
199 $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
200 $(if $(VBOX_WITH_QT4GUI),virtualbox.desktop,) \
201 virtualbox-webservice.xml \
202 virtualbox-zoneaccess.xml \
203 smf-vboxwebsrv.sh \
204 VBoxQtconfig \
205 VBoxISAExec \
206 vbox.copyright \
207 ReadMe.txt
208
209# These extra Qt libs are purely for running VBoxQtconfig
210ifdef VBOX_WITH_QT4GUI
211 SOLARIS_QTLIBS = libVBoxQtNetwork.so.4 \
212 libVBoxQtXml.so.4 \
213 libVBoxQtSql.so.4 \
214 libVBoxQt3Support.so.4
215endif
216
217
218ifdef VBOX_WITH_QT4GUI
219 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox4/nls/ApprovedLanguages.kmk
220 SOLARIS_NO_STRIP += $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
221endif
222
223# Documentation (packed as DOCS as they are arch. neutral)
224ifdef VBOX_WITH_DOCS_PACKING
225 SOLARIS_COMMON = \
226 VirtualBox.chm \
227 UserManual.pdf \
228 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
229endif
230
231# VRDP
232ifdef VBOX_WITH_VRDP
233 SOLARIS_STRIP_BINS += \
234 VBoxVRDP.so \
235 VRDPAuth.so
236 SOLARIS_COMMON += \
237 rdesktop-vrdp.tar.gz
238 ifdef VBOX_WITH_VRDP_RDESKTOP
239 SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
240 SOLARIS_STRIP_EXES += \
241 rdesktop-vrdp
242 endif
243endif
244
245SOLARIS_STRIP_BINS += \
246 $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
247
248SOLARIS_STRIP_EXES += \
249 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
250 $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
251 $(if $(VBOX_WITH_WEBSERVICES),webtest)
252
253# Guest Additions
254ifdef VBOX_WITH_ADDITIONS_PACKING
255 SOLARIS_COMMON += \
256 additions/VBoxGuestAdditions.iso
257endif
258
259SOLARIS_ARCH_FILES := \
260 $(SOLARIS_STRIP_EXES) \
261 $(SOLARIS_STRIP_BINS) \
262 $(SOLARIS_STRIP_OBJS) \
263 $(SOLARIS_NO_STRIP) \
264 $(SOLARIS_EXTRAS) \
265 $(SOLARIS_QTLIBS) \
266 $(SOLARIS_COMMON)
267
268OTHER_CLEAN += \
269 $(addprefix $(SOLARIS_INST_DIR)/, $(SOLARIS_ARCH_FILES)) \
270 $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz \
271 $(SOLARIS_INST_DIR)/$(PKG_FILENAME).pkg \
272 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
273 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
274 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
275 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
276 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
277
278ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE
279 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
280 $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
281 $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
282 $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
283 $(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_QTLIBS)) \
284 $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
285 $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
286 $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
287 $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
288 $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_QTLIBS)) \
289 $(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
290 $(if $(VBOX_WITH_NEW_RECOMPILER),,$(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64))) \
291 $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython.so) \
292 $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython.so)
293else
294 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
295 $(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
296 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
297 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
298 $(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
299 $(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
300 $(addprefix $(SOLARIS_INST_DIR_ISA)/,$(SOLARIS_QTLIBS))
301endif
302SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_INST_DIR)/,$(SOLARIS_COMMON))
303
304BLDDIRS += $(foreach d,\
305 additions \
306 rdesktop-vrdp-keymaps \
307 $(SOLARIS_DIR_NAME_64) \
308 $(SOLARIS_DIR_NAME_64)/components \
309 $(SOLARIS_DIR_NAME_64)/nls \
310 $(SOLARIS_DIR_NAME_64)/accessible \
311 $(SOLARIS_DIR_NAME_64)/$(VBOX_SOL_PYTHON_DIR_64) \
312 $(SOLARIS_DIR_NAME_32) \
313 $(SOLARIS_DIR_NAME_32)/components \
314 $(SOLARIS_DIR_NAME_32)/nls \
315 $(SOLARIS_DIR_NAME_32)/accessible \
316,$(SOLARIS_INST_DIR)/$(d)/)
317
318BLDDIRS += $(foreach d,\
319 amd64 \
320,$(SOLARIS_VBI_DIR)/$(d)/)
321
322BLDDIRS += $(foreach d,\
323 additions \
324 components \
325 accessible \
326,$(SOLARIS_DBG_DIR)/$(d)/)
327
328
329include $(KBUILD_PATH)/subfooter.kmk
330
331#
332# -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
333#
334
335## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
336# containing any obsolete files the way packing is performed here. Consider recursivly
337# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
338# directory tree.
339$(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
340 $(VBOX_VERSION_STAMP) \
341 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
342 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
343 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
344 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
345 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
346 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
347 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \
348 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop \
349 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
350 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
351 $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
352 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
353 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
354 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QT4GUI)),$(VBOX_LICENSE_BINS),) \
355 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \
356 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf) \
357 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
358 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
359 $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
360 VBoxISAExec \
361 $(SOLARIS_ARCH_DEPFILES)
362 $(call MSG_L1,Installing binaries $(SOLARIS_INST_DIR))
363ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE
364 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_INST_DIR)/additions/)
365else
366 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_INST_DIR)/additions/)
367endif
368 $(call MSG_L1,Installing files $(SOLARIS_INST_DIR))
369 $(QUIET)$(SED) \
370 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
371 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
372 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
373 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
374 --output $(SOLARIS_INST_DIR)/vbox.pkginfo \
375 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
376 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $(SOLARIS_INST_DIR)/vboxdrv.conf
377 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf $(SOLARIS_INST_DIR)/vboxflt.conf
378 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/LICENSE)
379 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/vbox.copyright)
380ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE
381 $(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,)
382 $(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,)
383 @# @todo -XXX- how to get rid of this manual MKDIR ?
384 $(QUIET)$(MKDIR) -p $(SOLARIS_INST_DIR_64)/$(VBOX_SOL_PYTHON_DIR_64)
385 $(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,)
386 $(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,)
387 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0755 $(PATH_DEVTOOLS)/solaris.x86/qt/v4.3.3-r1/bin/qtconfig $(SOLARIS_INST_DIR_32)/VBoxQtconfig,)
388 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0755 $(PATH_DEVTOOLS)/solaris.amd64/qt/v4.3.3-r1/bin/qtconfig $(SOLARIS_INST_DIR_64)/VBoxQtconfig,)
389 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_INST_DIR)/VBoxISAExec
390else
391 $(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,)
392 @# @todo -XXX- how to get rid of this manual MKDIR ?
393 ifdef VBOX_WITH_PYTHON
394 $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_INST_DIR_64)/$(VBOX_SOL_PYTHON_DIR_64),)
395 $(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
396 endif
397 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0755 $(PATH_DEVTOOLS_TRG)/qt/v4.3.3-r1/bin/qtconfig $(SOLARIS_INST_DIR_ISA)/VBoxQtconfig,)
398 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_INST_DIR)/VBoxISAExec
399endif
400 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_INST_DIR)/virtualbox-zoneaccess.xml
401 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_INST_DIR)/virtualbox-webservice.xml,)
402 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/smf-vboxwebsrv.sh $(SOLARIS_INST_DIR)/smf-vboxwebsrv.sh,)
403 $(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,)
404 $(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,)
405 $(QUIET)$(SED) \
406 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,))/" \
407 --output $(SOLARIS_INST_DIR)/vboxdrv.sh.tmp \
408 $(VBOX_PATH_SOL_INST_SRC)/vboxdrv.sh
409 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_INST_DIR)/vboxdrv.sh.tmp $(SOLARIS_INST_DIR)/vboxdrv.sh
410 $(QUIET)$(RM) -f $(SOLARIS_INST_DIR)/vboxdrv.sh.tmp
411 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh $(SOLARIS_INST_DIR)/VBox.sh
412 $(QUIET)$(if $(VBOX_WITH_QT4GUI),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.desktop $(SOLARIS_INST_DIR)/virtualbox.desktop,)
413 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_INST_DIR)/VBox.png
414 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_INST_DIR)/postinstall.sh
415 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_INST_DIR)/preremove.sh
416 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_INST_DIR)/makepackage.sh
417 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_INST_DIR)/autoresponse
418 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_INST_DIR)/vbox.space
419 $(QUIET)$(SED) \
420 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
421 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
422 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
423 --output $(SOLARIS_INST_DIR)/ReadMe.txt \
424 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
425 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_INST_DIR)/$(VBIPKG_FILENAME).pkg,)
426 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
427 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_INST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
428 $(SOLARIS_INST_DIR) \
429 $(PKG_FILENAME) \
430 $(if $(VBOX_WITH_SOLARIS_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
431 $(VBOX_SVN_REV) \
432 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
433 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
434 @# Clean up files emitted as side-effect or result of packing
435 $(QUIET)$(RM) -f $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz
436 $(QUIET)$(RM) -f $(SOLARIS_INST_DIR)/$(PKG_FILENAME).pkg
437 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_INST_DIR)/$(VBIPKG_FILENAME).pkg,)
438
439
440#
441# 32-bit
442#
443$(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
444 $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
445 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
446
447$(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
448 $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
449 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
450
451$(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
452 $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
453 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
454
455$(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
456 $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
457 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
458
459$(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
460 $(SOLARIS_INST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
461 $(INSTALL) -m 0644 $< $@
462
463$(addprefix $(SOLARIS_INST_DIR_32)/,$(SOLARIS_QTLIBS)): \
464 $(SOLARIS_INST_DIR_32)/% : $(PATH_DEVTOOLS)/solaris.x86/qt/v4.3.3-r1/lib/% | $$(dir $$@)
465 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
466
467#
468# 64-bit
469#
470$(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
471 $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
472 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
473
474$(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
475 $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
476 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
477
478$(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
479 $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
480 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
481
482$(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
483 $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
484 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
485
486$(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
487 $(SOLARIS_INST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
488 $(INSTALL) -m 0644 $< $@
489
490$(addprefix $(SOLARIS_INST_DIR_64)/,$(SOLARIS_QTLIBS)): \
491 $(SOLARIS_INST_DIR_64)/% : $(PATH_DEVTOOLS)/solaris.amd64/qt/v4.3.3-r1/lib/% | $$(dir $$@)
492 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
493
494
495#
496# Common (32-bit and 64-bit)
497#
498$(addprefix $(SOLARIS_INST_DIR)/,$(SOLARIS_COMMON)): \
499 $(SOLARIS_INST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
500 $(INSTALL) -m 0644 $< $@
501
502
503#
504# -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
505#
506$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
507 $(VBOX_VERSION_STAMP) \
508 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
509 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
510 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
511 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
512 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
513 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
514 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
515 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
516 $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
517 $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
518 $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
519 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
520 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
521 $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
522 $(QUIET)$(SED) \
523 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
524 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
525 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
526 --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
527 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
528 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
529 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
530 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
531 $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
532 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
533
534
535#
536# -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
537#
538$(PATH_BIN)/$(DBG_ARCHIVE): \
539 $(VBOX_VERSION_STAMP) \
540 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
541 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
542 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES))
543 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
544 $(call MSG_L1,Packing $@)
545 $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)
546 $(QUIET)$(CHMOD) 0644 $@
547
548$(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
549 $(SOLARIS_DBG_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
550 $(QUIET)$(SOL_DBG_OBJCOPY) $< $@
551
552
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