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