Makefile.kmk revision 456f370fcde010d585d9174df045978a6c9893c1
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Top-level makefile for the VirtualBox Guest Additions.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Copyright (C) 2006-2007 Sun Microsystems, Inc.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# available from http://www.virtualbox.org. This file is free software;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# you can redistribute it and/or modify it under the terms of the GNU
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# General Public License (GPL) as published by the Free Software
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# additional information or have any questions.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncifdef VBOX_KBUILD_HACKING
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSUB_DEPTH = ../../..
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSUB_DEPTH = .
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEPTH = ../../..
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncinclude $(KBUILD_PATH)/subheader.kmk
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Cross building of the additions is generally done by remote building
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# by means of smbfs, cifs, VBOX_ONLY_ADDITIONS=1 and setting KBUILD_TARGET
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# and KBUILD_TARGET_ARCH to the desired target and architecture.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Limited support for cross building the windows additions using wine
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# is provided. There are a couple of issues with the approach (lack of
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# signing, no VC++ 8 support, ++) that makes it unsuitable for releases.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Note! VBOX_WITH_ADDITIONS is checked for by our parent makefile.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Note! VBOX_WITH_X11_ADDITIONS is set in Config.kmk
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# Note! The additions build box will set the VBOX_WITH_ADDITIONS_ISO.win.x86
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync# variables before invoking us from the root makefile.
include $(PATH_SUB_CURRENT)/common/Makefile.kmk
include $(PATH_SUB_CURRENT)/x11/Makefile.kmk
include $(PATH_SUB_CURRENT)/freebsd/Makefile.kmk
include $(PATH_SUB_CURRENT)/linux/Makefile.kmk
# include $(PATH_SUB_CURRENT)/os2/Makefile.kmk
include $(PATH_SUB_CURRENT)/solaris/Makefile.kmk
include $(PATH_SUB_CURRENT)/WINNT/Makefile.kmk
PACKING += $(PATH_BIN)/additions/VBoxGuestAdditions.iso
include $(KBUILD_PATH)/subfooter.kmk
# File per-OS/arch file specs for the additions iso (alphabetical order).
# We test for the VBOX_WITH_ADDITIONS_ISO.os.arch so that we don't have to
# do the $(if )'ing down where the GUESTADDITIONS_FILESPEC.os.arch down
## @todo 64-bit additions: rename this package, update docs (?) and tests (?). create wrapper? create gnome/kde autorun app (xplatform) ?
# some Autorun.inf magic for this or that it can be done from the x86 installer.
## @todo We're missing the .cat files and using the wrong .inf files here! This is kind of serious...
endif # win.x86
$(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso: \
@# use iso-level 3 which is the most ISO conforming level with least restrictions; iso-level 4 maps to iso-level 2