1
0
Fork 0
forked from len0rd/rockbox

set compiler options here too, you MUST re-run configure once the next

Makefile commit is made


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5157 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2004-10-04 13:02:41 +00:00
parent b25eb29100
commit 235b50b42d

8
tools/configure vendored
View file

@ -8,6 +8,8 @@
# $Id$ # $Id$
# #
# global CC options for all platforms
CCOPTS="-W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes"
# #
# Begin Function Definitions # Begin Function Definitions
@ -23,6 +25,7 @@ shcc () {
AR=sh-elf-ar AR=sh-elf-ar
AS=sh-elf-as AS=sh-elf-as
OC=sh-elf-objcopy OC=sh-elf-objcopy
GCCOPTS="$CCOPTS -m1"
} }
coldfirecc () { coldfirecc () {
@ -31,6 +34,7 @@ coldfirecc () {
AR=m68k-elf-ar AR=m68k-elf-ar
AS=m68k-elf-as AS=m68k-elf-as
OC=m68k-elf-objcopy OC=m68k-elf-objcopy
GCCOPTS="$CCOPTS -m5200"
} }
whichsim () { whichsim () {
@ -376,10 +380,12 @@ if [ -z "$debug" ]; then
[Dd]) [Dd])
debug="1" debug="1"
echo "Debug build selected" echo "Debug build selected"
GCCOPTS="$GCCOPTS -g -DDEBUG"
;; ;;
*) *)
debug="" debug=""
echo "Normal build selected" echo "Normal build selected"
GCCOPTS="$GCCOPTS -fomit-frame-pointer -fschedule-insns"
;; ;;
esac esac
@ -424,6 +430,7 @@ sed > Makefile \
-e "s,@APPEXTRA@,${appextra},g" \ -e "s,@APPEXTRA@,${appextra},g" \
-e "s,@ARCHOSROM@,${archosrom},g" \ -e "s,@ARCHOSROM@,${archosrom},g" \
-e "s,@PLUGINS@,${plugins},g" \ -e "s,@PLUGINS@,${plugins},g" \
-e "s,@GCCOPTS@,${GCCOPTS},g" \
<<EOF <<EOF
## Automaticly generated. http://rockbox.haxx.se ## Automaticly generated. http://rockbox.haxx.se
@ -449,6 +456,7 @@ export LD=@LD@
export AR=@AR@ export AR=@AR@
export AS=@AS@ export AS=@AS@
export OC=@OC@ export OC=@OC@
export GCCOPTS=@GCCOPTS@
.PHONY: all clean tags zip .PHONY: all clean tags zip