VirtualBox

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

Last change on this file since 59006 was 59006, checked in by vboxsync, 9 years ago

bugref:8153: vboxvideo: ABI issues / software rendering on Linux guests: second attempt at installing our 3D library at Additions start-time. Try adding vboxguest.sh to solaris-addcommonbins.

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