aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/build.sh
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-02-27 04:56:10 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-02-27 04:56:10 +0000
commit3e90874e5d63137c195c3b3c1ce90b542deb8a51 (patch)
tree95f9b19ec8a3f579f976c3d80e4eae639867ea97 /externals/grill/flext/build.sh
parent7d9437c8a5fed2d03c22454f643b4bf5598f2d9e (diff)
small name change and reuse of Fifo cells
fixed eol-style new lock-free lifo and fifo fixes for linux eliminated ChannelsIn/ChannelsOut updated docs build system: added profiler mode, more fixes fix for linux autodetection of build platform fix for flext_dsp @ Max svn path=/trunk/; revision=2584
Diffstat (limited to 'externals/grill/flext/build.sh')
-rw-r--r--externals/grill/flext/build.sh30
1 files changed, 19 insertions, 11 deletions
diff --git a/externals/grill/flext/build.sh b/externals/grill/flext/build.sh
index 307108a4..157ca384 100644
--- a/externals/grill/flext/build.sh
+++ b/externals/grill/flext/build.sh
@@ -18,15 +18,22 @@ flext=${0%/*}/
if [ "$flext" = "$0"/ ]; then flext=./ ; fi
# Arguments:
-# $1 - platform (win/lnx/mac)
-# $2 - system (pd/max)
-# $3 - compiler (msvc/gcc/mingw/cygwin/bcc/icc)
-# $4 - target (build/clean/install)
+# $1 - system (pd/max)
+# $2 - compiler (msvc/gcc/mingw/cygwin/bcc/icc)
+# $3 - target (build/clean/install)
-platform=$1
-rtsys=$2
-compiler=$3
-target=$4
+unamesys=$(uname -s)
+
+case $unamesys in
+ Linux) platform=lnx;;
+ Darwin) platform=mac;;
+ CYGWIN*) platform=win;;
+ *) echo Platform $unamesys not supported; exit;;
+esac
+
+rtsys=$1
+compiler=$2
+target=$3
# --- The subbatch knowns which make utility to use ---
subbatch=${flext}buildsys/build-${compiler}.sh
@@ -34,11 +41,10 @@ subbatch=${flext}buildsys/build-${compiler}.sh
if
[ -n "$platform" -a -n "$rtsys" -a -n "$compiler" -a -f $subbatch ]
then
- bash $subbatch $platform $rtsys $target $5 $6 $7 $8 $9
+ bash $subbatch $platform $rtsys $target $4 $5 $6 $7 $8 $9
else
echo
- echo SYNTAX: build.sh [platform] [system] [compiler] {target}
- echo platform ... win / lnx / mac
+ echo SYNTAX: build.sh [system] [compiler] {target}
echo system ..... pd / max
echo compiler ... msvc / gcc / mingw / cygwin / bcc / icc
echo target ..... build \(default\) / clean / install
@@ -46,4 +52,6 @@ else
echo Please make sure that your make program and compiler can be accessed with the
echo system path and that all relevant environment variables are properly set.
echo
+ echo For further information read flext/build.txt
+ echo
fi