Commit cbab3b90 authored by Guillaume Huard's avatar Guillaume Huard
Browse files

Small bugfix related to debug and compilation

parent 589107d1
......@@ -13,7 +13,7 @@ search() {
}
end() {
if [ -n "$REMOVE" -o -n "$GENERATED_FILES" ]
if [ $(expr "$-" : '.*x') -eq 0 -a -n "$REMOVE$GENERATED_FILES" ]
then
rm -r $REMOVE $GENERATED_FILES
fi
......@@ -28,10 +28,10 @@ fi
for file in $FILES
do
base=$(basename $file .c)
$CC -c $file || end $?
$CC $CFLAGS -c $file || end $?
GENERATED_FILES="$GENERATED_FILES $base.o"
done
$CC $CFLAGS $GENERATED_FILES $LDLIBS -o $NAME || end $?
$CC $GENERATED_FILES $LDLIBS -o $NAME || end $?
end 0
};
......
Supports Markdown
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