VirtualBox

source: vbox/trunk/src/VBox/Additions/Makefile@ 633

Last change on this file since 633 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1#
2# Top-level makefile for the VirtualBox Guest Additions.
3#
4
5#
6# Copyright (C) 2006 InnoTek Systemberatung GmbH
7#
8# This file is part of VirtualBox Open Source Edition (OSE), as
9# available from http://www.virtualbox.org. This file is free software;
10# you can redistribute it and/or modify it under the terms of the GNU
11# General Public License as published by the Free Software Foundation,
12# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13# distribution. VirtualBox OSE is distributed in the hope that it will
14# be useful, but WITHOUT ANY WARRANTY of any kind.
15#
16# If you received this file as part of a commercial VirtualBox
17# distribution, then only the terms of your commercial VirtualBox
18# license agreement apply instead of the previous paragraph.
19#
20
21DEPTH = ../../..
22include $(PATH_KBUILD)/header.kmk
23
24SUBDIRS = common
25ifdef VBOX_WITH_WIN32_ADDITIONS
26SUBDIRS += WINNT
27endif
28ifdef VBOX_WITH_LINUX_ADDITIONS
29SUBDIRS += linux
30LINUXINSTALLER = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
31endif
32ifneq ($(VBOX_WITH_WIN32_ADDITIONS)$(VBOX_WITH_LINUX_ADDITIONS),)
33PACKING += $(PATH_BIN)/additions/VBoxGuestAdditions.iso
34endif
35
36LINUXINSTALLER_CROSS = $(PATH_ROOT)/out/linux.x86/$(BUILD_TYPE)/bin/additions/VBoxLinuxAdditions.run
37## @todo What's the use of the following 4 lines?
38ifdef VBOX_ADDITIONS_LINUX_CROSS
39OTHER_CLEAN += $(LINUXINSTALLER_CROSS)
40LINUXINSTALLER = $(LINUXINSTALLER_CROSS)
41endif
42
43
44include $(PATH_KBUILD)/footer.kmk
45
46
47ifdef VBOX_WITH_WIN32_ADDITIONS
48GUESTADDITIONS_WIN32_DEPS = $(PATH_BIN)/additions/VBoxGuest.sys \
49 ./WINNT/VBoxGuest/VBoxGuest.inf \
50 $(PATH_BIN)/additions/VBoxService.exe \
51 $(PATH_BIN)/additions/VBoxControl.exe \
52 $(PATH_BIN)/additions/VBCoInst.dll \
53 $(PATH_BIN)/additions/VBoxMouse.sys \
54 ./WINNT/MouseFilter/VBoxMouse.inf \
55 $(PATH_BIN)/additions/VBoxVideo.sys \
56 ./WINNT/Graphics/Miniport/VBoxVideo.inf \
57 $(PATH_BIN)/additions/VBoxDisp.dll \
58 $(PATH_BIN)/additions/VBoxGINA.dll \
59 $(PATH_BIN)/additions/VBoxGuestAdditions.exe \
60 ./WINNT/Installer/AUTORUN.INF
61GUESTADDITIONS_WIN32_FILESPEC = driver/VBoxGuest/VBoxGuest.sys=$(PATH_BIN)/additions/VBoxGuest.sys \
62 driver/VBoxGuest/VBoxGuest.inf=./WINNT/VBoxGuest/VBoxGuest.inf \
63 driver/VBoxGuest/VBoxService.exe=$(PATH_BIN)/additions/VBoxService.exe \
64 driver/VBoxGuest/VBoxControl.exe=$(PATH_BIN)/additions/VBoxControl.exe \
65 driver/VBoxGuest/VBCoInst.dll=$(PATH_BIN)/additions/VBCoInst.dll \
66 driver/VBoxGuest/VBoxMouse.sys=$(PATH_BIN)/additions/VBoxMouse.sys \
67 driver/VBoxGuest/VBoxMouse.inf=./WINNT/MouseFilter/VBoxMouse.inf \
68 driver/VBoxVideo/VBoxVideo.sys=$(PATH_BIN)/additions/VBoxVideo.sys \
69 driver/VBoxVideo/VBoxVideo.inf=./WINNT/Graphics/Miniport/VBoxVideo.inf \
70 driver/VBoxVideo/VBoxDisp.dll=$(PATH_BIN)/additions/VBoxDisp.dll \
71 gina/VBoxGINA.dll=$(PATH_BIN)/additions/VBoxGINA.dll \
72 VBoxGuestAdditions.exe=$(PATH_BIN)/additions/VBoxGuestAdditions.exe \
73 AUTORUN.INF=./WINNT/Installer/AUTORUN.INF
74endif
75
76ifdef LINUXINSTALLER
77GUESTADDITIONS_LINUX_DEPS = $(LINUXINSTALLER)
78GUESTADDITIONS_LINUX_FILESPEC = VBoxLinuxAdditions.run=$(LINUXINSTALLER)
79endif
80
81#
82# Build the Guest Additions ISO image.
83#
84$(PATH_BIN)/additions/VBoxGuestAdditions.iso: \
85 $(GUESTADDITIONS_WIN32_DEPS) $(GUESTADDITIONS_LINUX_DEPS) \
86 Makefile
87 $(call MSG_L1,Creating $@)
88 $(QUIET)$(VBOX_MKISOFS) -rational-rock -joliet -iso-level 4 -volid "VBOXADDITIONS" -l -graft-points -o $@ \
89 $(GUESTADDITIONS_WIN32_FILESPEC) $(GUESTADDITIONS_LINUX_FILESPEC)
90
91# build the Linux installer on a remote machine
92$(LINUXINSTALLER_CROSS):
93 ssh vbox@tinderrhel3 "cd /mnt/tinderwin_vbox/w32-rel ; ./tools/env.sh --no-wine kmk -C src/VBox/Runtime BUILD_TYPE=release VBOX_ADDITIONS_LINUX_ONLY=1"
94 ssh vbox@tinderrhel3 "cd /mnt/tinderwin_vbox/w32-rel ; ./tools/env.sh --no-wine kmk -C src/VBox/Additions/common BUILD_TYPE=release VBOX_ADDITIONS_LINUX_ONLY=1"
95 ssh vbox@tinderrhel3 "cd /mnt/tinderwin_vbox/w32-rel ; ./tools/env.sh --no-wine kmk -C src/VBox/Additions/linux BUILD_TYPE=release all packing"
96
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