Skip to content

Commit

Permalink
Added support for C++ and assembly files, and source in subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 1, 2006
1 parent a81bfe5 commit cfb9a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcc-fat.sh
Expand Up @@ -45,7 +45,7 @@ while test x$1 != x; do
compile=no; link=no;;
-c) link=no;;
-o) output=$2;;
*.c) source=$1;;
*.c|*.cc|*.cpp|*.S) source=$1;;
esac
shift
done
Expand All @@ -57,7 +57,7 @@ if test x"$output" = x; then
if test x$link = xyes; then
output=a.out
elif test x$compile = xyes; then
output=`basename $source .c`.o
output=`echo $source | sed -e 's|.*/||' -e 's|\(.*\)\.[^\.]*|\1|'`.o
fi
fi

Expand Down

0 comments on commit cfb9a02

Please sign in to comment.