[PD-cvs] externals/grill/flext buildext.bat,NONE,1.1 buildext.sh,NONE,1.1

Thomas Grill xovo at users.sourceforge.net
Sun Dec 19 06:04:15 CET 2004


Update of /cvsroot/pure-data/externals/grill/flext
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24525

Added Files:
	buildext.bat buildext.sh 
Log Message:
simplified make system
updated make system


--- NEW FILE: buildext.bat ---
@set flext=%~dp0

@rem Arguments:
@rem %1 - platform (win/lnx/mac)
@rem %2 - system (pd/max)
@rem %3 - compiler (msvc/gcc/mingw/cygwin/bcc/icc)
@rem %4 - target (all/all-debug/all-shared/all-shared-debug/clean/install)

@set platform=%1
@set rtsys=%2
@set compiler=%3
@set target=%4

@rem --- The subbatch knowns which make utility to use ---
@set subbatch=%flext%build\build-%compiler%.bat

@if "%platform%"=="" goto syntax
@if "%rtsys%"=="" goto syntax
@if "%compiler%"=="" goto syntax

@if not exist %subbatch% goto syntax

@call %subpatch% %subbatch% %platform% %rtsys% %target% %5 %6 %7 %8 %9

@goto end

@rem -----------------------------------------
:syntax

@echo .
@echo SYNTAX: buildext [platform] [system] [compiler] {target}
@echo platform ... win / lnx / mac
@echo system   ... pd / max
@echo compiler ... msvc / gcc / mingw / cygwin / bcc / icc
@echo target   ... all (default) / all-debug / all-shared / all-shared-debug / 
@echo              clean / install
@echo .
@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.

:end

--- NEW FILE: buildext.sh ---
flext=${0%/*}/

# Arguments:
# $1 - platform (win/lnx/mac)
# $2 - system (pd/max)
# $3 - compiler (msvc/gcc/mingw/cygwin/bcc/icc)
# $4 - target (all/all-debug/all-shared/all-shared-debug/clean/install)

platform=$1
rtsys=$2
compiler=$3
target=$4

# --- The subbatch knowns which make utility to use ---
subbatch=${flext}build/build-${compiler}.sh

if 
	[ -n "$platform" -a -n "$rtsys" -a -n "$compiler" -a -f $subbatch ]
then 
	sh $subbatch $platform $rtsys $target $5 $6 $7 $8 $9
else
	echo 
	echo SYNTAX: buildext [platform] [system] [compiler] {target}
	echo platform ... win / lnx / mac
	echo system ..... pd / max
	echo compiler ... msvc / gcc / mingw / cygwin / bcc / icc
	echo target ..... all \(default\) / all-debug / all-shared / all-shared-debug / 
	echo ............ clean / install
	echo 
	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.
fi






More information about the Pd-cvs mailing list