VirtualBox

source: vbox/trunk/src/VBox/Installer/linux/Makefile.kmk@ 28865

Last change on this file since 28865 was 28800, checked in by vboxsync, 15 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.9 KB
Line 
1# $Id: Makefile.kmk 28800 2010-04-27 08:22:32Z vboxsync $
2## @file
3# Makefile for the Linux installer.
4#
5
6#
7# Copyright (C) 2006-2007 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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21ifneq ($(KBUILD_HOST),linux)
22 $(error "The Linux installer can only be built on Linux!")
23endif
24
25#
26# Globals and targets.
27#
28VBOX_PATH_LNX_INST_SRC := $(PATH_SUB_CURRENT)
29VBOX_LNX_INST_OUT_DIR := $(PATH_TARGET)/Installer/linux
30VBOX_LNX_INST_STAGE_DIR := $(PATH_TARGET)/Installer/linux/install
31VBOX_LNX_DBG_PATH := usr/lib/debug/opt/VirtualBox
32VBOX_LNX_PACKAGE_NAME = VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).run
33
34# Unset this to speed up things during makefile hacking.
35VBOX_LNX_INST_DEP_ON_MAKEFILE := $(MAKEFILE_CURRENT)
36
37BLDDIRS += $(VBOX_LNX_INST_OUT_DIR) $(VBOX_LNX_INST_STAGE_DIR)
38PACKING += $(PATH_BIN)/VirtualBox.tar.bz2
39if !defined(VBOX_NO_LINUX_RUN_INSTALLER) && !defined(VBOX_OSE)
40 PACKING += $(PATH_BIN)/$(VBOX_LNX_PACKAGE_NAME) \
41 $(PATH_BIN)/VirtualBox-dbg.tar.bz2
42endif
43
44OTHER_CLEAN += \
45 $(addprefix $(VBOX_LNX_INST_STAGE_DIR)/,\
46 install.sh \
47 uninstall.sh \
48 deffiles \
49 routines.sh \
50 vboxdrv.sh \
51 VirtualBox.tar.bz2 \
52 LICENSE) \
53 $(wildcard $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-*) \
54 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/,\
55 vboxdrv.sh \
56 install.sh)
57
58#
59# Linux installs.
60#
61INSTALLS += linux-bin
62linux-bin_INST = bin/
63linux-bin_MODE = a+rx,u+w
64linux-bin_SOURCES = \
65 VBoxSysInfo.sh \
66 VBox.sh=>VBox.sh \
67 $(if $(VBOX_WITH_PYTHON),$(PATH_ROOT)/src/VBox/Frontends/VBoxShell/vboxshell.py=>vboxshell.py,)
68
69INSTALLS += linux-misc
70linux-misc_INST = bin/
71linux-misc_MODE = a+r,u+w
72linux-misc_SOURCES = \
73 $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_32px.png=>VBox.png \
74 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)=>LICENSE) \
75 $(if $(VBOX_WITH_QTGUI),$(PATH_linux-misc)/virtualbox.desktop,)
76linux-misc_CLEAN = $(PATH_linux-misc)/virtualbox.desktop
77
78$$(PATH_linux-misc)/virtualbox.desktop: $(PATH_SUB_CURRENT)/virtualbox.desktop $(VBOX_VERSION_STAMP) | $$(dir $$@)
79 $(call MSG_GENERATE,,$@,$<)
80ifdef VBOX_PATH_PACKAGE_DOCS
81 $(QUIET)$(SED) -e "s+\$$VBOX_DOC_PATH+$(VBOX_PATH_PACKAGE_DOCS)+" --output $@ $<
82else
83 $(QUIET)$(SED) -e "s+\$$VBOX_DOC_PATH+/opt/VirtualBox+" --output $@ $<
84endif
85
86
87
88#
89# The files residing in bin/ that we'll ship.
90#
91
92# Strip these binaries
93VBOX_LNX_STRIP_BIN = \
94 VBoxDD.so \
95 VBoxDD2.so \
96 VBoxREM.so \
97 VBoxDDU.so \
98 VBoxVMM.so \
99 $(if $(eq $(KBUILD_TARGET_ARCH),x86),VBoxREM32.so,) \
100 $(if $(eq $(KBUILD_TARGET_ARCH),x86),VBoxREM64.so,) \
101 VBoxRT.so \
102 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL $(if $(VBOX_WITH_HARDENING),VBoxSDL.so),) \
103 $(if $(VBOX_WITH_SHARED_CLIPBOARD), VBoxSharedClipboard.so,) \
104 $(if $(VBOX_WITH_SHARED_FOLDERS), VBoxSharedFolders.so,) \
105 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
106 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxGuestControlSvc.so,) \
107 $(if $(VBOX_WITH_MAIN), \
108 VBoxManage \
109 VBoxNetDHCP $(if $(VBOX_WITH_HARDENING),VBoxNetDHCP.so,) \
110 VBoxNetAdpCtl \
111 VBoxSVC \
112 VBoxXPCOM.so \
113 VBoxXPCOMC.so \
114 VBoxXPCOMIPCD \
115 components/VBoxXPCOMIPCC.so \
116 components/VBoxSVCM.so \
117 components/VBoxC.so,) \
118 $(if $(VBOX_WITH_CROGL),\
119 VBoxOGLhostcrutil.so \
120 VBoxOGLhosterrorspu.so \
121 VBoxOGLrenderspu.so \
122 VBoxTestOGL \
123 VBoxSharedCrOpenGL.so,) \
124 $(if $(VBOX_WITH_PYTHON),$(notdir $(wildcard $(PATH_BIN)/VBoxPython*.so)),) \
125 VBoxTunctl
126
127# Do not remove relocation information of these binaries
128VBOX_LNX_STRIP_OBJ = \
129 VBoxDD2GC.gc \
130 VBoxDD2R0.r0 \
131 VBoxDDGC.gc \
132 VBoxDDR0.r0 \
133 VMMGC.gc \
134 VMMR0.r0
135
136# Do not strip anything of these files
137VBOX_LNX_NO_STRIP = \
138 $(if $(VBOX_OSE),,LICENSE) \
139 $(if $(VBOX_WITH_MAIN), \
140 components/VBoxXPCOMBase.xpt \
141 components/VirtualBox_XPCOM.xpt) \
142 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \
143 VBoxSysInfo.sh \
144 VBox.sh \
145 VBox.png \
146 src
147
148# Qt4 GUI
149ifdef VBOX_WITH_QTGUI
150 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
151 VBOX_LNX_STRIP_BIN += \
152 VBoxKeyboard.so \
153 VirtualBox \
154 $(if $(VBOX_WITH_HARDENING),VirtualBox.so) \
155 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so)
156 VBOX_LNX_NO_STRIP += \
157 virtualbox.desktop \
158 $(VBOX_LICENSE_FILES) \
159 $(if $(VBOX_WITH_QT4_SUN),$(notdir $(wildcard $(PATH_BIN)/lib*VBox*)),) \
160 $(if $(VBOX_WITH_QT4_SUN),accessible/libqtaccessiblewidgets.so,) \
161 $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
162endif
163
164# Guest Additions
165ifdef VBOX_WITH_ADDITIONS_PACKING
166 VBOX_LNX_NO_STRIP += \
167 additions/VBoxGuestAdditions.iso
168endif
169
170# Documentation
171ifdef VBOX_WITH_DOCS_PACKING
172 VBOX_LNX_NO_STRIP += \
173 UserManual.pdf \
174 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),UserManual_$(f).pdf)
175 ifdef VBOX_WITH_DOCS_CHM
176 VBOX_LNX_NO_STRIP += \
177 VirtualBox.chm \
178 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm)
179 endif
180 VBOX_LNX_STRIP_BIN += \
181 $(if $(VBOX_WITH_KCHMVIEWER),kchmviewer,)
182endif
183
184# VRDP
185ifdef VBOX_WITH_VRDP
186 VBOX_LNX_STRIP_BIN += \
187 VBoxVRDP.so \
188 VRDPAuth.so
189 ifdef VBOX_WITH_VRDP_RDESKTOP
190 VBOX_LNX_NO_STRIP += \
191 rdesktop-vrdp.tar.gz
192 VBOX_LNX_NO_STRIP += \
193 rdesktop-vrdp-keymaps
194 VBOX_LNX_STRIP_BIN += \
195 rdesktop-vrdp
196 endif
197endif
198
199# Python XPCOM glue
200ifdef VBOX_WITH_PYTHON
201 VBOX_LNX_NO_STRIP += \
202 $(foreach f,$(notdir $(wildcard $(PATH_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
203 sdk/bindings/xpcom/python/xpcom/client/__init__.py \
204 sdk/bindings/xpcom/python/xpcom/server/__init__.py \
205 sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
206 sdk/bindings/xpcom/python/xpcom/server/factory.py \
207 sdk/bindings/xpcom/python/xpcom/server/loader.py \
208 sdk/bindings/xpcom/python/xpcom/server/module.py \
209 sdk/bindings/xpcom/python/xpcom/server/policy.py \
210 sdk/installer/vboxapisetup.py \
211 sdk/installer/vboxapi/__init__.py \
212 sdk/installer/vboxapi/VirtualBox_constants.py
213endif
214
215# Headless
216ifdef VBOX_WITH_HEADLESS
217 VBOX_LNX_STRIP_BIN += \
218 VBoxHeadless \
219 $(if $(VBOX_WITH_HARDENING),VBoxHeadless.so)
220endif
221
222# BFE
223ifdef VBOX_WITH_BFE
224 VBOX_LNX_STRIP_BIN += \
225 VBoxBFE \
226 $(if $(VBOX_WITH_HARDENING),VBoxBFE.so)
227endif
228
229# Webservices
230ifdef VBOX_WITH_WEBSERVICES
231 VBOX_LNX_STRIP_BIN += \
232 vboxwebsrv \
233 webtest
234endif
235
236# EFI firmware
237ifdef VBOX_WITH_EFIFW_PACKING
238 VBOX_LNX_NO_STRIP += \
239 VBoxEFI32.fd \
240 VBoxEFI64.fd
241endif
242
243#
244# All the bin files that goes into the archives.
245#
246VBOX_LNX_ARCH_FILES := $(VBOX_LNX_STRIP_BIN) $(VBOX_LNX_STRIP_OBJ) $(VBOX_LNX_NO_STRIP)
247
248# Cleanup of the files we copy/symlink from bin.
249OTHER_CLEAN += $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/,$(VBOX_LNX_ARCH_FILES)) \
250 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/,$(VBOX_LNX_STRIP_BIN))
251
252
253#
254# The generic installer.
255#
256$(PATH_BIN)/$(VBOX_LNX_PACKAGE_NAME): \
257 $(VBOX_LNX_INST_STAGE_DIR)/VirtualBox.tar.bz2 \
258 $(VBOX_VERSION_STAMP) \
259 $(VBOX_PATH_LNX_INST_SRC)/routines.sh \
260 $(VBOX_PATH_LNX_INST_SRC)/deffiles \
261 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \
262 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh \
263 $(VBOX_LNX_INST_OUT_DIR)/install.sh \
264 $(VBOX_PATH_LNX_INST_SRC)/vboxdrv-pardus.py \
265 $(VBOX_PATH_LNX_INST_SRC)/uninstall.sh \
266 $(wildcard $(PATH_BIN)/src/*) \
267 $(wildcard $(PATH_BIN)/src/*/*) \
268 $(wildcard $(PATH_BIN)/src/*/*/*) \
269 $(wildcard $(PATH_BIN)/src/*/*/*/*)
270 $(call MSG_TOOL,makeself,,$@)
271 $(QUIET)$(RM) -f $(wildcard $(PATH_BIN)/VirtualBox-*.run)
272 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/routines.sh $(VBOX_LNX_INST_STAGE_DIR)/
273 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/deffiles $(VBOX_LNX_INST_STAGE_DIR)/
274 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT) $(VBOX_LNX_INST_STAGE_DIR)/LICENSE)
275 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh $(VBOX_LNX_INST_STAGE_DIR)/
276 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/vboxdrv-pardus.py $(VBOX_LNX_INST_STAGE_DIR)/
277 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/install.sh $(VBOX_LNX_INST_STAGE_DIR)/
278 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/uninstall.sh $(VBOX_LNX_INST_STAGE_DIR)/
279 $(QUIET)$(RM) -f $@
280 $(QUIET)$(VBOX_MAKESELF) --follow --nocomp $(VBOX_LNX_INST_STAGE_DIR) $@ \
281 "VirtualBox for Linux installation" ./install.sh "\$$0 1> /dev/null"
282
283# files that needs editing before they can be included in the generic installer.
284$(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxdrv.sh.in | $$(dir $$@)
285 $(QUIET)$(SED_EXT) \
286 -e "s|%NOLSB%|yes|g" \
287 -e "s|%DEBIAN%||g" \
288 -e "s|%PACKAGE%|virtualbox|g" \
289 --output $@ \
290 $<
291
292$(VBOX_LNX_INST_OUT_DIR)/install.sh: $(VBOX_PATH_LNX_INST_SRC)/install.sh $(VBOX_VERSION_STAMP) | $$(dir $$@)
293 $(QUIET)$(SED) \
294 -e "s;_VERSION_;$(VBOX_VERSION_STRING);g" \
295 -e "s;_SVNREV_;$(VBOX_SVN_REV);g" \
296 -e "s;_BUILD_;$(date-utc );g" \
297 -e "s;_ARCH_;$(KBUILD_TARGET_ARCH);g" \
298 -e "s;_HARDENED_;$(VBOX_WITH_HARDENING);g" \
299 -e "s;_PYTHON_;$(VBOX_WITH_PYTHON);g" \
300 --output $@ \
301 $<
302
303#
304# .tar.bz2 for converting into .run
305#
306$(VBOX_LNX_INST_STAGE_DIR)/VirtualBox.tar.bz2: \
307 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/, $(VBOX_LNX_ARCH_FILES)) \
308 $(VBOX_LNX_INST_DEP_ON_MAKEFILE) \
309 $(VBOX_VERSION_STAMP)
310 $(call MSG_L1,Packing $@)
311 $(QUIET)$(RM) -f -- $@ $(patsubst %.bz2,%,$@)
312 $(QUIET)$(MKDIR) -p $(@D)
313ifdef VBOX_USE_PBZIP2
314 $(QUIET)tar --owner 0 --group 0 -cRhf $(patsubst %.bz2,%,$@) -C $(VBOX_LNX_INST_OUT_DIR)/archive $(VBOX_LNX_ARCH_FILES)
315 $(QUIET)pbzip2 $(patsubst %.bz2,%,$@)
316else
317 $(QUIET)tar --owner 0 --group 0 -cjRhf $@ -C $(VBOX_LNX_INST_OUT_DIR)/archive $(VBOX_LNX_ARCH_FILES)
318endif
319 $(QUIET)$(CHMOD) 0644 $@
320
321#
322# .tar.bz2 for distribution with the files under VirtualBox-<ver>/.
323#
324$(PATH_BIN)/VirtualBox.tar.bz2: \
325 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/, $(VBOX_LNX_ARCH_FILES)) \
326 $(VBOX_LNX_INST_DEP_ON_MAKEFILE) \
327 $(VBOX_VERSION_STAMP)
328 $(call MSG_L1,Packing $@)
329 $(QUIET)$(RM) -f -- $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-$(VBOX_VERSION_STRING) $@ $(patsubst %.bz2,%,$@)
330 $(QUIET)$(LN_SYMLINK) $(VBOX_LNX_INST_OUT_DIR)/archive/ $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-$(VBOX_VERSION_STRING)
331ifdef VBOX_USE_PBZIP2
332 $(QUIET)tar --owner 0 --group 0 -cRhf $(patsubst %.bz2,%,$@) -C $(VBOX_LNX_INST_OUT_DIR) \
333 $(addprefix VirtualBox-$(VBOX_VERSION_STRING)/,$(VBOX_LNX_ARCH_FILES))
334 $(QUIET)pbzip2 $(patsubst %.bz2,%,$@)
335else
336 $(QUIET)tar --owner 0 --group 0 -cjRhf $@ -C $(VBOX_LNX_INST_OUT_DIR) \
337 $(addprefix VirtualBox-$(VBOX_VERSION_STRING)/,$(VBOX_LNX_ARCH_FILES))
338endif
339 $(QUIET)$(RM) -f -- $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-$(VBOX_VERSION_STRING)
340
341
342# pattern rule for stripping and copying the VBOX_LNX_STRIP_BIN files to archive/
343$(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/,$(VBOX_LNX_STRIP_BIN)): \
344 $(VBOX_LNX_INST_OUT_DIR)/archive/% : $(PATH_BIN)/% \
345 $(if $(VBOX_NO_LINUX_RUN_INSTALLER),,\
346 $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/%) \
347 | $$(dir $$@)
348 $(call MSG_INST_FILE,$<,$@)
349 $(QUIET)$(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
350 $(QUIET)$(if $(VBOX_NO_LINUX_RUN_INSTALLER),,objcopy --add-gnu-debuglink=$(subst $(VBOX_LNX_INST_OUT_DIR)/archive,$(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH),$@) $@)
351
352# pattern rule for striping and copying the VBOX_LNX_STRIP_OBJ files to archive/
353$(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/,$(VBOX_LNX_STRIP_OBJ)): \
354 $(VBOX_LNX_INST_OUT_DIR)/archive/% : $(PATH_BIN)/% | $$(dir $$@)
355 $(call MSG_INST_FILE,$<,$@)
356ifeq ($(VBOX_DO_STRIP),)
357 $(QUIET)$(INSTALL) -m 0644 $< $@
358else # strip to temp file because of umask.
359 $(QUIET)objcopy --strip-unneeded -R .comment $< $@.tmp
360 $(QUIET)$(INSTALL) -m 0644 $@.tmp $@
361 $(QUIET)$(RM) -f -- $@.tmp
362endif
363
364# pattern rule for linking the VBOX_LNX_NO_STRIP into archive/
365$(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive/,$(VBOX_LNX_NO_STRIP)): \
366 $(VBOX_LNX_INST_OUT_DIR)/archive/% : $(PATH_BIN)/% | $$(dir $$@)
367 $(call MSG_INST_SYM,$<,$@)
368 $(QUIET)$(RM) -f $@
369 $(QUIET)$(LN_SYMLINK) $< $@
370
371# rules for creating directories in archive (the pattern rules depends on these). ## @todo use BLDDIRS
372BLDDIRS += $(foreach d,\
373 archive \
374 archive/components \
375 archive/nls \
376 $(if $(VBOX_WITH_QT4_SUN),archive/accessible,) \
377 $(if $(VBOX_WITH_PYTHON),\
378 archive/sdk/installer \
379 archive/sdk/installer/vboxapi \
380 archive/sdk/bindings/xpcom/python/xpcom \
381 archive/sdk/bindings/xpcom/python/xpcom/client \
382 archive/sdk/bindings/xpcom/python/xpcom/server,) \
383 archive/additions \
384 install\
385,$(VBOX_LNX_INST_OUT_DIR)/$(d)/)
386
387
388#
389# .tar.bz2 for with the debug info.
390#
391$(PATH_BIN)/VirtualBox-dbg.tar.bz2: \
392 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/, $(VBOX_LNX_STRIP_BIN))
393 $(call MSG_L1,Packing $@)
394 $(QUIET)$(RM) -f -- $@ $(patsubst %.bz2,%,$@)
395ifdef VBOX_USE_PBZIP2
396 $(QUIET)tar --owner 0 --group 0 -cRhf $(patsubst %.bz2,%,$@) -C $(VBOX_LNX_INST_OUT_DIR)/archive-dbg \
397 $(addprefix $(VBOX_LNX_DBG_PATH)/,$(VBOX_LNX_STRIP_BIN))
398 $(QUIET)pbzip2 $(patsubst %.bz2,%,$@)
399else
400 $(QUIET)tar --owner 0 --group 0 -cjRhf $@ -C $(VBOX_LNX_INST_OUT_DIR)/archive-dbg \
401 $(addprefix $(VBOX_LNX_DBG_PATH)/,$(VBOX_LNX_STRIP_BIN))
402endif
403
404# pattern rule for copying the debug info from the VBOX_LNX_STRIP_BIN files into archive-dbg/$(VBOX_LNX_DBG_PATH)/
405$(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/,$(VBOX_LNX_STRIP_BIN)): \
406 $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/% : $(PATH_BIN)/% | $$(dir $$@)
407 $(call MSG_TOOL,copydbg,$<,$@)
408 $(QUIET)objcopy --only-keep-debug $< $@
409
410# rules for creating directories in archive-dbg (the pattern rules depends on these). ## @todo use BLDDIRS
411BLDDIRS += $(foreach d,\
412 $(VBOX_LNX_DBG_PATH) \
413 $(VBOX_LNX_DBG_PATH)/components \
414,$(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(d)/)
415
416include $(KBUILD_PATH)/subfooter.kmk
417
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