parent
64df6a42e0
commit
c4862ab705
|
@ -40,7 +40,7 @@ do_configure ()
|
|||
if [ $val_debug = true ]; then
|
||||
CXXFLAGS="-O0 -ggdb" CFLAGS="-O0 -ggdb" ./configure &> $LOGFILE
|
||||
else
|
||||
./configure &> $LOGFILE
|
||||
./configure $CONFIG_ARGS &> $LOGFILE
|
||||
fi
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
|
@ -81,6 +81,8 @@ print_help()
|
|||
{
|
||||
cat << EOF
|
||||
|
||||
Set "CONFIG_ARGS" environment variable to define arguments to configure script
|
||||
|
||||
Usage:
|
||||
$0 [OPTIONS]...
|
||||
--help show this help
|
||||
|
@ -90,6 +92,7 @@ $0 [OPTIONS]...
|
|||
--skip-error skip errors while generating/building otherwise exit
|
||||
--clean clean the sources (without generating)
|
||||
--no-make don't make the sources
|
||||
--install intall the build files
|
||||
EOF
|
||||
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ val_skip_error=false
|
|||
val_clean=false
|
||||
val_make=true
|
||||
val_debug=true
|
||||
val_install=false
|
||||
|
||||
## include all needed functions
|
||||
source compile.functions
|
||||
|
@ -33,6 +34,7 @@ for i
|
|||
--skip-error) val_skip_error=true ;;
|
||||
--clean) val_clean=true ;;
|
||||
--no-make) val_make=false ;;
|
||||
--install) val_install=true ;;
|
||||
|
||||
*)
|
||||
echo "$0: wrong parameter"
|
||||
|
@ -53,6 +55,7 @@ do
|
|||
|
||||
$val_clean && do_make $module clean
|
||||
$val_make && do_make $module all
|
||||
$val_install && do_make $module install
|
||||
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue