Makefile revision 6b6b303e9b4239819e1f29557b5f3433ec4e1de8
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# $Revision$
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# VirtualBox Guest Additions Module Makefile.
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# Copyright (C) 2006-2009 Oracle Corporation
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# available from http://www.virtualbox.org. This file is free software;
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# you can redistribute it and/or modify it under the terms of the GNU
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# General Public License (GPL) as published by the Free Software
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# First, figure out which architecture we're targeting and the build type.
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# (We have to support basic cross building (ARCH=i386|x86_64).)
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync# While at it, warn about BUILD_* vars found to help with user problems.
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsyncifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsyncifneq ($(filter-out amd64 x86,$(BUILD_TARGET_ARCH)),)
b8014c3bbb8a0f9d16e82278eabba771cbfd9b2evboxsync $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
BUILD_TYPE :=
OBJS = \
Init.o \
SysHlp.o \
VMMDev.o \
OBJS += \
ifeq ($(shell if echo "$(VERSION).$(PATCHLEVEL)." | grep '2\.4\.' > /dev/null; then echo yes; fi),yes)
export INCL
MODULE_EXT := o
$(MODULE):