changeset 125:e556416e9c91

Update compilation scripts
author Mike Pavone <pavone@retrodev.com>
date Thu, 28 Oct 2010 21:07:03 -0400
parents 8aedae4f4ddd
children 85f8012b6938 50406500334d
files compile ctobin
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/compile	Thu Oct 28 21:05:50 2010 -0400
+++ b/compile	Thu Oct 28 21:07:03 2010 -0400
@@ -4,7 +4,7 @@
 	rm "$1.c"
 fi
 
-./rhope -t 1 compile_old.rhope $1
+./rhope2c $1
 
 if test ! -f "$1.c"; then
 	echo "Compilation to C failed"
--- 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 ..