VirtualBox

source: vbox/trunk/src/VBox/Additions/solaris/Makefile.kmk@ 106061

Last change on this file since 106061 was 106061, checked in by vboxsync, 2 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 16.0 KB
Line 
1# $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $
2## @file
3# Makefile for the Solaris guest additions base directory.
4#
5
6#
7# Copyright (C) 2008-2024 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# The contents of this file may alternatively be used under the terms
26# of the Common Development and Distribution License Version 1.0
27# (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
28# in the VirtualBox distribution, in which case the provisions of the
29# CDDL are applicable instead of those of the GPL.
30#
31# You may elect to license modified versions of this file under the
32# terms and conditions of either the GPL or the CDDL or both.
33#
34# SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
35#
36
37SUB_DEPTH = ../../../..
38include $(KBUILD_PATH)/subheader.kmk
39
40#ifneq ($(KBUILD_HOST),solaris)
41#$(error "The Solaris guest additions installer can only be built on Solaris!")
42#endif
43
44ifeq ($(KBUILD_TARGET),solaris)
45 include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
46 include $(PATH_SUB_CURRENT)/Mouse/Makefile.kmk
47 include $(PATH_SUB_CURRENT)/DRM/Makefile.kmk
48endif
49
50ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE ## @todo remove this when tinderclient.pl is updated.
51 VBOX_WITH_COMBINED_GUEST_PACKAGE := 1
52endif
53
54PKGFILENAME := VBoxSolarisAdditions.pkg
55PKGINFO_ARCH = $(shell uname -p)
56PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M)
57VBOX_PATH_SOLARIS_ADDITION_INSTALLER := $(PATH_SUB_CURRENT)/Installer
58VBOX_PATH_X11_ADDITION_INSTALLER := $(PATH_ROOT)/src/VBox/Additions/x11/Installer
59
60SOLARIS_ADDDIR_NAME_64 := amd64
61SOLARIS_ADDDIR_NAME_32 := i386
62
63SOLARIS_ADDINST_OUT_DIR := $(PATH_TARGET)/AdditionsInstaller
64SOLARIS_VBOXADDINST_SUBDIR := /opt/VirtualBoxAdditions
65SOLARIS_VBOXADDINST_DIR := $(SOLARIS_ADDINST_OUT_DIR)$(SOLARIS_VBOXADDINST_SUBDIR)
66SOLARIS_VBOXADDINST_DIR_32 := $(SOLARIS_VBOXADDINST_DIR)/$(SOLARIS_ADDDIR_NAME_32)
67SOLARIS_VBOXADDINST_DIR_64 := $(SOLARIS_VBOXADDINST_DIR)/$(SOLARIS_ADDDIR_NAME_64)
68
69SOLARIS_ADD_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin/additions
70SOLARIS_ADD_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin/additions
71SOLARIS_ADD_OUT_BIN_ISA := $(PATH_OUT_BASE)/solaris.$(KBUILD_TARGET_ARCH)/$(KBUILD_TYPE)/bin/additions
72
73SOLARIS_ADD_DRIVERINST_DIR := $(SOLARIS_ADDINST_OUT_DIR)/usr/kernel/drv
74SOLARIS_ADD_DRIVERINST_DIR_32 := $(SOLARIS_ADD_DRIVERINST_DIR)
75SOLARIS_ADD_DRIVERINST_DIR_64 := $(SOLARIS_ADD_DRIVERINST_DIR)/amd64
76
77SOLARIS_ADD_SYSLIBINST_DIR_32 := $(SOLARIS_ADDINST_OUT_DIR)/usr/lib
78SOLARIS_ADD_SYSLIBINST_DIR_64 := $(SOLARIS_ADDINST_OUT_DIR)/usr/lib/amd64
79
80SOLARIS_ADD_USRBIN_DIR := $(SOLARIS_ADDINST_OUT_DIR)/usr/bin
81SOLARIS_ADD_USRSBIN_DIR := $(SOLARIS_ADDINST_OUT_DIR)/usr/sbin
82SOLARIS_ADD_ETCFS_DIR := $(SOLARIS_ADDINST_OUT_DIR)/etc/fs/vboxfs
83SOLARIS_ADD_SERVICESINST_DIR := $(SOLARIS_ADDINST_OUT_DIR)/var/svc/manifest/application/virtualbox
84
85ifeq ($(KBUILD_TARGET_ARCH),x86)
86 SOLARIS_ADDDIR_NAME_ISA := $(SOLARIS_ADDDIR_NAME_32)
87 SOLARIS_VBOXADDINST_DIR_ISA := $(SOLARIS_VBOXADDINST_DIR_32)
88 SOLARIS_ADD_DRIVERINST_DIR_ISA := $(SOLARIS_ADD_DRIVERINST_DIR_32)
89 SOLARIS_ADD_SYSLIBINST_DIR_ISA := $(SOLARIS_ADD_SYSLIBINST_DIR_32)
90else
91 SOLARIS_ADDDIR_NAME_ISA := $(SOLARIS_ADDDIR_NAME_64)
92 SOLARIS_VBOXADDINST_DIR_ISA := $(SOLARIS_VBOXADDINST_DIR_64)
93 SOLARIS_ADD_DRIVERINST_DIR_ISA := $(SOLARIS_ADD_DRIVERINST_DIR_64)
94 SOLARIS_ADD_SYSLIBINST_DIR_ISA := $(SOLARIS_ADD_SYSLIBINST_DIR_64)
95endif
96
97ifeq ($(KBUILD_TYPE),debug)
98 BIN_COPY := $(CP) -f
99 BIN_COPY_SYMBOLS := $(CP) -f
100else
101 BIN_COPY := /usr/sfw/bin/gobjcopy -S -R .comment
102 BIN_COPY_SYMBOLS := /usr/sfw/bin/gobjcopy -g -R .comment
103 VBOX_COMPRESS := compress -f
104endif
105
106INSTALLS += solaris-addcommon solaris-addcommonbins
107PROGRAMS += VBoxAddISAExec
108PACKING += $(PATH_STAGE_BIN)/additions/$(PKGFILENAME)
109OTHER_CLEAN += $(PACKING) $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME)
110
111#
112# VBoxAddISAExec
113#
114VBoxAddISAExec_TEMPLATE = VBoxGuestR3Exe
115VBoxAddISAExec_NAME = VBoxISAExec
116VBoxAddISAExec_INST = $(INST_ADDITIONS)
117VBoxAddISAExec_DEPS = $(VBOX_SVN_REV_KMK)
118VBoxAddISAExec_SOURCES = $(PATH_ROOT)/src/VBox/Installer/solaris/VBoxISAExec.c
119
120#
121# Install to $(PATH_STAGE_BIN)/additions/ files from various source paths (to pack them using rules)
122#
123solaris-addcommonbins_INST = bin/additions/
124solaris-addcommonbins_MODE = a+rx,u+w
125solaris-addcommonbins_SOURCES = \
126 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
127 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
128 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl \
129 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
130 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient=>1099.vboxclient \
131 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
132 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
133 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vbox_vendor_select \
134 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh
135
136solaris-addcommon_INST = bin/additions/
137solaris-addcommon_MODE = a+r,u+w
138solaris-addcommon_SOURCES = \
139 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf=>vboxguest.conf \
140 $(PATH_ROOT)/src/VBox/Additions/solaris/Mouse/vboxms.conf=>vboxms.conf \
141 $(VBOX_PATH_X11_ADDITION_INSTALLER)/vboxclient.desktop \
142 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
143 $(PATH_ROOT)/src/VBox/Additions/solaris/Mouse/vboxmslnk.xml \
144 $(VBOX_BRAND_LICENSE_TXT)=>LICENSE
145
146#
147# Create full directory tree
148#
149BLDDIRS += \
150 $(SOLARIS_ADDINST_OUT_DIR) \
151 $(addprefix $(SOLARIS_ADDINST_OUT_DIR)/, \
152 opt \
153 opt/VirtualBoxAdditions \
154 opt/VirtualBoxAdditions/$(SOLARIS_ADDDIR_NAME_32) \
155 opt/VirtualBoxAdditions/$(SOLARIS_ADDDIR_NAME_64) \
156 usr \
157 usr/bin \
158 usr/sbin \
159 usr/lib \
160 usr/lib/amd64 \
161 usr/kernel \
162 usr/kernel/drv \
163 usr/kernel/drv/amd64 \
164 var \
165 var/svc \
166 var/svc/manifest \
167 var/svc/manifest/application \
168 var/svc/manifest/application/virtualbox \
169 )
170
171SOLARIS_ADD_STRIP_BINS = \
172 VBoxClient \
173 VBoxService \
174 VBoxControl \
175 vboxfsmount \
176 vboxfs \
177 vboxmslnk \
178 $(if ($VBOX_WITH_PAM),pam_vbox.so,) \
179 $(if $(VBOX_OSE),,vboxfs_s10) \
180 $(if $(VBOX_WITH_ADDITIONS_SHIPPING_AUDIO_TEST),VBoxAudioTest,)
181
182SOLARIS_ADD_DRIVERS = \
183 vboxguest \
184 vboxms
185
186SOLARIS_ADD_DRIVERS_CONF = \
187 vboxguest.conf \
188 vboxms.conf
189
190SOLARIS_ADD_XORG_DRIVERS = \
191 vboxvideo_drv_13.so \
192 vboxvideo_drv_14.so \
193 vboxvideo_drv_15.so \
194 vboxvideo_drv_16.so \
195 vboxvideo_drv_17.so \
196 vboxvideo_drv_18.so \
197 vboxvideo_drv_19.so \
198 vboxvideo_drv_110.so \
199 vboxvideo_drv_111.so \
200 vboxvideo_drv_112.so \
201 vboxvideo_drv_113.so \
202 vboxvideo_drv_114.so \
203 vboxvideo_drv_117.so \
204 vboxvideo_drv_118.so \
205 vboxvideo_drv_70.so \
206 vboxvideo_drv_71.so
207
208SOLARIS_ADD_COMMON_BINS = \
209 vboxguest.sh \
210 x11config15sol.pl \
211 x11restore.pl \
212 VBox.sh \
213 1099.vboxclient \
214 vbox_vendor_select \
215 VBoxISAExec
216
217SOLARIS_ADD_USRBIN_LINKS = \
218 VBoxService \
219 VBoxClient \
220 VBoxControl
221
222SOLARIS_ADD_USRSBIN_LINKS = \
223 vboxmslnk
224
225SOLARIS_ADD_COMMON = \
226 vboxclient.desktop \
227 solaris_xorg.conf \
228 solaris_xorg_modeless.conf \
229 LICENSE
230
231SOLARIS_ADD_SERVICES = \
232 vboxservice.xml \
233 vboxmslnk.xml
234
235ifdef VBOX_COMPRESS
236 SOLARIS_ADD_COMPRESS_FILES = \
237 $(SOLARIS_ADD_XORG_DRIVERS) \
238 VBoxService \
239 VBoxClient \
240 VBoxControl
241endif
242
243ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
244 SOLARIS_ARCH_ADD_DEPFILES = \
245 $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_STRIP_BINS)) \
246 $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_XORG_DRIVERS)) \
247 $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_STRIP_BINS)) \
248 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_64)/,$(SOLARIS_ADD_DRIVERS)) \
249 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_32)/,$(SOLARIS_ADD_DRIVERS)) \
250 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)) \
251 $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_XORG_DRIVERS))
252else
253 SOLARIS_ARCH_ADD_DEPFILES = \
254 $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_STRIP_BINS)) \
255 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_ISA)/,$(SOLARIS_ADD_DRIVERS)) \
256 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)) \
257 $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_XORG_DRIVERS))
258endif
259
260SOLARIS_ARCH_ADD_DEPFILES += \
261 $(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON_BINS)) \
262 $(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON)) \
263 $(addprefix $(SOLARIS_ADD_SERVICESINST_DIR)/,$(SOLARIS_ADD_SERVICES)) \
264 $(addprefix $(SOLARIS_ADD_USRBIN_DIR)/,$(SOLARIS_ADD_USRBIN_LINKS)) \
265 $(addprefix $(SOLARIS_ADD_USRSBIN_DIR)/,$(SOLARIS_ADD_USRSBIN_LINKS))
266
267
268
269include $(FILE_KBUILD_SUB_FOOTER)
270
271#
272# -=-=-=-=-=-=-=- Additions package -=-=-=-=-=-=-=-
273#
274
275$(PATH_STAGE_BIN)/additions/$(PKGFILENAME): \
276 $(VBOX_VERSION_STAMP) \
277 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
278 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
279 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
280 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
281 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend \
282 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
283 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
284 $(PATH_ROOT)/src/VBox/Additions/solaris/Mouse/vboxmslnk.xml \
285 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh \
286 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
287 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl \
288 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
289 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
290 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
291 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vbox_vendor_select \
292 $(VBOX_BRAND_LICENSE_TXT) \
293 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
294 $(PATH_SUB_CURRENT)/solaris/Makefile.kmk \
295 $(SOLARIS_ARCH_ADD_DEPFILES)
296 $(call MSG_L1,Installing guest additions)
297 $(QUIET)$(SED) \
298 -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+g" \
299 -e "s+@VBOX_VENDOR@+$(VBOX_VENDOR)+g" \
300 -e "s+@VBOX_VERSION_STRING@+$(VBOX_VERSION_STRING)+g" \
301 -e "s+@VBOX_SVN_REV@+$(VBOX_SVN_REV)+g" \
302 -e "s+@VBOX_VERSION_REVSTAMP@+$(PKGINFO_REVSTAMP)+g" \
303 -e "s+@UNAME_P@+$(PKGINFO_ARCH)+g" \
304 --output $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.pkginfo \
305 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
306 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARIS_ADDINST_OUT_DIR)/makepackage.sh
307 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARIS_ADDINST_OUT_DIR)/postinstall.sh
308 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARIS_ADDINST_OUT_DIR)/preremove.sh
309 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.space $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.space
310 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.depend
311 # don't display the license on package install, since 4.0
312 #$(QUIET)$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT) $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.copyright
313 $(call MSG_L1,Creating install package: $@)
314 $(QUIET)$(MKDIR) -p $(SOLARIS_ADD_ETCFS_DIR)
315 $(QUIET)$(MKDIR) -p $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)
316 $(QUIET)$(LN_SYMLINK) -f ../..$(SOLARIS_VBOXADDINST_SUBDIR)/1099.vboxclient $(SOLARIS_ADD_USRBIN_DIR)/VBoxClient-all
317ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
318 ifdef VBOX_COMPRESS
319 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_COMPRESS_FILES))
320 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_COMPRESS_FILES))
321 endif
322 $(QUIET)$(LN_SYMLINK) -f ../../..$(SOLARIS_VBOXADDINST_SUBDIR)/$(SOLARIS_ADDDIR_NAME_32)/vboxfsmount $(SOLARIS_ADD_ETCFS_DIR)/mount
323else # !VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
324 ifdef VBOX_COMPRESS
325 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_COMPRESS_FILES))
326 endif
327 $(LN_SYMLINK) -f ../../..$(SOLARIS_VBOXADDINST_SUBDIR)/$(SOLARIS_ADDDIR_NAME_ISA)/vboxfsmount $(SOLARIS_ADD_ETCFS_DIR)/mount
328endif
329 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml $(SOLARIS_ADD_SERVICESINST_DIR)/vboxservice.xml
330 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Additions/solaris/Mouse/vboxmslnk.xml $(SOLARIS_ADD_SERVICESINST_DIR)/vboxmslnk.xml
331 $(QUIET)$(SOLARIS_ADDINST_OUT_DIR)/makepackage.sh $(SOLARIS_ADDINST_OUT_DIR) $(PKGFILENAME) $(VBOX_SVN_REV) $(VBOX_SOL_PKG_DEV)
332 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME) $(PATH_STAGE_BIN)/additions/$(PKGFILENAME)
333 $(QUIET)$(RM) -f $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME)
334
335
336
337#
338# -=-=-=-=-=-=-=- Package rules -=-=-=-=-=-=-=-
339#
340
341#
342# 32-bit files
343#
344$(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_STRIP_BINS)): \
345 $(SOLARIS_VBOXADDINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
346 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
347
348$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_32)/,$(SOLARIS_ADD_DRIVERS)): \
349 $(SOLARIS_ADD_DRIVERINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
350 $(INSTALL) -m 0644 $< $@
351
352$(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_XORG_DRIVERS)): \
353 $(SOLARIS_VBOXADDINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
354 $(BIN_COPY) $< $@
355
356
357#
358# 64-bit files
359#
360$(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_STRIP_BINS)): \
361 $(SOLARIS_VBOXADDINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
362 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
363
364$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_64)/,$(SOLARIS_ADD_DRIVERS)): \
365 $(SOLARIS_ADD_DRIVERINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
366 $(INSTALL) -m 0644 $< $@
367
368$(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_XORG_DRIVERS)): \
369 $(SOLARIS_VBOXADDINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
370 $(BIN_COPY) $< $@
371
372
373#
374# Common files
375#
376$(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON)): \
377 $(SOLARIS_VBOXADDINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
378 $(INSTALL) -m 0644 $< $@
379
380#
381# Common binaries/shell scripts
382#
383$(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON_BINS)): \
384 $(SOLARIS_VBOXADDINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
385 $(INSTALL) -m 0755 $< $@
386
387#
388# Driver .conf files
389#
390$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)): \
391 $(SOLARIS_ADD_DRIVERINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
392 $(INSTALL) -m 0644 $< $@
393
394#
395# SMF Service files
396#
397$(addprefix $(SOLARIS_ADD_SERVICESINST_DIR)/,$(SOLARIS_ADD_SERVICES)): \
398 $(SOLARIS_ADD_SERVICESINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
399 $(INSTALL) -m 0644 $< $@
400
401#
402# Symlinks from /usr/bin/ to /opt/VirtualBoxAdditions
403#
404$(addprefix $(SOLARIS_ADD_USRBIN_DIR)/,$(SOLARIS_ADD_USRBIN_LINKS)): \
405 $(SOLARIS_ADD_USRBIN_DIR)/% : % | $$(dir $$@)
406 $(LN_SYMLINK) -f ../..$(SOLARIS_VBOXADDINST_SUBDIR)/$< $@
407
408#
409# Symlinks from /usr/sbin/ to /opt/VirtualBoxAdditions
410#
411$(addprefix $(SOLARIS_ADD_USRSBIN_DIR)/,$(SOLARIS_ADD_USRSBIN_LINKS)): \
412 $(SOLARIS_ADD_USRSBIN_DIR)/% : % | $$(dir $$@)
413 $(LN_SYMLINK) -f ../..$(SOLARIS_VBOXADDINST_SUBDIR)/$< $@
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