comparison compile @ 53:70af7fa155d0

Cleaned up some C warnings and added a simple compile script
author Mike Pavone <pavone@retrodev.com>
date Thu, 29 Apr 2010 04:32:54 +0000
parents
children 0083b2f7b3c7
comparison
equal deleted inserted replaced
52:079200bc3e75 53:70af7fa155d0
1 #!/bin/sh
2
3 if test -f "$1.c"; then
4 rm "$1.c"
5 fi
6
7 ./rhope -t 1 parser_old.rhope $1
8
9 if test ! -f "$1.c"; then
10 echo "Compilation to C failed"
11 exit 1
12 fi
13
14 cp runtime/* build/
15 cp "$1.c" build/
16 cd build
17 bin=`echo $1 | sed s/\.rhope//`
18
19 if test -f "$bin"; then
20 rm "$bin"
21 fi
22 gcc -Wformat=0 -o $bin $2 "$1.c" blueprint.c context.c fixed_alloc.c object.c
23