1 | # $Id: Makefile.kmk 10440 2008-07-09 17:05:35Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # 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 |
|
---|
22 | DEPTH = ../../../..
|
---|
23 | include $(KBUILD_PATH)/header.kmk
|
---|
24 |
|
---|
25 | ifneq ($(KBUILD_HOST),solaris)
|
---|
26 | $(error "The Solaris installer can only be built on Solaris!") # yeah, right.
|
---|
27 | endif
|
---|
28 |
|
---|
29 | # Globals
|
---|
30 | SOLARIS_INST_DIR := $(PATH_TARGET)/install
|
---|
31 | SOLARIS_DBG_DIR := $(PATH_TARGET)/installdbg
|
---|
32 | SOLARIS_VBI_DIR := $(PATH_TARGET)/installvbi
|
---|
33 | 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.
|
---|
34 | SOL_OBJCOPY := /usr/sfw/bin/gobjcopy --strip-unneeded -R .comment
|
---|
35 |
|
---|
36 | # Base package
|
---|
37 | PKGINFO_ARCH = $(shell uname -p)
|
---|
38 | PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M)
|
---|
39 | PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV)
|
---|
40 |
|
---|
41 | # Debug package
|
---|
42 | DBG_ARCHIVE = VirtualBoxDebug.tar.bz2
|
---|
43 |
|
---|
44 | # Kernel interface (vbi) package
|
---|
45 | VBIPKG_FILENAME = VirtualBoxKern-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
|
---|
46 |
|
---|
47 | # Targets
|
---|
48 | INSTALLS = solaris-doc
|
---|
49 | PACKING = $(PATH_BIN)/$(PKG_FILENAME).tar.gz $(PATH_BIN)/$(DBG_ARCHIVE)
|
---|
50 | OTHER_CLEAN = $(addprefix $(SOLARIS_INST_DIR)/,\
|
---|
51 | vbox.pkginfo vbox.copyright vbox.space vbox.pkgresponse \
|
---|
52 | makepackage.sh prototype postinstall.sh preremove.sh etc/devlink.tab )
|
---|
53 |
|
---|
54 |
|
---|
55 | #
|
---|
56 | # Solaris installs.
|
---|
57 | #
|
---|
58 | solaris-doc_INST = bin/
|
---|
59 | solaris-doc_MODE = a+r,u+w
|
---|
60 | solaris-doc_SOURCES = \
|
---|
61 | $(if $(VBOX_OSE),,$(PATH_ROOT)/doc/License.txt=>LICENSE) \
|
---|
62 | $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_64px.png=>VBox.png
|
---|
63 |
|
---|
64 | #
|
---|
65 | # Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that
|
---|
66 | # go into the temporary install folder $(SOLARIS_INST_DIR) should be part of $(SOLARIS_ARCH_FILES).
|
---|
67 | # For the files produced during packing they should be cleaned up promptly when the work is done.
|
---|
68 |
|
---|
69 | # Strip these binaries
|
---|
70 | SOLARIS_STRIP_BINS = \
|
---|
71 | vboxdrv \
|
---|
72 | VBoxBFE \
|
---|
73 | VBoxDD.so \
|
---|
74 | VBoxDD2.so \
|
---|
75 | VBoxManage \
|
---|
76 | VBoxREM.so \
|
---|
77 | VBoxRT.so \
|
---|
78 | $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
|
---|
79 | VBoxSVC \
|
---|
80 | VBoxDDU.so \
|
---|
81 | VBoxVMM.so \
|
---|
82 | VBoxXPCOM.so \
|
---|
83 | VBoxXPCOMIPCD \
|
---|
84 | $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
|
---|
85 | $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
|
---|
86 | $(if $(VBOX_WITH_INFO_SVC),VBoxSharedInfoSvc.so,) \
|
---|
87 | $(if $(VBOX_WITH_QTGUI),VBoxKeyboard3.so,) \
|
---|
88 | $(if $(VBOX_WITH_QTGUI),VirtualBox3,) \
|
---|
89 | $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
|
---|
90 | VBoxSettings.so \
|
---|
91 | components/VBoxC.so \
|
---|
92 | components/VBoxSVCM.so \
|
---|
93 | components/VBoxXPCOMIPCC.so
|
---|
94 |
|
---|
95 | # Do not remove relocation information of these binaries
|
---|
96 | SOLARIS_STRIP_OBJS = \
|
---|
97 | VBoxDD2GC.gc \
|
---|
98 | VBoxDD2R0.r0 \
|
---|
99 | VBoxDDGC.gc \
|
---|
100 | VBoxDDR0.r0 \
|
---|
101 | VMMGC.gc \
|
---|
102 | VMMR0.r0
|
---|
103 |
|
---|
104 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
105 | SOL64_PKG = 1
|
---|
106 | SOLARIS_STRIP_OBJS += \
|
---|
107 | VBoxREM2.rel
|
---|
108 | endif
|
---|
109 |
|
---|
110 | # Do not strip anything of these files
|
---|
111 | SOLARIS_NO_STRIP = \
|
---|
112 | components/VBoxXPCOMBase.xpt \
|
---|
113 | components/VirtualBox_XPCOM.xpt
|
---|
114 |
|
---|
115 | # Things packed explicitly, not from $(PATH_BIN), track these to clean-up properly
|
---|
116 | SOLARIS_EXTRAS = \
|
---|
117 | $(if $(VBOX_OSE),,LICENSE) \
|
---|
118 | $(if $(and $(not $(VBOX_OSE)),$(VBOX_WITH_QTGUI)),License-$(VBOX_LICENSE_VER).html) \
|
---|
119 | $(if $(VBOX_WITH_QTGUI),qtgcc/lib/libqt-mt.so.3,) \
|
---|
120 | $(if $(VBOX_WITH_QTGUI),qtgcc/bin/qtconfig,) \
|
---|
121 | $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \
|
---|
122 | VBox.png \
|
---|
123 | autoresponse \
|
---|
124 | vboxdrv.conf \
|
---|
125 | vboxdrv.sh \
|
---|
126 | VBox.sh \
|
---|
127 | vnic_setup.sh \
|
---|
128 | vnic_term.sh \
|
---|
129 | vbox.copyright \
|
---|
130 | ReadMe.txt
|
---|
131 |
|
---|
132 | SOLARIS_NLS = \
|
---|
133 | $(if $(VBOX_WITH_QTGUI),$(foreach f,\
|
---|
134 | $(shell $(CAT_EXT) \
|
---|
135 | $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.txt),\
|
---|
136 | nls3/VirtualBox_$(f).qm nls3/qt_$(f).qm),)
|
---|
137 |
|
---|
138 | SOLARIS_SDK = \
|
---|
139 | $(foreach f, $(shell $(CAT_EXT) $(if $(VBOX_OSE),sdkfiles.ose,sdkfiles)), $(f))
|
---|
140 |
|
---|
141 | ifdef VBOX_WITH_DOCS
|
---|
142 | ifndef $(VBOX_OSE)
|
---|
143 | SOLARIS_NO_STRIP += \
|
---|
144 | UserManual.pdf
|
---|
145 | endif
|
---|
146 | endif
|
---|
147 |
|
---|
148 | ifdef VBOX_WITH_VRDP
|
---|
149 | SOLARIS_STRIP_BINS += \
|
---|
150 | VBoxVRDP.so
|
---|
151 |
|
---|
152 | #
|
---|
153 | # @todo This later...
|
---|
154 | # SOLARIS_NO_STRIP += \
|
---|
155 | # rdesktop-vrdp.tar.gz
|
---|
156 | endif
|
---|
157 |
|
---|
158 | ifdef VBOX_WITH_HEADLESS
|
---|
159 | SOLARIS_STRIP_BINS += \
|
---|
160 | VBoxHeadless
|
---|
161 | endif
|
---|
162 | ifdef VBOX_WITH_WEBSERVICES
|
---|
163 | SOLARIS_STRIP_BINS += \
|
---|
164 | vboxwebsrv \
|
---|
165 | webtest
|
---|
166 | endif
|
---|
167 |
|
---|
168 | # Guest Additions
|
---|
169 | SOLARIS_NO_STRIP += \
|
---|
170 | $(if $(VBOX_OSE),,additions/VBoxGuestAdditions.iso)
|
---|
171 |
|
---|
172 | SOLARIS_ARCH_FILES := \
|
---|
173 | $(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_OBJS) $(SOLARIS_NO_STRIP) $(SOLARIS_NLS) $(SOLARIS_SDK) $(SOLARIS_EXTRAS)
|
---|
174 |
|
---|
175 | OTHER_CLEAN += \
|
---|
176 | $(addprefix $(SOLARIS_INST_DIR)/, $(SOLARIS_ARCH_FILES)) \
|
---|
177 | $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz \
|
---|
178 | $(SOLARIS_INST_DIR)/$(PKG_FILENAME).pkg \
|
---|
179 | $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
|
---|
180 | $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
|
---|
181 | $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
|
---|
182 | $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
|
---|
183 |
|
---|
184 | include $(KBUILD_PATH)/footer.kmk
|
---|
185 |
|
---|
186 | ## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
|
---|
187 | # containing any obsolete files the way packing is performed here. Consider recursivly
|
---|
188 | # invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
|
---|
189 | # directory tree.
|
---|
190 | $(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
|
---|
191 | $(VBOX_VERSION_STAMP) \
|
---|
192 | makepackage.sh \
|
---|
193 | postinstall.sh \
|
---|
194 | preremove.sh \
|
---|
195 | vbox.pkginfo \
|
---|
196 | vbox.space \
|
---|
197 | vbox.pkgresponse \
|
---|
198 | vboxdevlink.sed \
|
---|
199 | VBox.sh \
|
---|
200 | virtualbox.desktop \
|
---|
201 | $(if $(VBOX_OSE),sdkfiles.ose,sdkfiles) \
|
---|
202 | $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
|
---|
203 | Makefile.kmk \
|
---|
204 | $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
|
---|
205 | $(if $(VBOX_OSE),,$(PATH_ROOT)/doc/License.txt) \
|
---|
206 | $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
|
---|
207 | $(if $(and $(not $(VBOX_OSE)),$(VBOX_WITH_QTGUI)),$(PATH_BIN)/License-$(VBOX_LICENSE_VER).html) \
|
---|
208 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \
|
---|
209 | $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh \
|
---|
210 | $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh \
|
---|
211 | $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS),$(SOLARIS_ARCH_FILES))) \
|
---|
212 | $(addprefix $(SOLARIS_INST_DIR)/,$(SOLARIS_SDK))
|
---|
213 | $(call MSG_L1,Installing binaries $(SOLARIS_INST_DIR))
|
---|
214 | $(QUIET)$(RM) -f $(addprefix $(SOLARIS_INST_DIR)/,$(filter-out $(SOLARIS_SDK),$(SOLARIS_ARCH_FILES)))
|
---|
215 | $(QUIET)$(MKDIR) -p $(SOLARIS_INST_DIR)/additions
|
---|
216 | $(QUIET)$(MKDIR) -p $(SOLARIS_INST_DIR)/components
|
---|
217 | $(QUIET)$(MKDIR) -p $(SOLARIS_INST_DIR)/etc
|
---|
218 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_INST_DIR)/nls3,)
|
---|
219 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_INST_DIR)/sdk,)
|
---|
220 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_INST_DIR)/qtgcc/lib,)
|
---|
221 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_INST_DIR)/qtgcc/bin,)
|
---|
222 | $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_INST_DIR)/additions/VBoxGuestAdditions.iso)
|
---|
223 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/vboxdrv $(SOLARIS_INST_DIR)/vboxdrv
|
---|
224 | $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/VBoxBFE $(SOLARIS_INST_DIR)/VBoxBFE
|
---|
225 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxDD.so $(SOLARIS_INST_DIR)/VBoxDD.so
|
---|
226 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxDD2.so $(SOLARIS_INST_DIR)/VBoxDD2.so
|
---|
227 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxDDU.so $(SOLARIS_INST_DIR)/VBoxDDU.so
|
---|
228 | $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/VBoxManage $(SOLARIS_INST_DIR)/VBoxManage
|
---|
229 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxREM.so $(SOLARIS_INST_DIR)/VBoxREM.so
|
---|
230 | $(QUIET)$(if $(SOL64_PKG),$(INSTALL) -m 0755 $(PATH_BIN)/VBoxREM2.rel $(SOLARIS_INST_DIR)/VBoxREM2.rel,)
|
---|
231 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxVMM.so $(SOLARIS_INST_DIR)/VBoxVMM.so
|
---|
232 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxXPCOM.so $(SOLARIS_INST_DIR)/VBoxXPCOM.so
|
---|
233 | $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/VBoxXPCOMIPCD $(SOLARIS_INST_DIR)/VBoxXPCOMIPCD
|
---|
234 | $(QUIET)$(INSTALL) -m 0755 $(PATH_BIN)/VBoxSVC $(SOLARIS_INST_DIR)/VBoxSVC
|
---|
235 | $(QUIET)$(if $(VBOX_WITH_SHARED_FOLDERS),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxSharedFolders.so $(SOLARIS_INST_DIR)/VBoxSharedFolders.so,)
|
---|
236 | $(QUIET)$(if $(VBOX_WITH_SHARED_CLIPBOARD),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxSharedClipboard.so $(SOLARIS_INST_DIR)/VBoxSharedClipboard.so,)
|
---|
237 | $(QUIET)$(if $(VBOX_WITH_INFO_SVC),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxSharedInfoSvc.so $(SOLARIS_INST_DIR)/VBoxSharedInfoSvc.so,)
|
---|
238 | $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0755 $(PATH_BIN)/VBoxSDL $(SOLARIS_INST_DIR)/VBoxSDL,)
|
---|
239 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxRT.so $(SOLARIS_INST_DIR)/VBoxRT.so
|
---|
240 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxKeyboard3.so $(SOLARIS_INST_DIR)/VBoxKeyboard3.so,)
|
---|
241 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(PATH_BIN)/VirtualBox3 $(SOLARIS_INST_DIR)/VirtualBox3,)
|
---|
242 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/qt/v3.3.8/lib/libqt-mt.so.3 $(SOLARIS_INST_DIR)/qtgcc/lib/libqt-mt.so.3,)
|
---|
243 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0755 $(PATH_DEVTOOLS_TRG)/qt/v3.3.8/bin/qtconfig $(SOLARIS_INST_DIR)/qtgcc/bin/qtconfig,)
|
---|
244 | $(QUIET)$(if $(VBOX_WITH_DEBUGGER_GUI),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxDbg.so $(SOLARIS_INST_DIR)/VBoxDbg.so,)
|
---|
245 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBoxSettings.so $(SOLARIS_INST_DIR)/VBoxSettings.so
|
---|
246 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/components/VBoxC.so $(SOLARIS_INST_DIR)/components/VBoxC.so
|
---|
247 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/components/VBoxSVCM.so $(SOLARIS_INST_DIR)/components/VBoxSVCM.so
|
---|
248 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/components/VBoxXPCOMIPCC.so $(SOLARIS_INST_DIR)/components/VBoxXPCOMIPCC.so
|
---|
249 | $(QUIET)$(if $(VBOX_WITH_VRDP),$(INSTALL) -m 0644 $(PATH_BIN)/VBoxVRDP.so $(SOLARIS_INST_DIR)/VBoxVRDP.so,)
|
---|
250 | $(QUIET)$(if $(VBOX_WITH_HEADLESS),$(INSTALL) -m 0755 $(PATH_BIN)/VBoxHeadless $(SOLARIS_INST_DIR)/VBoxHeadless,)
|
---|
251 | $(call MSG_L1,Stripping binaries $(SOLARIS_INST_DIR))
|
---|
252 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/vboxdrv,)
|
---|
253 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxBFE,)
|
---|
254 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxDD2.so,)
|
---|
255 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxDD2.so,)
|
---|
256 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxDDU.so,)
|
---|
257 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxManage,)
|
---|
258 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxREM.so,)
|
---|
259 | $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(SOL64_PKG),strip $(SOLARIS_INST_DIR)/VBoxREM2.rel,),)
|
---|
260 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxVMM.so,)
|
---|
261 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxXPCOM.so,)
|
---|
262 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxXPCOMIPCD,)
|
---|
263 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxSVC,)
|
---|
264 | $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VBOXSDL),strip $(SOLARIS_INST_DIR)/VBoxSDL,),)
|
---|
265 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxRT.so,)
|
---|
266 | $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QTGUI),strip $(SOLARIS_INST_DIR)/VBoxKeyboard3.so,),)
|
---|
267 | $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QTGUI),strip $(SOLARIS_INST_DIR)/VirtualBox3,),)
|
---|
268 | $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QTGUI),strip $(SOLARIS_INST_DIR)/qtgcc/lib/libqt-mt.so.3,),)
|
---|
269 | $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_QTGUI),strip $(SOLARIS_INST_DIR)/qtgcc/bin/qtconfig,),)
|
---|
270 | $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_DEBUGGER_GUI),strip $(SOLARIS_INST_DIR)/VBoxDbg.so,),)
|
---|
271 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/VBoxSettings.so,)
|
---|
272 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/components/VBoxC.so,)
|
---|
273 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/components/VBoxSVCM.so,)
|
---|
274 | $(QUIET)$(if $(VBOX_DO_STRIP),strip $(SOLARIS_INST_DIR)/components/VBoxXPCOMIPCC.so,)
|
---|
275 | $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_VRDP),strip $(SOLARIS_INST_DIR)/VBoxVRDP.so,),)
|
---|
276 | $(QUIET)$(if $(VBOX_DO_STRIP),$(if $(VBOX_WITH_HEADLESS),strip $(SOLARIS_INST_DIR)/VBoxHeadless,),)
|
---|
277 | $(QUIET)$(call MSG_L1,Installing and stripping relocatable objects $(SOLARIS_INST_DIR))
|
---|
278 | $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VBoxDD2GC.gc $(SOLARIS_INST_DIR)/VBoxDD2GC.gc, $(INSTALL) -m 0755 $(PATH_BIN)/VBoxDD2GC.gc $(SOLARIS_INST_DIR)/VBoxDD2GC.gc)
|
---|
279 | $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VBoxDD2R0.r0 $(SOLARIS_INST_DIR)/VBoxDD2R0.r0, $(INSTALL) -m 0755 $(PATH_BIN)/VBoxDD2R0.r0 $(SOLARIS_INST_DIR)/VBoxDD2R0.r0)
|
---|
280 | $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VBoxDDGC.gc $(SOLARIS_INST_DIR)/VBoxDDGC.gc, $(INSTALL) -m 0755 $(PATH_BIN)/VBoxDDGC.gc $(SOLARIS_INST_DIR)/VBoxDDGC.gc)
|
---|
281 | $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VBoxDDR0.r0 $(SOLARIS_INST_DIR)/VBoxDDR0.r0, $(INSTALL) -m 0755 $(PATH_BIN)/VBoxDDR0.r0 $(SOLARIS_INST_DIR)/VBoxDDR0.r0)
|
---|
282 | $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VMMGC.gc $(SOLARIS_INST_DIR)/VMMGC.gc, $(INSTALL) -m 0755 $(PATH_BIN)/VMMGC.gc $(SOLARIS_INST_DIR)/VMMGC.gc)
|
---|
283 | $(QUIET)$(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $(PATH_BIN)/VMMR0.r0 $(SOLARIS_INST_DIR)/VMMR0.r0, $(INSTALL) -m 0755 $(PATH_BIN)/VMMR0.r0 $(SOLARIS_INST_DIR)/VMMR0.r0)
|
---|
284 | $(call MSG_L1,Installing files $(SOLARIS_INST_DIR))
|
---|
285 | $(QUIET)$(SED) \
|
---|
286 | -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
|
---|
287 | -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
|
---|
288 | -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
|
---|
289 | --output $(SOLARIS_INST_DIR)/vbox.pkginfo \
|
---|
290 | $(PATH_CURRENT)/vbox.pkginfo
|
---|
291 | $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $(SOLARIS_INST_DIR)/vboxdrv.conf
|
---|
292 | $(QUIET)$(if $(and $(not $(VBOX_OSE)),$(VBOX_WITH_DOCS)),$(INSTALL) -m 0644 $(PATH_BIN)/UserManual.pdf $(SOLARIS_INST_DIR)/UserManual.pdf,)
|
---|
293 | $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/LICENSE)
|
---|
294 | $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_INST_DIR)/vbox.copyright)
|
---|
295 | $(QUIET)$(if $(and $(not $(VBOX_OSE)),$(VBOX_WITH_QTGUI)),$(INSTALL) -m 0644 $(PATH_BIN)/License-$(VBOX_LICENSE_VER).html $(SOLARIS_INST_DIR)/License-$(VBOX_LICENSE_VER).html,)
|
---|
296 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/components/VBoxXPCOMBase.xpt $(SOLARIS_INST_DIR)/components/VBoxXPCOMBase.xpt
|
---|
297 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/components/VirtualBox_XPCOM.xpt $(SOLARIS_INST_DIR)/components/VirtualBox_XPCOM.xpt
|
---|
298 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(CP) $(foreach f,$(SOLARIS_NLS),$(PATH_BIN)/$(f)) $(SOLARIS_INST_DIR)/nls3,)
|
---|
299 | $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $(PATH_BIN)/vboxwebsrv $(SOLARIS_INST_DIR)/vboxwebsrv,)
|
---|
300 | $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $(PATH_BIN)/webtest $(SOLARIS_INST_DIR)/webtest,)
|
---|
301 | $(QUIET)$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh $(SOLARIS_INST_DIR)/vnic_setup.sh
|
---|
302 | $(QUIET)$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh $(SOLARIS_INST_DIR)/vnic_term.sh
|
---|
303 | $(QUIET)$(INSTALL) -m 0755 $(PATH_CURRENT)/vboxdrv.sh $(SOLARIS_INST_DIR)/vboxdrv.sh
|
---|
304 | $(QUIET)$(INSTALL) -m 0755 $(PATH_CURRENT)/VBox.sh $(SOLARIS_INST_DIR)/VBox.sh
|
---|
305 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(INSTALL) -m 0644 $(PATH_CURRENT)/virtualbox.desktop $(SOLARIS_INST_DIR)/virtualbox.desktop,)
|
---|
306 | $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/VBox.png $(SOLARIS_INST_DIR)/VBox.png
|
---|
307 | $(QUIET)$(INSTALL) -m 0755 $(PATH_CURRENT)/postinstall.sh $(SOLARIS_INST_DIR)/postinstall.sh
|
---|
308 | $(QUIET)$(INSTALL) -m 0755 $(PATH_CURRENT)/preremove.sh $(SOLARIS_INST_DIR)/preremove.sh
|
---|
309 | $(QUIET)$(INSTALL) -m 0755 $(PATH_CURRENT)/makepackage.sh $(SOLARIS_INST_DIR)/makepackage.sh
|
---|
310 | $(QUIET)$(INSTALL) -m 0644 $(PATH_CURRENT)/vbox.pkgresponse $(SOLARIS_INST_DIR)/autoresponse
|
---|
311 | $(QUIET)$(INSTALL) -m 0644 $(PATH_CURRENT)/vboxdevlink.sed $(SOLARIS_INST_DIR)/etc/devlink.tab
|
---|
312 | $(QUIET)$(INSTALL) -m 0644 $(PATH_CURRENT)/vbox.space $(SOLARIS_INST_DIR)/vbox.space
|
---|
313 | $(QUIET)$(SED) \
|
---|
314 | -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
|
---|
315 | -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
|
---|
316 | -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
|
---|
317 | --output $(SOLARIS_INST_DIR)/ReadMe.txt \
|
---|
318 | $(PATH_ROOT)/doc/ReadMe-Solaris.txt
|
---|
319 | $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_INST_DIR)/$(VBIPKG_FILENAME).pkg,)
|
---|
320 | $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
|
---|
321 | $(QUIET)$(SOLARIS_INST_DIR)/makepackage.sh $(SOLARIS_INST_DIR) $(PKG_FILENAME) $(KBUILD_TARGET_ARCH) $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
|
---|
322 | $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz $(PATH_BIN)
|
---|
323 | @# Clean up files emitted as side-effect or result of packing
|
---|
324 | $(QUIET)$(RM) -f $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz
|
---|
325 | $(QUIET)$(RM) -f $(SOLARIS_INST_DIR)/$(PKG_FILENAME).pkg
|
---|
326 | $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_INST_DIR)/$(VBIPKG_FILENAME).pkg,)
|
---|
327 |
|
---|
328 | $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
|
---|
329 | $(VBOX_VERSION_STAMP) \
|
---|
330 | $(if $(VBOX_OSE),,$(PATH_ROOT)/doc/License.txt) \
|
---|
331 | $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
|
---|
332 | vbi/vboxkern.pkginfo \
|
---|
333 | vbi/makepackage.sh \
|
---|
334 | Makefile.kmk \
|
---|
335 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
|
---|
336 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
|
---|
337 | $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
|
---|
338 | $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
|
---|
339 | $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
|
---|
340 | $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
|
---|
341 | $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
|
---|
342 | $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
|
---|
343 | $(QUIET)$(SED) \
|
---|
344 | -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
|
---|
345 | -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
|
---|
346 | -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
|
---|
347 | --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
|
---|
348 | $(PATH_CURRENT)/vbi/vboxkern.pkginfo
|
---|
349 | $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright)
|
---|
350 | $(QUIET)$(INSTALL) -m 0755 $(PATH_CURRENT)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
|
---|
351 | $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
|
---|
352 | $(QUIET)$(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
|
---|
353 |
|
---|
354 |
|
---|
355 | $(PATH_BIN)/$(DBG_ARCHIVE): \
|
---|
356 | $(VBOX_VERSION_STAMP) \
|
---|
357 | Makefile.kmk
|
---|
358 | $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
|
---|
359 | $(QUIET)$(RM) -Rf $(SOLARIS_DBG_DIR)
|
---|
360 | $(QUIET)$(MKDIR) -p $(SOLARIS_DBG_DIR)/components
|
---|
361 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/vboxdrv $(SOLARIS_DBG_DIR)/vboxdrv
|
---|
362 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxBFE $(SOLARIS_DBG_DIR)/VBoxBFE
|
---|
363 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxDD.so $(SOLARIS_DBG_DIR)/VBoxDD.so
|
---|
364 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxDD2.so $(SOLARIS_DBG_DIR)/VBoxDD2.so
|
---|
365 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxManage $(SOLARIS_DBG_DIR)/VBoxManage
|
---|
366 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxREM.so $(SOLARIS_DBG_DIR)/VBoxREM.so
|
---|
367 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxRT.so $(SOLARIS_DBG_DIR)/VBoxRT.so
|
---|
368 | $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSDL $(SOLARIS_DBG_DIR)/VBoxSDL,)
|
---|
369 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSVC $(SOLARIS_DBG_DIR)/VBoxSVC
|
---|
370 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxDDU.so $(SOLARIS_DBG_DIR)/VBoxDDU.so
|
---|
371 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxVMM.so $(SOLARIS_DBG_DIR)/VBoxVMM.so
|
---|
372 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxXPCOM.so $(SOLARIS_DBG_DIR)/VBoxXPCOM.so
|
---|
373 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxXPCOMIPCD $(SOLARIS_DBG_DIR)/VBoxXPCOMIPCD
|
---|
374 | $(QUIET)$(if $(VBOX_WITH_SHARED_FOLDERS),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSharedFolders.so $(SOLARIS_DBG_DIR)/VBoxSharedFolders.so,)
|
---|
375 | $(QUIET)$(if $(VBOX_WITH_SHARED_CLIPBOARD),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSharedClipboard.so $(SOLARIS_DBG_DIR)/VBoxSharedClipboard.so,)
|
---|
376 | $(QUIET)$(if $(VBOX_WITH_INFO_SVC),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSharedInfoSvc.so $(SOLARIS_DBG_DIR)/VBoxSharedInfoSvc.so,)
|
---|
377 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxKeyboard3.so $(SOLARIS_DBG_DIR)/VBoxKeyboard3.so,)
|
---|
378 | $(QUIET)$(if $(VBOX_WITH_QTGUI),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VirtualBox3 $(SOLARIS_DBG_DIR)/VirtualBox3,)
|
---|
379 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxSettings.so $(SOLARIS_DBG_DIR)/VBoxSettings.so
|
---|
380 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/components/VBoxC.so $(SOLARIS_DBG_DIR)/components/VBoxC.so
|
---|
381 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/components/VBoxSVCM.so $(SOLARIS_DBG_DIR)/components/VBoxSVCM.so
|
---|
382 | $(QUIET)$(SOL_DBG_OBJCOPY) $(PATH_BIN)/components/VBoxXPCOMIPCC.so $(SOLARIS_DBG_DIR)/components/VBoxXPCOMIPCC.so
|
---|
383 | $(QUIET)$(if $(VBOX_WITH_VRDP),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxVRDP.so $(SOLARIS_DBG_DIR)/VBoxVRDP.so,)
|
---|
384 | $(QUIET)$(if $(VBOX_WITH_HEADLESS),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxHeadless $(SOLARIS_DBG_DIR)/VBoxHeadless,)
|
---|
385 | $(QUIET)$(if $(VBOX_WITH_DEBUGGER_GUI),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/VBoxDbg.so $(SOLARIS_DBG_DIR)/VBoxDbg.so,)
|
---|
386 | $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/vboxwebsrv $(SOLARIS_DBG_DIR)/vboxwebsrv,)
|
---|
387 | $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(SOL_DBG_OBJCOPY) $(PATH_BIN)/webtest $(SOLARIS_DBG_DIR)/webtest,)
|
---|
388 | $(call MSG_L1,Packing $@)
|
---|
389 | $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_STRIP_BINS)
|
---|
390 | $(QUIET)chmod 0644 $(PATH_BIN)/$(DBG_ARCHIVE)
|
---|
391 |
|
---|
392 | $(addprefix $(SOLARIS_INST_DIR)/,$(SOLARIS_SDK)): $$(subst $$(SOLARIS_INST_DIR)/,$(PATH_BIN)/,$$@)
|
---|
393 | $(call MSG_L1,Copying $@)
|
---|
394 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
395 | $(QUIET)$(CP) -pf $< $@
|
---|
396 |
|
---|
397 | # Enable this for forceful incremental re-packaging. Disabled as it's not needed.
|
---|
398 | #.PHONY: $(addprefix $(SOLARIS_INST_DIR)/,$(SOLARIS_SDK))
|
---|
399 | # $(RM) -Rf $(SOLARISINSTDIR)
|
---|
400 |
|
---|