Mercurial > repos > rhope
diff ctobin @ 125:e556416e9c91
Update compilation scripts
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 28 Oct 2010 21:07:03 -0400 |
parents | 43cc42df26cc |
children | a68e6828d896 |
line wrap: on
line diff
--- a/ctobin Thu Oct 28 21:05:50 2010 -0400 +++ b/ctobin Thu Oct 28 21:07:03 2010 -0400 @@ -18,8 +18,10 @@ CC="gcc" fi -echo "$CC -o $bin $2 $1.c blueprint.c context.c fixed_alloc.c object.c" -$CC -o $bin $2 "$1.c" blueprint.c context.c fixed_alloc.c object.c +file=$1 +shift +echo "$CC -o $bin $@ $file.c blueprint.c context.c fixed_alloc.c object.c" +$CC -o $bin $@ "$file.c" blueprint.c context.c fixed_alloc.c object.c cd ..