improved platform targeting

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9497 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2004-10-25 08:44:06 +00:00
parent 739131e728
commit a17b9c0c08
2 changed files with 29 additions and 7 deletions

View File

@ -81,9 +81,28 @@ C++FLAGS += -nostdinc ;
# issues, they deprecated that nice function. This will enable it again: # issues, they deprecated that nice function. This will enable it again:
C++FLAGS += -D_ZETA_USING_DEPRECATED_API_=1 ; C++FLAGS += -D_ZETA_USING_DEPRECATED_API_=1 ;
if $(TARGET_PLATFORM) = r5 { switch $(TARGET_PLATFORM)
{
case r5 :
{
C++FLAGS += -DCOMPILE_FOR_R5 ; C++FLAGS += -DCOMPILE_FOR_R5 ;
} }
case bone :
{
BONE_COMPATIBLE = true ;
}
case dano :
{
BONE_COMPATIBLE = true ;
DANO_COMPATIBLE = true ;
}
case haiku :
{
BONE_COMPATIBLE = true ;
DANO_COMPATIBLE = true ;
HAIKU_COMPATIBLE = true ;
}
}
# Determine if we're building on PPC or x86 # Determine if we're building on PPC or x86
# Determine mimetype of executable # Determine mimetype of executable

13
configure vendored
View File

@ -18,6 +18,7 @@ options:
(device or image). (device or image).
--bochs-debug Activates bochs serial debug emulation. --bochs-debug Activates bochs serial debug emulation.
--target=TARGET Select build target platform. [default=${target}] --target=TARGET Select build target platform. [default=${target}]
valid targets=r5,bone,dano,haiku
--include-gpl-addons Include GPL licensed add-ons. --include-gpl-addons Include GPL licensed add-ons.
--help Prints out this help. --help Prints out this help.
EOF EOF
@ -66,11 +67,13 @@ gcc_version=
floppy= floppy=
bochs_debug=0 bochs_debug=0
include_gpl_addons=0 include_gpl_addons=0
if (echo $BEINCLUDES | grep 'headers/be/bone' > /dev/null); then revision=`uname -r`
target=bone case "$revision" in
else 5.1) target=dano ;;
target=r5 5.0.4) target=bone ;;
fi 5.0*) target=r5 ;;
*) target="$platform" ;;
esac
# parse parameters # parse parameters
# #