Commit 9e300a4e authored by Johnny Jazeix's avatar Johnny Jazeix

configure to create a Makefile in debug or release mode (--release or --debug)

parent 66b94d5d
......@@ -49,11 +49,13 @@ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
makefile="Makefile"
with_otf=0
config_specified=0
# where will we concatenate options like macros, libs...
compilation_src_pro="src.pro"
# For qmake
config="\"CONFIG+="
defines="\"DEFINES+="
libs="\"LIBS+="
includes="\"INCLUDES+="
......@@ -70,6 +72,8 @@ usage()
echo " --help"
echo " -h print this page"
echo
echo " --release compiles in release mode (by default)"
echo " --debug compiles in debug mode"
echo " --enable_spinning_logo makes the rabbit to turn when no trace is loaded"
echo " --enable_otf enables the otf support. The otf release used by default is in the src/general directory"
## Will be added later
......@@ -98,22 +102,34 @@ while [ 0 -lt $# ]; do
--enable_spinning_logo) # good openGL spinning rabbit :)
defines="$defines SPINNING_LOGO"
;;
--release)
config_specified=1;
config="$config release"
;;
--debug)
config_specified=1;
config="$config debug"
;;
*)
echo "invalid option : $OPT";
exit 0;
esac
done
#end the qmake options
if [ $config_specified == 1 ]; then
config="$config\"";
else
config="$config release\"";
fi
defines="$defines\"";
libs="$libs\"";
includes="$includes\"";
sources="$sources\"";
headers="$headers\"";
compilation_src_pro="$defines $libs $includes $sources $headers";
compilation_src_pro="$defines $config $libs $includes $sources $headers";
# find a make command
if [ -z "$MAKE" ]; then
......
......@@ -46,7 +46,7 @@
#RESOURCES= vite.qrc
OBJECTS_DIR=../bin
DESTDIR=../bin
CONFIG+=uitools debug
CONFIG+=uitools
QT+=opengl
TEMPLATE = app
TARGET = vite
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment