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 |
|
---|
21 | DEPTH = ../../..
|
---|
22 | include $(PATH_KBUILD)/header.kmk
|
---|
23 |
|
---|
24 | SUBDIRS = common
|
---|
25 | ifdef VBOX_WITH_WIN32_ADDITIONS
|
---|
26 | SUBDIRS += WINNT
|
---|
27 | endif
|
---|
28 | ifdef VBOX_WITH_LINUX_ADDITIONS
|
---|
29 | SUBDIRS += linux
|
---|
30 | LINUXINSTALLER = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
|
---|
31 | endif
|
---|
32 | ifneq ($(VBOX_WITH_WIN32_ADDITIONS)$(VBOX_WITH_LINUX_ADDITIONS),)
|
---|
33 | PACKING += $(PATH_BIN)/additions/VBoxGuestAdditions.iso
|
---|
34 | endif
|
---|
35 |
|
---|
36 | LINUXINSTALLER_CROSS = $(PATH_ROOT)/out/linux.x86/$(BUILD_TYPE)/bin/additions/VBoxLinuxAdditions.run
|
---|
37 | ## @todo What's the use of the following 4 lines?
|
---|
38 | ifdef VBOX_ADDITIONS_LINUX_CROSS
|
---|
39 | OTHER_CLEAN += $(LINUXINSTALLER_CROSS)
|
---|
40 | LINUXINSTALLER = $(LINUXINSTALLER_CROSS)
|
---|
41 | endif
|
---|
42 |
|
---|
43 |
|
---|
44 | include $(PATH_KBUILD)/footer.kmk
|
---|
45 |
|
---|
46 |
|
---|
47 | ifdef VBOX_WITH_WIN32_ADDITIONS
|
---|
48 | GUESTADDITIONS_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
|
---|
61 | GUESTADDITIONS_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
|
---|
74 | endif
|
---|
75 |
|
---|
76 | ifdef LINUXINSTALLER
|
---|
77 | GUESTADDITIONS_LINUX_DEPS = $(LINUXINSTALLER)
|
---|
78 | GUESTADDITIONS_LINUX_FILESPEC = VBoxLinuxAdditions.run=$(LINUXINSTALLER)
|
---|
79 | endif
|
---|
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 |
|
---|