VirtualBox

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

Last change on this file since 2827 was 2707, checked in by vboxsync, 18 years ago

mkisofs msg.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.8 KB
Line 
1# $Id: Makefile.kmk 2707 2007-05-18 12:53:00Z vboxsync $
2## @file
3# Top-level makefile for the VirtualBox Guest Additions.
4#
5
6#
7# Copyright (C) 2006 InnoTek Systemberatung GmbH
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 as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# If you received this file as part of a commercial VirtualBox
18# distribution, then only the terms of your commercial VirtualBox
19# license agreement apply instead of the previous paragraph.
20#
21
22DEPTH = ../../..
23include $(PATH_KBUILD)/subheader.kmk
24
25# Include sub-makefiles.
26include $(PATH_SUB_CURRENT)/common/Makefile.kmk
27ifdef VBOX_WITH_WIN32_ADDITIONS
28include $(PATH_SUB_CURRENT)/WINNT/Makefile.kmk
29endif
30
31ifdef VBOX_WITH_LINUX_ADDITIONS
32SUBDIRS += linux
33LINUXINSTALLER = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
34endif
35ifneq ($(VBOX_WITH_WIN32_ADDITIONS)$(VBOX_WITH_LINUX_ADDITIONS),)
36PACKING += $(PATH_BIN)/additions/VBoxGuestAdditions.iso
37endif
38
39LINUXINSTALLER_CROSS = $(PATH_ROOT)/out/linux.x86/$(BUILD_TYPE)/bin/additions/VBoxLinuxAdditions.run
40# If the build (Windows host only, problem doesn't exist for Linux) should
41# include Linux additions, set VBOX_ADDITIONS_LINUX_CROSS. This causes the
42# Linux additions to be built via a ssh session (to the host specified in
43# VBOX_ADDITIONS_LINUX_CROSS_HOST, usually set in LocalConfig.kmk. Needs
44# eventually be generalized once more additions platforms are supported.
45# This host has the Windows build box tree mounted, in order to make 100% sure
46# that a complete build is created from a single consistent revision.
47ifdef VBOX_ADDITIONS_LINUX_CROSS
48OTHER_CLEAN += $(LINUXINSTALLER_CROSS)
49LINUXINSTALLER = $(LINUXINSTALLER_CROSS)
50endif
51
52
53include $(PATH_KBUILD)/subfooter.kmk
54
55
56ifdef VBOX_WITH_WIN32_ADDITIONS
57GUESTADDITIONS_WIN32_DEPS = $(PATH_BIN)/additions/VBoxGuest.sys \
58 ./WINNT/VBoxGuest/VBoxGuest.inf \
59 $(PATH_BIN)/additions/VBoxService.exe \
60 $(PATH_BIN)/additions/VBoxControl.exe \
61 $(PATH_BIN)/additions/VBCoInst.dll \
62 $(PATH_BIN)/additions/VBoxMouse.sys \
63 ./WINNT/MouseFilter/VBoxMouse.inf \
64 $(PATH_BIN)/additions/VBoxVideo.sys \
65 ./WINNT/Graphics/Miniport/VBoxVideo.inf \
66 $(PATH_BIN)/additions/VBoxDisp.dll \
67 $(PATH_BIN)/additions/VBoxGINA.dll \
68 $(PATH_BIN)/additions/VBoxGuestAdditions.exe \
69 ./WINNT/Installer/AUTORUN.INF \
70 ./WINNT/Network/AMD/netamd.inf \
71 ./WINNT/Network/AMD/pcntpci5.cat \
72 ./WINNT/Network/AMD/PCNTPCI5.sys
73GUESTADDITIONS_WIN32_FILESPEC = driver/VBoxGuest/VBoxGuest.sys=$(PATH_BIN)/additions/VBoxGuest.sys \
74 driver/VBoxGuest/VBoxGuest.inf=./WINNT/VBoxGuest/VBoxGuest.inf \
75 driver/VBoxGuest/VBoxService.exe=$(PATH_BIN)/additions/VBoxService.exe \
76 driver/VBoxGuest/VBoxControl.exe=$(PATH_BIN)/additions/VBoxControl.exe \
77 driver/VBoxGuest/VBCoInst.dll=$(PATH_BIN)/additions/VBCoInst.dll \
78 driver/VBoxGuest/VBoxMouse.sys=$(PATH_BIN)/additions/VBoxMouse.sys \
79 driver/VBoxGuest/VBoxMouse.inf=./WINNT/MouseFilter/VBoxMouse.inf \
80 driver/VBoxVideo/VBoxVideo.sys=$(PATH_BIN)/additions/VBoxVideo.sys \
81 driver/VBoxVideo/VBoxVideo.inf=./WINNT/Graphics/Miniport/VBoxVideo.inf \
82 driver/VBoxVideo/VBoxDisp.dll=$(PATH_BIN)/additions/VBoxDisp.dll \
83 gina/VBoxGINA.dll=$(PATH_BIN)/additions/VBoxGINA.dll \
84 AMD_PCnet/netamd.inf=./WINNT/Network/AMD/netamd.inf \
85 AMD_PCnet/pcntpci5.cat=./WINNT/Network/AMD/pcntpci5.cat \
86 AMD_PCnet/PCNTPCI5.sys=./WINNT/Network/AMD/PCNTPCI5.sys \
87 VBoxGuestAdditions.exe=$(PATH_BIN)/additions/VBoxGuestAdditions.exe \
88 AUTORUN.INF=./WINNT/Installer/AUTORUN.INF
89endif
90
91ifdef LINUXINSTALLER
92GUESTADDITIONS_LINUX_DEPS = $(LINUXINSTALLER)
93GUESTADDITIONS_LINUX_FILESPEC = VBoxLinuxAdditions.run=$(LINUXINSTALLER)
94endif
95
96#
97# Build the Guest Additions ISO image.
98#
99$(PATH_BIN)/additions/VBoxGuestAdditions.iso: \
100 $(GUESTADDITIONS_WIN32_DEPS) $(GUESTADDITIONS_LINUX_DEPS) \
101 Makefile.kmk
102 $(call MSG_TOOL,mkisofs,,$@)
103 $(QUIET)$(VBOX_MKISOFS) -rational-rock -joliet -iso-level 4 -volid "VBOXADDITIONS" -l -graft-points -o $@ \
104 $(GUESTADDITIONS_WIN32_FILESPEC) $(GUESTADDITIONS_LINUX_FILESPEC)
105
106# build the Linux installer on a remote machine
107$(LINUXINSTALLER_CROSS):
108 ssh vbox@$(VBOX_ADDITIONS_LINUX_CROSS_HOST) "./enter-rhel3-jail /mnt/tinderwin_vbox/w32-rel/tools/env.sh --no-wine kmk -C src/VBox/Runtime BUILD_TYPE=release VBOX_ADDITIONS_LINUX_ONLY=1"
109 ssh vbox@$(VBOX_ADDITIONS_LINUX_CROSS_HOST) "./enter-rhel3-jail /mnt/tinderwin_vbox/w32-rel/tools/env.sh --no-wine kmk -C src/VBox/Additions/common BUILD_TYPE=release VBOX_ADDITIONS_LINUX_ONLY=1"
110 ssh vbox@$(VBOX_ADDITIONS_LINUX_CROSS_HOST) "./enter-rhel3-jail /mnt/tinderwin_vbox/w32-rel/tools/env.sh --no-wine kmk -C src/VBox/Additions/linux BUILD_TYPE=release all packing"
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