Makefile revision 37136b5ecb07042e5ba50f86849a79d1cba5d5f1
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# VirtualBox Guest Additions Module Makefile.
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# (For 2.6.x this file must be 'Makefile'!)
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# Copyright (C) 2006-2007 Sun Microsystems, Inc.
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# This file is part of VirtualBox Open Source Edition (OSE), as
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# available from http://www.virtualbox.org. This file is free software;
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# you can redistribute it and/or modify it under the terms of the GNU
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# General Public License (GPL) as published by the Free Software
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# Foundation, in version 2 as it comes in the "COPYING" file of the
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# Clara, CA 95054 USA or visit http://www.sun.com if you need
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# additional information or have any questions.
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# First, figure out which architecture we're targeting and the build type.
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# (We have to support basic cross building (ARCH=i386|x86_64).)
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings# While at it, warn about BUILD_* vars found to help with user problems.
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbingsifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbingsifneq ($(filter-out amd64 x86,$(BUILD_TARGET_ARCH)),)
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings ifneq ($(BUILD_TARGET_ARCH),$(BUILD_TARGET_ARCH_DEF))
449854c2a07b50ea64d9d6a8b03d18d4afeeee43Ken Stubbings $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
BUILD_TYPE :=
OBJS = \
Init.o \
SysHlp.o \
VMMDev.o \
divdi3.o \
moddi3.o \
OBJS += \
ifeq ($(shell if echo "$(VERSION).$(PATCHLEVEL)." | grep '2\.4\.' > /dev/null; then echo yes; fi),yes)
export INCL
MODULE_EXT := o
$(MODULE):