2002-05-23 09:11:35 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
2002-09-02 11:50:52 +00:00
|
|
|
|
2002-10-17 09:08:05 +00:00
|
|
|
#
|
|
|
|
# Begin Function Definitions
|
|
|
|
#
|
2002-05-23 09:11:35 +00:00
|
|
|
input() {
|
|
|
|
read response
|
|
|
|
echo $response
|
|
|
|
}
|
|
|
|
|
2002-10-17 09:19:34 +00:00
|
|
|
whichsim () {
|
2002-08-02 12:06:07 +00:00
|
|
|
|
|
|
|
if [ -z "$simver" ]; then
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# Figure out win32/x11 GUI
|
|
|
|
#
|
|
|
|
echo ""
|
|
|
|
echo "Build (W)in32 or (X)11 GUI version? (X)"
|
|
|
|
|
|
|
|
option=`input`;
|
|
|
|
|
|
|
|
case $option in
|
|
|
|
[Ww])
|
|
|
|
simver="win32"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
simver="x11"
|
|
|
|
;;
|
|
|
|
esac
|
2003-02-26 09:13:47 +00:00
|
|
|
echo "Selected $simver simulator"
|
2002-08-02 12:06:07 +00:00
|
|
|
fi
|
2002-10-17 09:19:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
simul () {
|
2002-08-02 12:06:07 +00:00
|
|
|
|
2002-05-31 07:22:38 +00:00
|
|
|
sed > Makefile \
|
2004-05-26 11:07:16 +00:00
|
|
|
-e "s,@ROOTDIR@,${rootdir},g" \
|
2003-01-16 14:37:30 +00:00
|
|
|
-e "s,@ARCHOS@,${archos},g" \
|
2002-05-31 07:22:38 +00:00
|
|
|
-e "s,@DEBUG@,${debug},g" \
|
|
|
|
-e "s,@DISPLAY@,${display},g" \
|
|
|
|
-e "s,@KEYPAD@,${keypad},g" \
|
|
|
|
-e "s,@PWD@,${pwd},g" \
|
2002-09-20 06:38:38 +00:00
|
|
|
-e "s,@LANGUAGE@,${language},g" \
|
2004-06-14 15:05:58 +00:00
|
|
|
-e "s,@TARGET@,${target},g" \
|
2002-08-02 12:06:07 +00:00
|
|
|
-e "s,@SIMVER@,${simver},g" \
|
2002-05-31 07:22:38 +00:00
|
|
|
<<EOF
|
2002-08-11 09:17:47 +00:00
|
|
|
## Automaticly generated. http://rockbox.haxx.se
|
2002-05-31 07:22:38 +00:00
|
|
|
|
2003-01-16 14:37:30 +00:00
|
|
|
ARCHOS=@ARCHOS@
|
2004-05-26 11:07:16 +00:00
|
|
|
ROOTDIR=@ROOTDIR@
|
|
|
|
SIMDIR=\$(ROOTDIR)/uisimulator/@SIMVER@
|
2004-06-14 15:05:58 +00:00
|
|
|
TOOLSDIR=\$(ROOTDIR)/tools
|
2002-05-31 07:22:38 +00:00
|
|
|
DEBUG=@DEBUG@
|
|
|
|
DISPLAY=@DISPLAY@
|
|
|
|
KEYPAD=@KEYPAD@
|
|
|
|
THISDIR="@PWD@"
|
2002-08-02 12:06:07 +00:00
|
|
|
SIMVER=@SIMVER@
|
2004-06-14 15:05:58 +00:00
|
|
|
TARGET=@TARGET@
|
2002-09-20 06:38:38 +00:00
|
|
|
LANGUAGE=@LANGUAGE@
|
2002-07-15 13:19:00 +00:00
|
|
|
VERSION=\$(shell date +%y%m%d-%H%M)
|
2002-05-31 07:22:38 +00:00
|
|
|
|
2002-07-26 14:13:03 +00:00
|
|
|
.PHONY:
|
2002-05-31 07:22:38 +00:00
|
|
|
|
|
|
|
all: sim
|
|
|
|
|
|
|
|
sim:
|
2003-11-26 14:10:21 +00:00
|
|
|
\$(MAKE) -C \$(SIMDIR) DISPLAY=\$(DISPLAY) KEYPAD=\$(KEYPAD) OBJDIR=\$(THISDIR) VERSION=\$(VERSION) LANGUAGE=\$(LANGUAGE)
|
2002-05-31 07:22:38 +00:00
|
|
|
|
2002-08-15 10:07:27 +00:00
|
|
|
clean:
|
2002-08-07 14:37:53 +00:00
|
|
|
\$(MAKE) -C \$(SIMDIR) DISPLAY=\$(DISPLAY) KEYPAD=\$(KEYPAD) OBJDIR=\$(THISDIR) clean
|
2004-08-24 09:37:30 +00:00
|
|
|
rm -rf rockbox.zip
|
2002-05-31 07:22:38 +00:00
|
|
|
|
2002-08-15 10:07:27 +00:00
|
|
|
tags:
|
|
|
|
@rm -f TAGS
|
|
|
|
make -C \$(SIMDIR) DISPLAY=\$(DISPLAY) KEYPAD=\$(KEYPAD) OBJDIR=\$(THISDIR) tags
|
2002-05-31 07:22:38 +00:00
|
|
|
|
2004-06-14 15:05:58 +00:00
|
|
|
zip:
|
2004-08-24 15:13:08 +00:00
|
|
|
\$(TOOLSDIR)/buildzip.pl -r "\$(ROOTDIR)" sim\$(TARGET)
|
2004-06-14 15:05:58 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
@echo "installing a full setup in your archos dir"
|
|
|
|
@(make zip && cd archos && unzip -oq ../rockbox.zip)
|
2002-05-31 07:22:38 +00:00
|
|
|
EOF
|
|
|
|
|
2002-06-06 13:33:38 +00:00
|
|
|
echo "Created Makefile"
|
2002-05-31 08:38:35 +00:00
|
|
|
|
2002-06-06 13:33:38 +00:00
|
|
|
if [ -d "archos" ]; then
|
|
|
|
echo "sub directory archos already present"
|
|
|
|
else
|
|
|
|
mkdir archos
|
|
|
|
echo "created an archos subdirectory for simulating the hard disk"
|
|
|
|
fi
|
2002-05-31 08:38:35 +00:00
|
|
|
|
2002-05-31 07:22:38 +00:00
|
|
|
}
|
|
|
|
|
2002-10-17 09:08:05 +00:00
|
|
|
picklang() {
|
|
|
|
# figure out which languages that are around
|
2004-05-26 11:07:16 +00:00
|
|
|
for file in $rootdir/apps/lang/*.lang; do
|
2002-10-17 09:08:05 +00:00
|
|
|
clean=`echo $file | sed -e 's:.*/::g' | cut "-d." -f1`
|
|
|
|
langs="$langs $clean"
|
|
|
|
done
|
|
|
|
|
|
|
|
num=1
|
|
|
|
for one in $langs; do
|
|
|
|
echo "$num. $one"
|
|
|
|
num=`expr $num + 1`
|
|
|
|
done
|
|
|
|
|
|
|
|
read pick
|
|
|
|
return $pick;
|
|
|
|
}
|
|
|
|
|
|
|
|
whichlang() {
|
|
|
|
num=1
|
|
|
|
for one in $langs; do
|
|
|
|
if [ "$num" = "$pick" ]; then
|
|
|
|
echo $one
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
num=`expr $num + 1`
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
target=$1
|
|
|
|
debug=$2
|
|
|
|
|
|
|
|
if test "$1" = "--help"; then
|
|
|
|
echo "Rockbox configure script."
|
|
|
|
echo "Invoke this in a directory to generate a Makefile to build Rockbox"
|
|
|
|
echo "Do *NOT* run this within the tools directory!"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -r "configure"; then
|
|
|
|
# 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!
|
|
|
|
|
|
|
|
if { grep "^# Jukebox" configure >/dev/null 2>&1 ; } then
|
|
|
|
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 ""
|
|
|
|
echo " cd .."
|
|
|
|
echo " mkdir build-dir"
|
|
|
|
echo " cd build-dir"
|
|
|
|
echo " ../tools/configure"
|
|
|
|
echo ""
|
|
|
|
echo "Much happiness will arise from this. Enjoy"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2002-05-31 08:21:20 +00:00
|
|
|
if [ "$target" = "--help" -o \
|
|
|
|
"$target" = "-h" ]; then
|
|
|
|
echo "Just invoke the script and answer the questions."
|
|
|
|
echo "This script will write a Makefile for you"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2002-05-31 07:22:38 +00:00
|
|
|
# get our current directory
|
|
|
|
pwd=`pwd`;
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2002-05-23 10:10:44 +00:00
|
|
|
if [ "$target" = "update" ]; then
|
2003-02-26 09:13:47 +00:00
|
|
|
update="1"
|
2002-05-23 10:10:44 +00:00
|
|
|
target=""
|
|
|
|
if [ -f Makefile ]; then
|
|
|
|
if { grep "^## Auto" Makefile >/dev/null 2>&1 ; } then
|
|
|
|
echo "Existing generated Makefile found. Getting defaults from it."
|
2003-01-16 14:37:30 +00:00
|
|
|
archos=`grep "^ARCHOS=" Makefile | cut -d= -f2-`
|
2002-05-23 10:10:44 +00:00
|
|
|
debug=`grep "^DEBUG=" Makefile | cut -d= -f2-`
|
2002-09-20 06:38:38 +00:00
|
|
|
language=`grep "^LANGUAGE=" Makefile | cut -d= -f2-`
|
2003-02-26 09:13:47 +00:00
|
|
|
memory=`grep "^MEMORYSIZE=" Makefile | cut -d= -f2-`
|
2004-05-26 11:07:16 +00:00
|
|
|
rootdir=`grep "^ROOTDIR=" Makefile | cut -d= -f2-`
|
2004-06-14 15:05:58 +00:00
|
|
|
target=`grep "^TARGET=" Makefile | cut -d= -f2-`
|
2002-06-03 21:56:48 +00:00
|
|
|
|
|
|
|
if [ "$debug" = "SIMULATOR=1" ]; then
|
|
|
|
simulator="yes"
|
2002-06-03 22:26:56 +00:00
|
|
|
display=`grep "^DISPLAY=" Makefile | cut -d= -f2-`
|
|
|
|
keypad=`grep "^KEYPAD=" Makefile | cut -d= -f2-`
|
2002-08-02 12:06:07 +00:00
|
|
|
simver=`grep "^SIMVER=" Makefile | cut -d= -f2-`
|
2002-06-03 21:56:48 +00:00
|
|
|
fi
|
2002-05-23 10:10:44 +00:00
|
|
|
fi
|
|
|
|
fi
|
2002-05-31 07:22:38 +00:00
|
|
|
else
|
|
|
|
|
2003-02-26 09:13:47 +00:00
|
|
|
echo "This script will setup your Rockbox build environment."
|
|
|
|
echo "Further docs here: http://rockbox.haxx.se/docs/"
|
2002-05-31 07:22:38 +00:00
|
|
|
echo ""
|
|
|
|
|
2002-05-23 10:10:44 +00:00
|
|
|
fi
|
|
|
|
|
2003-01-16 14:37:30 +00:00
|
|
|
if [ -z "$archos" ]; then
|
2002-05-23 09:11:35 +00:00
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# Figure out target platform
|
|
|
|
#
|
|
|
|
|
2003-12-12 10:48:40 +00:00
|
|
|
echo "Enter target platform: (default is Archos Recorder)"
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2002-10-15 12:25:57 +00:00
|
|
|
echo "1 - Archos Player/Studio"
|
|
|
|
echo "2 - Archos Recorder"
|
2003-01-16 14:37:30 +00:00
|
|
|
echo "3 - Archos FM Recorder"
|
2003-11-19 06:40:59 +00:00
|
|
|
echo "4 - Archos Recorder v2"
|
2003-12-12 10:48:40 +00:00
|
|
|
echo "5 - Neo mStation"
|
|
|
|
echo "6 - Neo 35"
|
2002-05-23 09:11:35 +00:00
|
|
|
|
|
|
|
getit=`input`;
|
|
|
|
|
|
|
|
case $getit in
|
|
|
|
|
|
|
|
1)
|
2003-01-16 14:37:30 +00:00
|
|
|
archos="player"
|
2002-05-23 09:11:35 +00:00
|
|
|
target="-DARCHOS_PLAYER"
|
2002-05-31 07:22:38 +00:00
|
|
|
display="-DHAVE_LCD_CHARCELLS"
|
|
|
|
keypad="-DHAVE_PLAYER_KEYPAD"
|
2002-05-23 09:11:35 +00:00
|
|
|
;;
|
|
|
|
|
2003-01-16 14:37:30 +00:00
|
|
|
3)
|
|
|
|
archos="fmrecorder"
|
|
|
|
target="-DARCHOS_FMRECORDER"
|
|
|
|
display="-DHAVE_LCD_BITMAP"
|
|
|
|
keypad="-DHAVE_RECORDER_KEYPAD"
|
|
|
|
;;
|
|
|
|
|
2003-11-19 06:40:59 +00:00
|
|
|
4)
|
|
|
|
archos="recorderv2"
|
|
|
|
target="-DARCHOS_RECORDERV2"
|
|
|
|
display="-DHAVE_LCD_BITMAP"
|
|
|
|
keypad="-DHAVE_RECORDER_KEYPAD"
|
|
|
|
;;
|
|
|
|
|
2003-12-12 10:48:40 +00:00
|
|
|
5)
|
|
|
|
archos="neomstation"
|
|
|
|
target="-DNEO_MSTATION"
|
|
|
|
display="-DHAVE_NEOLCD_CHARCELLS"
|
|
|
|
keypad="-DHAVE_NEO_KEYPAD"
|
|
|
|
;;
|
|
|
|
|
|
|
|
6)
|
|
|
|
archos="neo35"
|
|
|
|
target="-DNEO_35"
|
|
|
|
display="-DHAVE_NEOLCD_CHARCELLS"
|
|
|
|
keypad="-DHAVE_NEO_KEYPAD"
|
|
|
|
;;
|
|
|
|
|
2003-01-16 14:37:30 +00:00
|
|
|
*)
|
|
|
|
archos="recorder"
|
2002-05-23 09:11:35 +00:00
|
|
|
target="-DARCHOS_RECORDER"
|
2002-05-31 07:22:38 +00:00
|
|
|
display="-DHAVE_LCD_BITMAP"
|
|
|
|
keypad="-DHAVE_RECORDER_KEYPAD"
|
2002-05-23 09:11:35 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
2003-02-26 09:13:47 +00:00
|
|
|
|
|
|
|
echo "Platform set to $archos"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$memory" ]; then
|
|
|
|
size="2"
|
|
|
|
if [ -z "$update" ]; then
|
|
|
|
echo "Enter size of your RAM (in MB): (defaults to 2)"
|
|
|
|
size=`input`;
|
|
|
|
fi
|
|
|
|
|
|
|
|
case $size in
|
|
|
|
8)
|
|
|
|
memory="8"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
memory="2"
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
echo "Memory size selected: $memory MB"
|
2002-05-23 09:11:35 +00:00
|
|
|
fi
|
|
|
|
|
2002-05-23 10:10:44 +00:00
|
|
|
if [ -z "$debug" ]; then
|
|
|
|
##################################################################
|
|
|
|
# Figure out debug on/off
|
|
|
|
#
|
2002-05-31 07:22:38 +00:00
|
|
|
echo "Build (N)ormal, (D)ebug or (S)imulated version? (N)"
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2002-05-23 10:10:44 +00:00
|
|
|
option=`input`;
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2002-05-23 10:10:44 +00:00
|
|
|
case $option in
|
2002-05-31 07:22:38 +00:00
|
|
|
[Ss])
|
|
|
|
debug="SIMULATOR=1"
|
|
|
|
simulator="yes"
|
2003-02-26 09:13:47 +00:00
|
|
|
echo "Simulator build selected"
|
2002-10-17 09:19:34 +00:00
|
|
|
whichsim
|
2002-05-31 07:22:38 +00:00
|
|
|
;;
|
|
|
|
[Dd])
|
2002-05-23 10:10:44 +00:00
|
|
|
debug="DEBUG=1"
|
2003-02-26 09:13:47 +00:00
|
|
|
echo "Debug build selected"
|
2002-05-23 10:10:44 +00:00
|
|
|
;;
|
|
|
|
*)
|
2002-05-24 10:14:10 +00:00
|
|
|
debug="NODEBUG=1"
|
2003-02-26 09:13:47 +00:00
|
|
|
echo "Normal build selected"
|
2002-05-23 10:10:44 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
fi
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2004-05-26 11:07:16 +00:00
|
|
|
if [ -z "$rootdir" ]; then
|
|
|
|
##################################################################
|
|
|
|
# Figure out where the source code root is!
|
|
|
|
#
|
2003-04-22 22:18:57 +00:00
|
|
|
|
2004-05-26 11:07:16 +00:00
|
|
|
firmfile="crt0.S" # a file to check for in the firmware root dir
|
2003-04-22 22:18:57 +00:00
|
|
|
|
2004-05-26 11:18:40 +00:00
|
|
|
for dir in . .. ../.. ../rockbox*; do
|
2004-05-26 11:07:16 +00:00
|
|
|
if [ -f $dir/firmware/$firmfile ]; then
|
|
|
|
rootdir=$dir
|
|
|
|
break
|
2003-04-22 22:18:57 +00:00
|
|
|
fi
|
2004-05-26 11:07:16 +00:00
|
|
|
done
|
2003-04-22 22:18:57 +00:00
|
|
|
|
2004-05-26 11:07:16 +00:00
|
|
|
if [ -z "$rootdir" ]; then
|
|
|
|
echo "This script couldn't find your source code root directory. Please enter the"
|
|
|
|
echo "full path to the source code directory here:"
|
2003-04-22 22:18:57 +00:00
|
|
|
|
2004-05-26 11:07:16 +00:00
|
|
|
firmdir=`input`
|
|
|
|
fi
|
2003-04-22 22:18:57 +00:00
|
|
|
|
2004-05-26 11:07:16 +00:00
|
|
|
#####################################################################
|
|
|
|
# Convert the possibly relative directory name to an absolute version
|
|
|
|
#
|
|
|
|
now=`pwd`
|
|
|
|
cd $rootdir
|
|
|
|
rootdir=`pwd`
|
2003-04-22 22:18:57 +00:00
|
|
|
|
2004-05-26 11:18:40 +00:00
|
|
|
echo "Using this source code root directory:"
|
|
|
|
echo $rootdir
|
|
|
|
echo ""
|
|
|
|
|
2004-05-26 11:07:16 +00:00
|
|
|
# cd back to the build dir
|
|
|
|
cd $now
|
2003-04-22 22:18:57 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2002-09-20 06:38:38 +00:00
|
|
|
if [ -z "$language" ]; then
|
|
|
|
|
|
|
|
echo "Select a number for the language to use (default is english)"
|
|
|
|
|
|
|
|
picklang
|
|
|
|
language=`whichlang`
|
|
|
|
|
|
|
|
if [ -z "$language" ]; then
|
|
|
|
# pick a default
|
|
|
|
language="english"
|
|
|
|
fi
|
2003-02-26 09:13:47 +00:00
|
|
|
echo "Language set to $language"
|
2002-09-20 06:38:38 +00:00
|
|
|
fi
|
|
|
|
|
2002-10-17 09:14:57 +00:00
|
|
|
if [ "yes" = "$simulator" ]; then
|
|
|
|
# we have already dealt with the simulator Makefile separately
|
2002-10-17 09:19:34 +00:00
|
|
|
simul
|
2002-10-17 09:14:57 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2002-05-23 09:39:31 +00:00
|
|
|
sed > Makefile \
|
2004-05-26 11:07:16 +00:00
|
|
|
-e "s,@ROOTDIR@,${rootdir},g" \
|
2002-05-23 09:39:31 +00:00
|
|
|
-e "s,@DEBUG@,${debug},g" \
|
2003-02-26 09:13:47 +00:00
|
|
|
-e "s,@MEMORY@,${memory},g" \
|
2002-05-23 09:39:31 +00:00
|
|
|
-e "s,@TARGET@,${target},g" \
|
2003-01-16 14:37:30 +00:00
|
|
|
-e "s,@ARCHOS@,${archos},g" \
|
2002-09-20 06:38:38 +00:00
|
|
|
-e "s,@LANGUAGE@,${language},g" \
|
2002-05-23 09:39:31 +00:00
|
|
|
-e "s,@PWD@,${pwd},g" \
|
|
|
|
<<EOF
|
2002-08-11 09:17:47 +00:00
|
|
|
## Automaticly generated. http://rockbox.haxx.se
|
2002-05-23 10:10:44 +00:00
|
|
|
|
2004-05-26 11:07:16 +00:00
|
|
|
ROOTDIR=@ROOTDIR@
|
|
|
|
FIRMDIR=\$(ROOTDIR)/firmware
|
|
|
|
APPSDIR=\$(ROOTDIR)/apps
|
|
|
|
TOOLSDIR=\$(ROOTDIR)/tools
|
2002-05-23 09:11:35 +00:00
|
|
|
DEBUG=@DEBUG@
|
2003-01-16 14:37:30 +00:00
|
|
|
ARCHOS=@ARCHOS@
|
2002-05-23 09:11:35 +00:00
|
|
|
TARGET=@TARGET@
|
2002-05-23 09:39:31 +00:00
|
|
|
THISDIR="@PWD@"
|
2002-09-20 06:38:38 +00:00
|
|
|
LANGUAGE=@LANGUAGE@
|
2003-02-26 09:13:47 +00:00
|
|
|
MEMORYSIZE=@MEMORY@
|
2002-07-15 13:19:00 +00:00
|
|
|
VERSION=\$(shell date +%y%m%d-%H%M)
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2002-07-26 14:13:03 +00:00
|
|
|
.PHONY: firmware apps
|
2002-05-23 13:55:26 +00:00
|
|
|
|
2002-05-31 08:38:35 +00:00
|
|
|
all: firmware apps
|
2002-05-23 13:55:26 +00:00
|
|
|
|
|
|
|
firmware:
|
2003-11-26 14:10:21 +00:00
|
|
|
\$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) MEM=\$(MEMORYSIZE) TOOLSDIR=\$(TOOLSDIR)
|
2002-05-23 13:55:26 +00:00
|
|
|
|
|
|
|
apps:
|
2003-11-26 14:10:21 +00:00
|
|
|
\$(MAKE) -C \$(APPSDIR) TARGET=\$(TARGET) \$(DEBUG) OBJDIR=\$(THISDIR) VERSION=\$(VERSION) LANGUAGE=\$(LANGUAGE) MEM=\$(MEMORYSIZE) TOOLSDIR=\$(TOOLSDIR)
|
2002-05-23 09:11:35 +00:00
|
|
|
|
2002-05-24 09:33:37 +00:00
|
|
|
clean-firmware:
|
2002-08-07 14:37:53 +00:00
|
|
|
\$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) OBJDIR=\$(THISDIR) clean
|
2002-05-24 09:33:37 +00:00
|
|
|
|
|
|
|
clean-apps:
|
2002-08-07 14:37:53 +00:00
|
|
|
\$(MAKE) -C \$(APPSDIR) TARGET=\$(TARGET) OBJDIR=\$(THISDIR) clean
|
2002-05-24 09:33:37 +00:00
|
|
|
|
2002-05-23 13:55:26 +00:00
|
|
|
clean:
|
2002-08-07 14:37:53 +00:00
|
|
|
\$(MAKE) clean-firmware clean-apps
|
2004-05-21 19:40:20 +00:00
|
|
|
rm -f rockbox.zip
|
2002-05-23 13:55:26 +00:00
|
|
|
|
2002-08-15 09:32:59 +00:00
|
|
|
tags-firmware:
|
|
|
|
\$(MAKE) -C \$(FIRMDIR) TARGET=\$(TARGET) OBJDIR=\$(THISDIR) tags
|
|
|
|
|
|
|
|
tags-apps:
|
|
|
|
\$(MAKE) -C \$(APPSDIR) TARGET=\$(TARGET) OBJDIR=\$(THISDIR) tags
|
|
|
|
|
|
|
|
tags:
|
|
|
|
@rm -f TAGS
|
|
|
|
\$(MAKE) tags-firmware tags-apps
|
2004-05-21 19:05:47 +00:00
|
|
|
|
|
|
|
zip:
|
2004-08-24 15:13:08 +00:00
|
|
|
\$(TOOLSDIR)/buildzip.pl -r "\$(ROOTDIR)" \$(TARGET)
|
2002-05-23 09:11:35 +00:00
|
|
|
EOF
|
2002-05-23 09:39:31 +00:00
|
|
|
|
|
|
|
echo "Created Makefile"
|