1
0
Fork 0
forked from len0rd/rockbox

make it bourne shell pure

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2129 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-09-02 12:33:18 +00:00
parent 42c125fad6
commit e800bca6dc

38
tools/configure vendored
View file

@ -24,7 +24,7 @@ if test -r "configure"; then
# this is a check for a configure script in the current directory, it there # this is a check for a configure script in the current directory, it there
# is one, try to figure out if it is this one! # is one, try to figure out if it is this one!
if { grep "^# Jukebox" configure >/dev/null 2>&1 } ; then if { grep "^# Jukebox" configure >/dev/null 2>&1 ; } then
echo "WEEEEEEEEP. Don't run this configure script within the tools directory." echo "WEEEEEEEEP. Don't run this configure script within the tools directory."
echo "It will only cause you pain and grief. Instead do this:" echo "It will only cause you pain and grief. Instead do this:"
echo "" echo ""
@ -206,6 +206,17 @@ if [ -z "$target" ]; then
esac esac
fi fi
<<<<<<< configure
if [ "-DARCHOS_RECORDER" = "$target" ] ; then
echo "Loadable fonts support? (y|n) [n]"
getit=`input`;
if [ "y" = "$getit" ] ; then
loadable_fonts="-DLOADABLE_FONTS"
fi
fi
=======
if [ "-" = "$extra_defines" ]; then if [ "-" = "$extra_defines" ]; then
extra_defines="" extra_defines=""
@ -244,7 +255,11 @@ if [ "-" = "$extra_defines" ]; then
fi fi
fi fi
<<<<<<< configure
>>>>>>> 1.25
=======
>>>>>>> 1.35
if [ -z "$debug" ]; then if [ -z "$debug" ]; then
################################################################## ##################################################################
# Figure out debug on/off # Figure out debug on/off
@ -320,7 +335,15 @@ sed > Makefile \
-e "s,@APPSDIR@,${appsdir},g" \ -e "s,@APPSDIR@,${appsdir},g" \
-e "s,@DEBUG@,${debug},g" \ -e "s,@DEBUG@,${debug},g" \
-e "s,@TARGET@,${target},g" \ -e "s,@TARGET@,${target},g" \
<<<<<<< configure
<<<<<<< configure
-e "s,@LOADABLE_FONTS@,${loadable_fonts},g" \
=======
-e "s,@EXTRA_DEFINES@,${extra_defines},g" \
>>>>>>> 1.25
=======
-e "s,@EXTRA_DEFINES@,\"${extra_defines}\",g" \ -e "s,@EXTRA_DEFINES@,\"${extra_defines}\",g" \
>>>>>>> 1.35
-e "s,@PWD@,${pwd},g" \ -e "s,@PWD@,${pwd},g" \
<<EOF <<EOF
## Automaticly generated. http://rockbox.haxx.se ## Automaticly generated. http://rockbox.haxx.se
@ -332,16 +355,29 @@ TARGET=@TARGET@
THISDIR="@PWD@" THISDIR="@PWD@"
VERSION=\$(shell date +%y%m%d-%H%M) VERSION=\$(shell date +%y%m%d-%H%M)
<<<<<<< configure
EXTRA_CFLAGS=@LOADABLE_FONTS@
=======
EXTRA_DEFINES=@EXTRA_DEFINES@ EXTRA_DEFINES=@EXTRA_DEFINES@
>>>>>>> 1.25
.PHONY: firmware apps .PHONY: firmware apps
all: firmware apps all: firmware apps
for f in ../tools/*.ajf ; do cp \$\$f . ; done
firmware: firmware:
<<<<<<< configure
make -C \$(FIRMDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) EXTRA_CFLAGS=\$(EXTRA_CFLAGS)
=======
\$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) EXTRA_DEFINES=\$(EXTRA_DEFINES) \$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) EXTRA_DEFINES=\$(EXTRA_DEFINES)
>>>>>>> 1.25
apps: apps:
<<<<<<< configure
make -C \$(APPSDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) VERSION=\$(VERSION) EXTRA_CFLAGS=\$(EXTRA_CFLAGS)
=======
\$(MAKE) -C \$(APPSDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) VERSION=\$(VERSION) EXTRA_DEFINES=\$(EXTRA_DEFINES) \$(MAKE) -C \$(APPSDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) VERSION=\$(VERSION) EXTRA_DEFINES=\$(EXTRA_DEFINES)
>>>>>>> 1.25
clean-firmware: clean-firmware:
\$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) OBJDIR=\$(THISDIR) clean \$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) OBJDIR=\$(THISDIR) clean