VirtualBox

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

Last change on this file since 36792 was 36792, checked in by vboxsync, 14 years ago

Additions/solaris: spaces and minor fix.

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