VirtualBox

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

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

Additions/solaris: remove obsolete packaging bits, just causes confusion.

  • 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 36764 2011-04-20 16:53:11Z 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_14.so \
181 vboxmouse_drv_15.so \
182 vboxmouse_drv_16.so \
183 vboxmouse_drv_17.so \
184 vboxmouse_drv_18.so \
185 vboxmouse_drv_19.so \
186 vboxmouse_drv_110.so \
187 vboxmouse_drv_70.so \
188 vboxmouse_drv_71.so \
189 vboxvideo_drv_13.so \
190 vboxvideo_drv_14.so \
191 vboxvideo_drv_15.so \
192 vboxvideo_drv_16.so \
193 vboxvideo_drv_17.so \
194 vboxvideo_drv_18.so \
195 vboxvideo_drv_19.so \
196 vboxvideo_drv_110.so \
197 vboxvideo_drv_70.so \
198 vboxvideo_drv_71.so
199
200SOLARIS_ADD_COMMON_BINS = \
201 vboxguest.sh \
202 x11config.pl \
203 x11config15sol.pl \
204 x11restore.pl \
205 VBox.sh \
206 1099.vboxclient \
207 VBoxISAExec
208
209SOLARIS_ADD_USRBIN_LINKS = \
210 VBoxService \
211 VBoxClient \
212 VBoxControl
213
214SOLARIS_ADD_COMMON = \
215 vboxclient.desktop \
216 solaris_xorg.conf \
217 solaris_xorg_modeless.conf \
218 LICENSE
219
220SOLARIS_ADD_SERVICES = \
221 vboxservice.xml
222
223ifdef VBOX_COMPRESS
224 SOLARIS_ADD_COMPRESS_FILES = \
225 $(SOLARIS_ADD_XORG_DRIVERS) \
226 VBoxService \
227 VBoxClient \
228 VBoxControl
229endif
230
231ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
232 SOLARIS_ARCH_ADD_DEPFILES = \
233 $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_STRIP_BINS)) \
234 $(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_32)/,$(SOLARIS_ADD_SYSLIBS)) \
235 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_64)/,$(SOLARIS_ADD_DRIVERS)) \
236 $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_XORG_DRIVERS)) \
237 $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_STRIP_BINS)) \
238 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_32)/,$(SOLARIS_ADD_DRIVERS)) \
239 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)) \
240 $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_XORG_DRIVERS))
241else
242 SOLARIS_ARCH_ADD_DEPFILES = \
243 $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_STRIP_BINS)) \
244 $(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_ISA)/,$(SOLARIS_ADD_SYSLIBS)) \
245 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_ISA)/,$(SOLARIS_ADD_DRIVERS)) \
246 $(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)) \
247 $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_XORG_DRIVERS))
248endif
249
250SOLARIS_ARCH_ADD_DEPFILES += \
251 $(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON_BINS)) \
252 $(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON)) \
253 $(addprefix $(SOLARIS_ADD_SERVICESINST_DIR)/,$(SOLARIS_ADD_SERVICES)) \
254 $(addprefix $(SOLARIS_ADD_USRBIN_DIR)/,$(SOLARIS_ADD_USRBIN_LINKS))
255
256
257
258include $(KBUILD_PATH)/subfooter.kmk
259
260#
261# -=-=-=-=-=-=-=- Additions package -=-=-=-=-=-=-=-
262#
263
264$(PATH_BIN)/additions/$(PKGFILENAME): \
265 $(VBOX_VERSION_STAMP) \
266 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh \
267 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh \
268 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh \
269 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo \
270 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend \
271 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.sh \
272 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxservice.xml \
273 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh \
274 $(VBOX_PATH_X11_ADDITION_INSTALLER)/98vboxadd-xclient \
275 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config.pl \
276 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11config15sol.pl \
277 $(VBOX_PATH_X11_ADDITION_INSTALLER)/x11restore.pl \
278 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
279 $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
280 $(VBOX_BRAND_LICENSE_TXT) \
281 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
282 $(PATH_SUB_CURRENT)/solaris/Makefile.kmk \
283 $(SOLARIS_ARCH_ADD_DEPFILES)
284 $(call MSG_L1,Installing guest additions)
285 $(QUIET)$(SED) \
286 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
287 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
288 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
289 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
290 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
291 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
292 --output $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.pkginfo \
293 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.pkginfo
294 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/makepackage.sh $(SOLARIS_ADDINST_OUT_DIR)/makepackage.sh
295 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/postinstall.sh $(SOLARIS_ADDINST_OUT_DIR)/postinstall.sh
296 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/preremove.sh $(SOLARIS_ADDINST_OUT_DIR)/preremove.sh
297 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.space $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.space
298 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vboxguest.depend $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.depend
299 # don't display the license on package install, since 4.0
300 #$(QUIET)$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT) $(SOLARIS_ADDINST_OUT_DIR)/vboxguest.copyright
301 $(call MSG_L1,Creating install package: $@)
302 $(QUIET)$(MKDIR) -p $(SOLARIS_ADD_ETCFS_DIR)
303 $(QUIET)$(LN_SYMLINK) -f ../..$(SOLARIS_VBOXADDINST_SUBDIR)/1099.vboxclient $(SOLARIS_ADD_USRBIN_DIR)/VBoxClient-all
304ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
305 ifdef VBOX_COMPRESS
306 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_COMPRESS_FILES))
307 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_COMPRESS_FILES))
308 endif
309 $(QUIET)$(LN_SYMLINK) -f ../../..$(SOLARIS_VBOXADDINST_SUBDIR)/$(SOLARIS_ADDDIR_NAME_32)/vboxfsmount $(SOLARIS_ADD_ETCFS_DIR)/mount
310else # !VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
311 ifdef VBOX_COMPRESS
312 $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_COMPRESS_FILES))
313 endif
314 $(LN_SYMLINK) -f ../../..$(SOLARIS_VBOXADDINST_SUBDIR)/$(SOLARIS_ADDDIR_NAME_ISA)/vboxfsmount $(SOLARIS_ADD_ETCFS_DIR)/mount
315endif
316 $(QUIET)$(SOLARIS_ADDINST_OUT_DIR)/makepackage.sh $(SOLARIS_ADDINST_OUT_DIR) $(PKGFILENAME) $(VBOX_SVN_REV)
317 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME) $(PATH_BIN)/additions/$(PKGFILENAME)
318 $(QUIET)$(RM) -f $(SOLARIS_ADDINST_OUT_DIR)/$(PKGFILENAME)
319
320
321
322#
323# -=-=-=-=-=-=-=- Package rules -=-=-=-=-=-=-=-
324#
325
326#
327# 32-bit files
328#
329$(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_STRIP_BINS)): \
330 $(SOLARIS_VBOXADDINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
331 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
332
333$(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_32)/,$(SOLARIS_ADD_SYSLIBS)): \
334 $(SOLARIS_ADD_SYSLIBINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
335 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
336
337$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_32)/,$(SOLARIS_ADD_DRIVERS)): \
338 $(SOLARIS_ADD_DRIVERINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
339 $(INSTALL) -m 0644 $< $@
340
341$(addprefix $(SOLARIS_VBOXADDINST_DIR_32)/,$(SOLARIS_ADD_XORG_DRIVERS)): \
342 $(SOLARIS_VBOXADDINST_DIR_32)/% : $(SOLARIS_ADD_OUT_BIN_32)/% | $$(dir $$@)
343 $(BIN_COPY) $< $@
344
345
346#
347# 64-bit files
348#
349$(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_STRIP_BINS)): \
350 $(SOLARIS_VBOXADDINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
351 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
352
353$(addprefix $(SOLARIS_ADD_SYSLIBINST_DIR_64)/,$(SOLARIS_ADD_SYSLIBS)): \
354 $(SOLARIS_ADD_SYSLIBINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
355 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
356
357$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR_64)/,$(SOLARIS_ADD_DRIVERS)): \
358 $(SOLARIS_ADD_DRIVERINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
359 $(INSTALL) -m 0644 $< $@
360
361$(addprefix $(SOLARIS_VBOXADDINST_DIR_64)/,$(SOLARIS_ADD_XORG_DRIVERS)): \
362 $(SOLARIS_VBOXADDINST_DIR_64)/% : $(SOLARIS_ADD_OUT_BIN_64)/% | $$(dir $$@)
363 $(BIN_COPY) $< $@
364
365
366#
367# Common files
368#
369$(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON)): \
370 $(SOLARIS_VBOXADDINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
371 $(INSTALL) -m 0644 $< $@
372
373#
374# Common binaries/shell scripts
375#
376$(addprefix $(SOLARIS_VBOXADDINST_DIR)/,$(SOLARIS_ADD_COMMON_BINS)): \
377 $(SOLARIS_VBOXADDINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
378 $(INSTALL) -m 0755 $< $@
379
380#
381# Driver .conf files
382#
383$(addprefix $(SOLARIS_ADD_DRIVERINST_DIR)/,$(SOLARIS_ADD_DRIVERS_CONF)): \
384 $(SOLARIS_ADD_DRIVERINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
385 $(INSTALL) -m 0644 $< $@
386
387#
388# SMF Service files
389#
390$(addprefix $(SOLARIS_ADD_SERVICESINST_DIR)/,$(SOLARIS_ADD_SERVICES)): \
391 $(SOLARIS_ADD_SERVICESINST_DIR)/% : $(SOLARIS_ADD_OUT_BIN_ISA)/% | $$(dir $$@)
392 $(INSTALL) -m 0644 $< $@
393
394#
395# Symlinks from /usr/bin/ to /opt/VirtualBoxAdditions
396#
397$(addprefix $(SOLARIS_ADD_USRBIN_DIR)/,$(SOLARIS_ADD_USRBIN_LINKS)): \
398 $(SOLARIS_ADD_USRBIN_DIR)/% : % | $$(dir $$@)
399 $(LN_SYMLINK) -f ../..$(SOLARIS_VBOXADDINST_SUBDIR)/$< $@
400
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